File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
packages/daisyui/src/components Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
.divider {
2
2
@apply flex h-4 flex-row items-center self-stretch whitespace-nowrap;
3
3
margin : var (--divider-m , 1rem 0 );
4
+ /*
5
+ used --divider-color to avoid this issue
6
+ https://github.com/tailwindlabs/tailwindcss/issues/17556
7
+ https://lightningcss.dev/playground/index.html#%7B%22minify%22%3Afalse%2C%22customMedia%22%3Atrue%2C%22cssModules%22%3Afalse%2C%22analyzeDependencies%22%3Afalse%2C%22targets%22%3A%7B%22chrome%22%3A6225920%7D%2C%22include%22%3A0%2C%22exclude%22%3A0%2C%22source%22%3A%22.broken%20%7B%5Cn%20%20%26%3A%3Abefore%2C%20%26%3A%3Aafter%20%7B%5Cn%20%20%20%20background%3A%20blue%3B%5Cn%20%20%20%20%40media%20print%20%7B%5Cn%20%20%20%20%20%20background%3A%20orange%3B%5Cn%20%20%20%20%7D%5Cn%20%20%7D%5Cn%7D%5Cn%5Cn.fine%20%7B%5Cn%20%20%26%3A%3Abefore%2C%20%26%3A%3Aafter%20%7B%5Cn%20%20%20%20background%3A%20blue%3B%5Cn%20%20%7D%5Cn%7D%22%2C%22visitorEnabled%22%3Afalse%2C%22visitor%22%3A%22%7B%5Cn%20%20Color(color)%20%7B%5Cn%20%20%20%20if%20(color.type%20%3D%3D%3D%20'rgb')%20%7B%5Cn%20%20%20%20%20%20color.g%20%3D%200%3B%5Cn%20%20%20%20%20%20return%20color%3B%5Cn%20%20%20%20%7D%5Cn%20%20%7D%5Cn%7D%22%2C%22unusedSymbols%22%3A%5B%5D%2C%22version%22%3A%22local%22%7D
8
+ https://github.com/tailwindlabs/tailwindcss/pull/17562
9
+ */
10
+ --divider-color : color-mix (in oklab, var (--color-base-content ) 10% , transparent);
4
11
5
12
& : before ,
6
13
& : after {
7
14
content : "" ;
8
- @apply bg-base-content/10 h-0.5 w-full grow;
15
+ @apply h-0.5 w-full grow;
16
+ background-color : var (--divider-color );
9
17
}
10
18
@media print {
11
19
& : before ,
You can’t perform that action at this time.
0 commit comments