Add box-decoration-break utilities (#3911)
This commit is contained in:
parent
e75c5e7e6d
commit
8c07172726
12 changed files with 219 additions and 0 deletions
15
src/plugins/boxDecorationBreak.js
Normal file
15
src/plugins/boxDecorationBreak.js
Normal 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')
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue