daisyui 1.16.6 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/styled.css CHANGED
@@ -961,22 +961,13 @@
961
961
  overflow-x:auto;
962
962
  grid-auto-flow:column;
963
963
  }
964
- .steps .step{
964
+ .steps [class~=step]{
965
965
  display:grid;
966
966
  place-items:center;
967
967
  text-align:center;
968
968
  grid-template-columns:repeat(1, minmax(0, 1fr));
969
969
  grid-template-rows:repeat(2, minmax(0, 1fr));
970
- }
971
- .steps-vertical{
972
- grid-auto-rows:1fr;
973
- grid-auto-flow:row;
974
- }
975
- .steps-vertical .step{
976
- display:grid;
977
- grid-template-columns:repeat(2, minmax(0, 1fr));
978
- grid-template-rows:repeat(1, minmax(0, 1fr));
979
- }.tabs{
970
+ }.tabs{
980
971
  display:flex;
981
972
  flex-wrap:wrap;
982
973
  align-items:flex-end;
@@ -1647,6 +1638,11 @@
1647
1638
  border-color:hsla(var(--b2) / var(--tw-border-opacity, 1));
1648
1639
  border-width:1px;
1649
1640
  }
1641
+ .card-bordered{
1642
+ --tw-border-opacity:1;
1643
+ border-color:hsla(var(--b2) / var(--tw-border-opacity, 1));
1644
+ border-width:1px;
1645
+ }
1650
1646
  .card.compact .card-body{
1651
1647
  font-size:.875rem;
1652
1648
  line-height:1.25rem;
@@ -1706,10 +1702,12 @@
1706
1702
  .checkbox:focus-visible{
1707
1703
  box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--bc));
1708
1704
  }
1709
- .checkbox:checked{
1705
+ .checkbox:checked,.checkbox[checked=true]{
1710
1706
  --tw-bg-opacity:1;
1711
1707
  background-color:hsla(var(--bc) / var(--tw-bg-opacity, 1));
1712
1708
  background-repeat:no-repeat;
1709
+ }
1710
+ .checkbox:checked,.checkbox[checked=true]{
1713
1711
  -webkit-animation:checkmark var(--animation-input, .2s) ease-in-out;
1714
1712
  animation:checkmark var(--animation-input, .2s) ease-in-out;
1715
1713
  background-image:linear-gradient(-45deg, transparent 65%, hsl(var(--chkbg)) 0), linear-gradient(45deg, transparent 75%, hsl(var(--chkbg)) 0), linear-gradient(-45deg, hsl(var(--chkbg)) 40%, transparent 0), linear-gradient(45deg, hsl(var(--chkbg)) 30%, hsl(var(--chkfg)) 0, hsl(var(--chkfg)) 40%, transparent 0), linear-gradient(-45deg, hsl(var(--chkfg)) 50%, hsl(var(--chkbg)) 0);
@@ -1727,7 +1725,7 @@
1727
1725
  .checkbox-primary:focus-visible{
1728
1726
  box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--p));
1729
1727
  }
1730
- .checkbox-primary:checked{
1728
+ .checkbox-primary:checked,.checkbox-primary[checked=true]{
1731
1729
  --tw-bg-opacity:1;
1732
1730
  background-color:hsla(var(--p) / var(--tw-bg-opacity, 1));
1733
1731
  --tw-border-opacity:1;
@@ -1748,7 +1746,7 @@
1748
1746
  .checkbox-secondary:focus-visible{
1749
1747
  box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--s));
1750
1748
  }
1751
- .checkbox-secondary:checked{
1749
+ .checkbox-secondary:checked,.checkbox-secondary[checked=true]{
1752
1750
  --tw-bg-opacity:1;
1753
1751
  background-color:hsla(var(--s) / var(--tw-bg-opacity, 1));
1754
1752
  --tw-border-opacity:1;
@@ -1769,7 +1767,7 @@
1769
1767
  .checkbox-accent:focus-visible{
1770
1768
  box-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--a));
1771
1769
  }
1772
- .checkbox-accent:checked{
1770
+ .checkbox-accent:checked,.checkbox-accent[checked=true]{
1773
1771
  --tw-bg-opacity:1;
1774
1772
  background-color:hsla(var(--a) / var(--tw-bg-opacity, 1));
1775
1773
  --tw-border-opacity:1;
@@ -2324,27 +2322,27 @@
2324
2322
  .menu[class*=p-] li a{
2325
2323
  border-radius:var(--rounded-btn, .5rem);
2326
2324
  }
2327
- .menu li>a,.menu li>span{
2325
+ .menu li>:where(a),.menu li>:where(span){
2328
2326
  padding:.75rem 1.25rem;
2329
2327
  color:currentColor;
2330
2328
  }
2331
- .menu li>a:focus,.menu li>a:hover{
2332
- --tw-bg-opacity:1;
2333
- background-color:hsla(var(--bc) / var(--tw-bg-opacity, 1));
2334
- --tw-bg-opacity:0.1;
2335
- }
2336
- .menu li>a.active{
2337
- --tw-bg-opacity:1;
2338
- background-color:hsla(var(--p) / var(--tw-bg-opacity, 1));
2339
- --tw-text-opacity:1;
2340
- color:hsla(var(--pc) / var(--tw-text-opacity, 1));
2341
- }
2342
- .menu li>a:active{
2343
- --tw-bg-opacity:1;
2344
- background-color:hsla(var(--pf) / var(--tw-bg-opacity, 1));
2345
- --tw-text-opacity:1;
2346
- color:hsla(var(--pc) / var(--tw-text-opacity, 1));
2347
- }
2329
+ .menu li>:where(a:focus),.menu li>:where(a:hover){
2330
+ --tw-bg-opacity:1;
2331
+ background-color:hsla(var(--bc) / var(--tw-bg-opacity, 1));
2332
+ --tw-bg-opacity:0.1;
2333
+ }
2334
+ .menu li>:where(a.active){
2335
+ --tw-bg-opacity:1;
2336
+ background-color:hsla(var(--p) / var(--tw-bg-opacity, 1));
2337
+ --tw-text-opacity:1;
2338
+ color:hsla(var(--pc) / var(--tw-text-opacity, 1));
2339
+ }
2340
+ .menu li>:where(a:active){
2341
+ --tw-bg-opacity:1;
2342
+ background-color:hsla(var(--pf) / var(--tw-bg-opacity, 1));
2343
+ --tw-text-opacity:1;
2344
+ color:hsla(var(--pc) / var(--tw-text-opacity, 1));
2345
+ }
2348
2346
  .menu li.disabled>a:hover,.menu li.disabled>span:hover{
2349
2347
  background-color:transparent;
2350
2348
  }
@@ -2965,11 +2963,12 @@
2965
2963
  .stats.grid-flow-row .stat+.stat{
2966
2964
  border-left-width:0;
2967
2965
  border-top-width:1px;
2968
- }.steps .step{
2966
+ }.steps [class~=step]{
2969
2967
  grid-template-rows:40px 1fr;
2968
+ grid-template-columns:auto;
2970
2969
  min-width:4rem;
2971
2970
  }
2972
- .steps .step:before{
2971
+ .steps [class~=step]:before{
2973
2972
  --tw-bg-opacity:1;
2974
2973
  background-color:hsla(var(--b3) / var(--tw-bg-opacity, 1));
2975
2974
  height:.5rem;
@@ -2979,17 +2978,24 @@
2979
2978
  width:100%;
2980
2979
  grid-column-start:1;
2981
2980
  grid-row-start:1;
2981
+ --tw-translate-x:0;
2982
+ --tw-translate-y:0;
2983
+ --tw-rotate:0;
2984
+ --tw-skew-x:0;
2985
+ --tw-skew-y:0;
2986
+ --tw-scale-x:1;
2987
+ --tw-scale-y:1;
2988
+ transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
2982
2989
  content:"";
2983
2990
  margin-left:-100%;
2984
2991
  }
2985
- .steps .step:after{
2992
+ .steps [class~=step]:after{
2986
2993
  content:counter(step);
2987
2994
  counter-increment:step;
2988
2995
  z-index:1;
2989
2996
  --tw-bg-opacity:1;
2990
2997
  background-color:hsla(var(--b3) / var(--tw-bg-opacity, 1));
2991
2998
  border-radius:9999px;
2992
- display:block;
2993
2999
  display:grid;
2994
3000
  place-items:center;
2995
3001
  place-self:center;
@@ -3001,10 +3007,10 @@
3001
3007
  grid-column-start:1;
3002
3008
  grid-row-start:1;
3003
3009
  }
3004
- .steps .step:first-child:before{
3010
+ .steps [class~=step]:first-child:before{
3005
3011
  content:none;
3006
3012
  }
3007
- .steps .step[data-content]:after{
3013
+ .steps [class~=step][data-content]:after{
3008
3014
  content:attr(data-content);
3009
3015
  }
3010
3016
  .steps .step-neutral+.step-neutral:before,.steps .step-neutral:after{
@@ -3070,30 +3076,7 @@
3070
3076
  background-color:hsla(var(--er) / var(--tw-bg-opacity, 1));
3071
3077
  --tw-text-opacity:1;
3072
3078
  color:hsla(var(--b1) / var(--tw-text-opacity, 1));
3073
- }
3074
- .steps-vertical .step{
3075
- gap:.5rem;
3076
- grid-template-columns:40px 1fr;
3077
- grid-template-rows:auto;
3078
- min-height:4rem;
3079
- justify-items:start;
3080
- }
3081
- .steps-vertical .step:before{
3082
- height:100%;
3083
- top:0;
3084
- width:.5rem;
3085
- --tw-translate-x:0;
3086
- --tw-translate-y:0;
3087
- --tw-rotate:0;
3088
- --tw-skew-x:0;
3089
- --tw-skew-y:0;
3090
- --tw-scale-x:1;
3091
- --tw-scale-y:1;
3092
- transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
3093
- --tw-translate-x:-50%;
3094
- --tw-translate-y:-50%;
3095
- margin-left:50%;
3096
- }.tab{
3079
+ }.tab{
3097
3080
  --tw-text-opacity:1;
3098
3081
  color:hsla(var(--bc) / var(--tw-text-opacity, 1));
3099
3082
  --tw-text-opacity:0.5
@@ -3232,7 +3215,7 @@
3232
3215
  }.table{
3233
3216
  text-align:left;
3234
3217
  }
3235
- .table td,.table th{
3218
+ .table :where(th,td){
3236
3219
  padding:1rem;
3237
3220
  vertical-align:middle;
3238
3221
  white-space:nowrap;
@@ -3245,12 +3228,12 @@
3245
3228
  --tw-bg-opacity:1;
3246
3229
  background-color:hsla(var(--b3) / var(--tw-bg-opacity, 1));
3247
3230
  }
3248
- .table:not(.table-zebra) tbody tr:not(:last-child) td,.table:not(.table-zebra) tbody tr:not(:last-child) th,.table:not(.table-zebra) tfoot tr:not(:last-child) td,.table:not(.table-zebra) tfoot tr:not(:last-child) th,.table:not(.table-zebra) thead tr:not(:last-child) td,.table:not(.table-zebra) thead tr:not(:last-child) th{
3249
- --tw-border-opacity:1;
3250
- border-color:hsla(var(--b2) / var(--tw-border-opacity, 1));
3251
- border-bottom-width:1px;
3252
- }
3253
- .table tfoot td,.table tfoot th,.table thead td,.table thead th{
3231
+ .table:where(:not(.table-zebra)) :where(thead,tbody,tfoot) :where(tr:not(:last-child) :where(th,td)){
3232
+ --tw-border-opacity:1;
3233
+ border-color:hsla(var(--b2) / var(--tw-border-opacity, 1));
3234
+ border-bottom-width:1px;
3235
+ }
3236
+ .table :where(thead,tfoot) :where(th,td){
3254
3237
  --tw-bg-opacity:1;
3255
3238
  background-color:hsla(var(--b2) / var(--tw-bg-opacity, 1));
3256
3239
  font-weight:700;
@@ -3258,18 +3241,18 @@
3258
3241
  line-height:1rem;
3259
3242
  text-transform:uppercase;
3260
3243
  }
3261
- .table tfoot td:first-child,.table tfoot th:first-child,.table thead td:first-child,.table thead th:first-child{
3244
+ .table :where(thead,tfoot) :where(th,td):first-child{
3262
3245
  border-top-left-radius:.5rem;
3263
3246
  border-bottom-left-radius:.5rem;
3264
3247
  }
3265
- .table tfoot td:last-child,.table tfoot th:last-child,.table thead td:last-child,.table thead th:last-child{
3248
+ .table :where(thead,tfoot) :where(th,td):last-child{
3266
3249
  border-top-right-radius:.5rem;
3267
3250
  border-bottom-right-radius:.5rem;
3268
3251
  }
3269
- .table tbody td,.table tbody th{
3270
- --tw-bg-opacity:1;
3271
- background-color:hsla(var(--b1) / var(--tw-bg-opacity, 1));
3272
- }
3252
+ .table :where(tbody th,tbody td){
3253
+ --tw-bg-opacity:1;
3254
+ background-color:hsla(var(--b1) / var(--tw-bg-opacity, 1));
3255
+ }
3273
3256
  .table-zebra tbody tr td:first-child,.table-zebra tbody tr th:first-child{
3274
3257
  border-top-left-radius:.5rem;
3275
3258
  border-bottom-left-radius:.5rem;
@@ -3410,20 +3393,26 @@
3410
3393
  .toggle:focus-visible{
3411
3394
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--bc));
3412
3395
  }
3413
- .toggle:checked{
3414
- --chkbg:hsl(var(--bc));
3396
+ .toggle:checked,.toggle[checked=true]{
3397
+ --chkbg:hsl(var(--bc))
3398
+ }
3399
+ .toggle:checked,.toggle[checked=true]{
3415
3400
  --tw-bg-opacity:1;
3416
3401
  --tw-border-opacity:1;
3402
+ }
3403
+ .toggle:checked,.toggle[checked=true]{
3417
3404
  box-shadow:var(--handleoffset) 0 0 2px hsl(var(--b1)) inset, 0 0 0 2px hsl(var(--b1)) inset, var(--focus-shadow);
3418
3405
  }
3419
- [dir=rtl] .toggle:checked{
3406
+ [dir=rtl] .toggle:checked,[dir=rtl] .toggle[checked=true]{
3420
3407
  box-shadow:calc(var(--handleoffset)*1) 0 0 2px hsl(var(--b1)) inset, 0 0 0 2px hsl(var(--b1)) inset, var(--focus-shadow);
3421
3408
  }
3422
3409
  .toggle-primary:focus-visible{
3423
3410
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--p));
3424
3411
  }
3425
- .toggle-primary:checked{
3412
+ .toggle-primary:checked,.toggle-primary[checked=true]{
3426
3413
  --chkbg:hsl(var(--p));
3414
+ }
3415
+ .toggle-primary:checked,.toggle-primary[checked=true]{
3427
3416
  --tw-bg-opacity:1;
3428
3417
  background-color:hsla(var(--p) / var(--tw-bg-opacity, 1));
3429
3418
  --tw-border-opacity:1;
@@ -3435,8 +3424,10 @@
3435
3424
  .toggle-secondary:focus-visible{
3436
3425
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--s));
3437
3426
  }
3438
- .toggle-secondary:checked{
3427
+ .toggle-secondary:checked,.toggle-secondary[checked=true]{
3439
3428
  --chkbg:hsl(var(--s));
3429
+ }
3430
+ .toggle-secondary:checked,.toggle-secondary[checked=true]{
3440
3431
  --tw-bg-opacity:1;
3441
3432
  background-color:hsla(var(--s) / var(--tw-bg-opacity, 1));
3442
3433
  --tw-border-opacity:1;
@@ -3448,8 +3439,10 @@
3448
3439
  .toggle-accent:focus-visible{
3449
3440
  --focus-shadow:0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--a));
3450
3441
  }
3451
- .toggle-accent:checked{
3442
+ .toggle-accent:checked,.toggle-accent[checked=true]{
3452
3443
  --chkbg:hsl(var(--a));
3444
+ }
3445
+ .toggle-accent:checked,.toggle-accent[checked=true]{
3453
3446
  --tw-bg-opacity:1;
3454
3447
  background-color:hsla(var(--a) / var(--tw-bg-opacity, 1));
3455
3448
  --tw-border-opacity:1;
@@ -3603,42 +3596,47 @@
3603
3596
  }.prose{
3604
3597
  color:inherit;
3605
3598
  }
3606
- .prose .lead,.prose a,.prose a code,.prose blockquote,.prose figure figcaption,.prose h1,.prose h2,.prose h3,.prose h4,.prose strong,.prose thead{
3599
+
3600
+ .prose :where(a,blockquote,figure figcaption,a code,thead,strong,.lead,h1,h2,h3,h4):not(:where([class~=not-prose] *)){
3607
3601
  color:inherit;
3608
3602
  }
3609
- .prose .lead:hover,.prose a:hover,.prose a code:hover,.prose blockquote:hover,.prose figure figcaption:hover,.prose h1:hover,.prose h2:hover,.prose h3:hover,.prose h4:hover,.prose strong:hover,.prose thead:hover{
3610
- color:inherit;
3611
- }
3612
- .prose code{
3613
- background:hsla(var(--bc) / .2);
3603
+
3604
+ .prose :where(code):not(:where([class~=not-prose] *)){
3605
+ background:hsla(var(--bc) / .1);
3614
3606
  color:hsl(var(--bc));
3607
+ padding:2px 8px;
3615
3608
  border-radius:var(--rounded-badge);
3616
3609
  }
3617
- .prose pre{
3610
+
3611
+ .prose code:after,.prose code:before{
3612
+ content:none;
3613
+ }
3614
+
3615
+ .prose pre{
3618
3616
  background:hsl(var(--n));
3619
3617
  color:hsl(var(--nc));
3620
3618
  border-radius:var(--rounded-box);
3621
3619
  }
3622
- .prose pre code{
3620
+
3621
+ .prose pre code{
3623
3622
  border-radius:none;
3624
3623
  background:inherit;
3624
+ padding:0;
3625
3625
  color:inherit;
3626
3626
  }
3627
- .prose code:after,.prose code:before{
3628
- content:none;
3629
- }
3630
- .prose ol>li:before,.prose ol>li:hover:before{
3631
- color:inherit;
3632
- }
3633
- .prose blockquote{
3627
+
3628
+ .prose blockquote{
3634
3629
  border-left-color:hsl(var(--bc) / 40%);
3635
3630
  }
3636
- .prose ul>li:before{
3637
- background-color:hsl(var(--bc) / 40%);
3631
+
3632
+ .prose :where(ul>li,ol>li):not(:where([class~=not-prose] *))::marker{
3633
+ color:hsl(var(--bc) / 40%);
3638
3634
  }
3639
- .prose thead{
3640
- border-bottom-color:hsl(var(--bc) / 40%);
3635
+
3636
+ .prose :where(thead th,tbody td):not(:where([class~=not-prose] *)){
3637
+ color:inherit;
3641
3638
  }
3642
- .prose tbody tr{
3643
- border-bottom-color:hsl(var(--bc) / 40%);
3639
+
3640
+ .prose :where(tbody tr,thead):not(:where([class~=not-prose] *)){
3641
+ border-bottom-color:hsl(var(--bc) / 20%);
3644
3642
  }