Add box-decoration-break utilities (#3911)

This commit is contained in:
Adam Wathan 2021-04-02 16:04:52 -04:00 • committed by GitHub
parent e75c5e7e6d
commit 8c07172726
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 219 additions and 0 deletions

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'