Add box-decoration-break utilities (#3911)

This commit is contained in:
Adam Wathan 2021-04-02 16:04:52 -04:00
parent 5c85c427fc
commit 77ca74bb88
12 changed files with 219 additions and 0 deletions

View file

@ -23,6 +23,7 @@ export const corePluginList = [
'borderRadius',
'borderStyle',
'borderWidth',
'boxDecorationBreak',
'boxSizing',
'cursor',
'display',

View file

@ -0,0 +1,15 @@
export default function () {
return function ({ addUtilities, variants }) {
addUtilities(
{
'.decoration-slice': {
'box-decoration-break': 'slice',
},
'.decoration-clone': {
'box-decoration-break': 'clone',
},
},
variants('boxDecorationBreak')
)
}
}

View file

@ -18,6 +18,7 @@ export { default as borderOpacity } from './borderOpacity'
export { default as borderRadius } from './borderRadius'
export { default as borderStyle } from './borderStyle'
export { default as borderWidth } from './borderWidth'
export { default as boxDecorationBreak } from './boxDecorationBreak'
export { default as boxShadow } from './boxShadow'
export { default as boxSizing } from './boxSizing'
export { default as clear } from './clear'