mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
commit
1d2dd1a5f4
@ -1317,6 +1317,26 @@ video {
|
||||
border-color: #702459;
|
||||
}
|
||||
|
||||
.divide-solid > :not(template) ~ :not(template) {
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.divide-dashed > :not(template) ~ :not(template) {
|
||||
border-style: dashed;
|
||||
}
|
||||
|
||||
.divide-dotted > :not(template) ~ :not(template) {
|
||||
border-style: dotted;
|
||||
}
|
||||
|
||||
.divide-double > :not(template) ~ :not(template) {
|
||||
border-style: double;
|
||||
}
|
||||
|
||||
.divide-none > :not(template) ~ :not(template) {
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
|
||||
@ -1685,6 +1685,26 @@ video {
|
||||
border-color: rgba(112, 36, 89, var(--divide-opacity)) !important;
|
||||
}
|
||||
|
||||
.divide-solid > :not(template) ~ :not(template) {
|
||||
border-style: solid !important;
|
||||
}
|
||||
|
||||
.divide-dashed > :not(template) ~ :not(template) {
|
||||
border-style: dashed !important;
|
||||
}
|
||||
|
||||
.divide-dotted > :not(template) ~ :not(template) {
|
||||
border-style: dotted !important;
|
||||
}
|
||||
|
||||
.divide-double > :not(template) ~ :not(template) {
|
||||
border-style: double !important;
|
||||
}
|
||||
|
||||
.divide-none > :not(template) ~ :not(template) {
|
||||
border-style: none !important;
|
||||
}
|
||||
|
||||
.divide-opacity-0 > :not(template) ~ :not(template) {
|
||||
--divide-opacity: 0 !important;
|
||||
}
|
||||
|
||||
@ -1501,6 +1501,26 @@ video {
|
||||
border-color: #702459;
|
||||
}
|
||||
|
||||
.divide-solid > :not(template) ~ :not(template) {
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.divide-dashed > :not(template) ~ :not(template) {
|
||||
border-style: dashed;
|
||||
}
|
||||
|
||||
.divide-dotted > :not(template) ~ :not(template) {
|
||||
border-style: dotted;
|
||||
}
|
||||
|
||||
.divide-double > :not(template) ~ :not(template) {
|
||||
border-style: double;
|
||||
}
|
||||
|
||||
.divide-none > :not(template) ~ :not(template) {
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
|
||||
@ -1685,6 +1685,26 @@ video {
|
||||
border-color: rgba(112, 36, 89, var(--divide-opacity));
|
||||
}
|
||||
|
||||
.divide-solid > :not(template) ~ :not(template) {
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.divide-dashed > :not(template) ~ :not(template) {
|
||||
border-style: dashed;
|
||||
}
|
||||
|
||||
.divide-dotted > :not(template) ~ :not(template) {
|
||||
border-style: dotted;
|
||||
}
|
||||
|
||||
.divide-double > :not(template) ~ :not(template) {
|
||||
border-style: double;
|
||||
}
|
||||
|
||||
.divide-none > :not(template) ~ :not(template) {
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
.divide-opacity-0 > :not(template) ~ :not(template) {
|
||||
--divide-opacity: 0;
|
||||
}
|
||||
|
||||
@ -3,6 +3,7 @@ import container from './plugins/container'
|
||||
import space from './plugins/space'
|
||||
import divideWidth from './plugins/divideWidth'
|
||||
import divideColor from './plugins/divideColor'
|
||||
import divideStyle from './plugins/divideStyle'
|
||||
import accessibility from './plugins/accessibility'
|
||||
import appearance from './plugins/appearance'
|
||||
import backgroundAttachment from './plugins/backgroundAttachment'
|
||||
@ -110,6 +111,7 @@ export default function({ corePlugins: corePluginConfig }) {
|
||||
space,
|
||||
divideWidth,
|
||||
divideColor,
|
||||
divideStyle,
|
||||
divideOpacity,
|
||||
accessibility,
|
||||
appearance,
|
||||
|
||||
24
src/plugins/divideStyle.js
Normal file
24
src/plugins/divideStyle.js
Normal file
@ -0,0 +1,24 @@
|
||||
export default function() {
|
||||
return function({ addUtilities, variants }) {
|
||||
addUtilities(
|
||||
{
|
||||
'.divide-solid > :not(template) ~ :not(template)': {
|
||||
'border-style': 'solid',
|
||||
},
|
||||
'.divide-dashed > :not(template) ~ :not(template)': {
|
||||
'border-style': 'dashed',
|
||||
},
|
||||
'.divide-dotted > :not(template) ~ :not(template)': {
|
||||
'border-style': 'dotted',
|
||||
},
|
||||
'.divide-double > :not(template) ~ :not(template)': {
|
||||
'border-style': 'double',
|
||||
},
|
||||
'.divide-none > :not(template) ~ :not(template)': {
|
||||
'border-style': 'none',
|
||||
},
|
||||
},
|
||||
variants('divideStyle')
|
||||
)
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user