daisyui 1.23.1 → 1.24.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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [1.24.0](https://github.com/saadeghi/daisyui/compare/v1.23.1...v1.24.0) (2022-01-17)
6
+
7
+
8
+ ### Features
9
+
10
+ * add responsive classes for `menu` ,fix: [#392](https://github.com/saadeghi/daisyui/issues/392) ([f825aea](https://github.com/saadeghi/daisyui/commit/f825aeab7fed82130e639e713d3de5707233ac02))
11
+
5
12
  ### [1.23.1](https://github.com/saadeghi/daisyui/compare/v1.23.0...v1.23.1) (2022-01-17)
6
13
 
7
14
 
package/README.md CHANGED
@@ -79,7 +79,7 @@ Loading CSS files from CDN is not recommended for production. It's better to ins
79
79
 
80
80
 
81
81
  ```html
82
- <link href="https://cdn.jsdelivr.net/npm/daisyui@1.23.0/dist/full.css" rel="stylesheet" type="text/css" />
82
+ <link href="https://cdn.jsdelivr.net/npm/daisyui@1.23.1/dist/full.css" rel="stylesheet" type="text/css" />
83
83
  <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2/dist/tailwind.min.css" rel="stylesheet" type="text/css" />
84
84
  ```
85
85
 
package/dist/full.css CHANGED
@@ -2111,6 +2111,10 @@ html{
2111
2111
 
2112
2112
  .menu :where(li)>a{
2113
2113
  cursor:pointer;
2114
+ -webkit-user-select:none;
2115
+ -moz-user-select:none;
2116
+ -ms-user-select:none;
2117
+ user-select:none;
2114
2118
  }
2115
2119
 
2116
2120
  .menu :where(li)>a:focus{
@@ -3824,6 +3828,12 @@ html{
3824
3828
  border-radius:var(--rounded-btn, .5rem);
3825
3829
  }
3826
3830
 
3831
+ .menu :where(li.bordered>a),.menu :where(li.bordered>span){
3832
+ --tw-border-opacity:1;
3833
+ border-color:hsla(var(--p) / var(--tw-border-opacity, 1));
3834
+ border-left-width:4px;
3835
+ }
3836
+
3827
3837
  .menu li>:where(a),.menu li>:where(span){
3828
3838
  padding:.75rem 1.25rem;
3829
3839
  color:currentColor;
@@ -3859,12 +3869,6 @@ html{
3859
3869
  color:hsla(var(--bc) / var(--tw-text-opacity, 1));
3860
3870
  }
3861
3871
 
3862
- .menu li.bordered a,.menu li.bordered span{
3863
- --tw-border-opacity:1;
3864
- border-color:hsla(var(--p) / var(--tw-border-opacity, 1));
3865
- border-left-width:4px;
3866
- }
3867
-
3868
3872
  .menu li.hover-bordered a{
3869
3873
  border-color:transparent;
3870
3874
  border-left-width:4px;
@@ -9384,6 +9388,23 @@ html{
9384
9388
  min-width:2.5em;
9385
9389
  }
9386
9390
 
9391
+ .menu-vertical{
9392
+ flex-direction:column;
9393
+ }
9394
+
9395
+ .menu-vertical :where(li){
9396
+ flex-direction:column;
9397
+ }
9398
+
9399
+ .menu-horizontal{
9400
+ display:inline-flex;
9401
+ flex-direction:row;
9402
+ }
9403
+
9404
+ .menu-horizontal :where(li){
9405
+ flex-direction:row;
9406
+ }
9407
+
9387
9408
  .radio-xs{
9388
9409
  height:1rem;
9389
9410
  width:1rem;
@@ -9845,6 +9866,30 @@ html{
9845
9866
  margin-top:1rem;
9846
9867
  }
9847
9868
 
9869
+ .menu-vertical :where(li.bordered>a),.menu-vertical :where(li.bordered>span){
9870
+ border-bottom-width:0;
9871
+ border-left-width:4px;
9872
+ }
9873
+
9874
+ .menu-horizontal :where(li.bordered>a),.menu-horizontal :where(li.bordered>span){
9875
+ border-left-width:0;
9876
+ border-bottom-width:4px;
9877
+ }
9878
+
9879
+ .menu-normal :where(li>a),.menu-normal :where(li>span){
9880
+ font-size:1rem;
9881
+ line-height:1.5rem;
9882
+ padding-top:.75rem;
9883
+ padding-bottom:.75rem;
9884
+ }
9885
+
9886
+ .menu-compact :where(li>a),.menu-compact :where(li>span){
9887
+ font-size:.875rem;
9888
+ line-height:1.25rem;
9889
+ padding-top:.5rem;
9890
+ padding-bottom:.5rem;
9891
+ }
9892
+
9848
9893
  .steps-horizontal [class~=step]{
9849
9894
  grid-template-rows:40px 1fr;
9850
9895
  grid-template-columns:auto;
@@ -14129,6 +14174,23 @@ html{
14129
14174
  min-width:2.5em;
14130
14175
  }
14131
14176
 
14177
+ .sm\:menu-vertical{
14178
+ flex-direction:column;
14179
+ }
14180
+
14181
+ .sm\:menu-vertical :where(li){
14182
+ flex-direction:column;
14183
+ }
14184
+
14185
+ .sm\:menu-horizontal{
14186
+ display:inline-flex;
14187
+ flex-direction:row;
14188
+ }
14189
+
14190
+ .sm\:menu-horizontal :where(li){
14191
+ flex-direction:row;
14192
+ }
14193
+
14132
14194
  .sm\:radio-xs{
14133
14195
  height:1rem;
14134
14196
  width:1rem;
@@ -14590,6 +14652,30 @@ html{
14590
14652
  margin-top:1rem;
14591
14653
  }
14592
14654
 
14655
+ .sm\:menu-vertical :where(li.bordered>a),.sm\:menu-vertical :where(li.bordered>span){
14656
+ border-bottom-width:0;
14657
+ border-left-width:4px;
14658
+ }
14659
+
14660
+ .sm\:menu-horizontal :where(li.bordered>a),.sm\:menu-horizontal :where(li.bordered>span){
14661
+ border-left-width:0;
14662
+ border-bottom-width:4px;
14663
+ }
14664
+
14665
+ .sm\:menu-normal :where(li>a),.sm\:menu-normal :where(li>span){
14666
+ font-size:1rem;
14667
+ line-height:1.5rem;
14668
+ padding-top:.75rem;
14669
+ padding-bottom:.75rem;
14670
+ }
14671
+
14672
+ .sm\:menu-compact :where(li>a),.sm\:menu-compact :where(li>span){
14673
+ font-size:.875rem;
14674
+ line-height:1.25rem;
14675
+ padding-top:.5rem;
14676
+ padding-bottom:.5rem;
14677
+ }
14678
+
14593
14679
  .sm\:steps-horizontal [class~=step]{
14594
14680
  grid-template-rows:40px 1fr;
14595
14681
  grid-template-columns:auto;
@@ -18875,6 +18961,23 @@ html{
18875
18961
  min-width:2.5em;
18876
18962
  }
18877
18963
 
18964
+ .md\:menu-vertical{
18965
+ flex-direction:column;
18966
+ }
18967
+
18968
+ .md\:menu-vertical :where(li){
18969
+ flex-direction:column;
18970
+ }
18971
+
18972
+ .md\:menu-horizontal{
18973
+ display:inline-flex;
18974
+ flex-direction:row;
18975
+ }
18976
+
18977
+ .md\:menu-horizontal :where(li){
18978
+ flex-direction:row;
18979
+ }
18980
+
18878
18981
  .md\:radio-xs{
18879
18982
  height:1rem;
18880
18983
  width:1rem;
@@ -19336,6 +19439,30 @@ html{
19336
19439
  margin-top:1rem;
19337
19440
  }
19338
19441
 
19442
+ .md\:menu-vertical :where(li.bordered>a),.md\:menu-vertical :where(li.bordered>span){
19443
+ border-bottom-width:0;
19444
+ border-left-width:4px;
19445
+ }
19446
+
19447
+ .md\:menu-horizontal :where(li.bordered>a),.md\:menu-horizontal :where(li.bordered>span){
19448
+ border-left-width:0;
19449
+ border-bottom-width:4px;
19450
+ }
19451
+
19452
+ .md\:menu-normal :where(li>a),.md\:menu-normal :where(li>span){
19453
+ font-size:1rem;
19454
+ line-height:1.5rem;
19455
+ padding-top:.75rem;
19456
+ padding-bottom:.75rem;
19457
+ }
19458
+
19459
+ .md\:menu-compact :where(li>a),.md\:menu-compact :where(li>span){
19460
+ font-size:.875rem;
19461
+ line-height:1.25rem;
19462
+ padding-top:.5rem;
19463
+ padding-bottom:.5rem;
19464
+ }
19465
+
19339
19466
  .md\:steps-horizontal [class~=step]{
19340
19467
  grid-template-rows:40px 1fr;
19341
19468
  grid-template-columns:auto;
@@ -23621,6 +23748,23 @@ html{
23621
23748
  min-width:2.5em;
23622
23749
  }
23623
23750
 
23751
+ .lg\:menu-vertical{
23752
+ flex-direction:column;
23753
+ }
23754
+
23755
+ .lg\:menu-vertical :where(li){
23756
+ flex-direction:column;
23757
+ }
23758
+
23759
+ .lg\:menu-horizontal{
23760
+ display:inline-flex;
23761
+ flex-direction:row;
23762
+ }
23763
+
23764
+ .lg\:menu-horizontal :where(li){
23765
+ flex-direction:row;
23766
+ }
23767
+
23624
23768
  .lg\:radio-xs{
23625
23769
  height:1rem;
23626
23770
  width:1rem;
@@ -24082,6 +24226,30 @@ html{
24082
24226
  margin-top:1rem;
24083
24227
  }
24084
24228
 
24229
+ .lg\:menu-vertical :where(li.bordered>a),.lg\:menu-vertical :where(li.bordered>span){
24230
+ border-bottom-width:0;
24231
+ border-left-width:4px;
24232
+ }
24233
+
24234
+ .lg\:menu-horizontal :where(li.bordered>a),.lg\:menu-horizontal :where(li.bordered>span){
24235
+ border-left-width:0;
24236
+ border-bottom-width:4px;
24237
+ }
24238
+
24239
+ .lg\:menu-normal :where(li>a),.lg\:menu-normal :where(li>span){
24240
+ font-size:1rem;
24241
+ line-height:1.5rem;
24242
+ padding-top:.75rem;
24243
+ padding-bottom:.75rem;
24244
+ }
24245
+
24246
+ .lg\:menu-compact :where(li>a),.lg\:menu-compact :where(li>span){
24247
+ font-size:.875rem;
24248
+ line-height:1.25rem;
24249
+ padding-top:.5rem;
24250
+ padding-bottom:.5rem;
24251
+ }
24252
+
24085
24253
  .lg\:steps-horizontal [class~=step]{
24086
24254
  grid-template-rows:40px 1fr;
24087
24255
  grid-template-columns:auto;
@@ -28367,6 +28535,23 @@ html{
28367
28535
  min-width:2.5em;
28368
28536
  }
28369
28537
 
28538
+ .xl\:menu-vertical{
28539
+ flex-direction:column;
28540
+ }
28541
+
28542
+ .xl\:menu-vertical :where(li){
28543
+ flex-direction:column;
28544
+ }
28545
+
28546
+ .xl\:menu-horizontal{
28547
+ display:inline-flex;
28548
+ flex-direction:row;
28549
+ }
28550
+
28551
+ .xl\:menu-horizontal :where(li){
28552
+ flex-direction:row;
28553
+ }
28554
+
28370
28555
  .xl\:radio-xs{
28371
28556
  height:1rem;
28372
28557
  width:1rem;
@@ -28828,6 +29013,30 @@ html{
28828
29013
  margin-top:1rem;
28829
29014
  }
28830
29015
 
29016
+ .xl\:menu-vertical :where(li.bordered>a),.xl\:menu-vertical :where(li.bordered>span){
29017
+ border-bottom-width:0;
29018
+ border-left-width:4px;
29019
+ }
29020
+
29021
+ .xl\:menu-horizontal :where(li.bordered>a),.xl\:menu-horizontal :where(li.bordered>span){
29022
+ border-left-width:0;
29023
+ border-bottom-width:4px;
29024
+ }
29025
+
29026
+ .xl\:menu-normal :where(li>a),.xl\:menu-normal :where(li>span){
29027
+ font-size:1rem;
29028
+ line-height:1.5rem;
29029
+ padding-top:.75rem;
29030
+ padding-bottom:.75rem;
29031
+ }
29032
+
29033
+ .xl\:menu-compact :where(li>a),.xl\:menu-compact :where(li>span){
29034
+ font-size:.875rem;
29035
+ line-height:1.25rem;
29036
+ padding-top:.5rem;
29037
+ padding-bottom:.5rem;
29038
+ }
29039
+
28831
29040
  .xl\:steps-horizontal [class~=step]{
28832
29041
  grid-template-rows:40px 1fr;
28833
29042
  grid-template-columns:auto;
@@ -33113,6 +33322,23 @@ html{
33113
33322
  min-width:2.5em;
33114
33323
  }
33115
33324
 
33325
+ .\32xl\:menu-vertical{
33326
+ flex-direction:column;
33327
+ }
33328
+
33329
+ .\32xl\:menu-vertical :where(li){
33330
+ flex-direction:column;
33331
+ }
33332
+
33333
+ .\32xl\:menu-horizontal{
33334
+ display:inline-flex;
33335
+ flex-direction:row;
33336
+ }
33337
+
33338
+ .\32xl\:menu-horizontal :where(li){
33339
+ flex-direction:row;
33340
+ }
33341
+
33116
33342
  .\32xl\:radio-xs{
33117
33343
  height:1rem;
33118
33344
  width:1rem;
@@ -33574,6 +33800,30 @@ html{
33574
33800
  margin-top:1rem;
33575
33801
  }
33576
33802
 
33803
+ .\32xl\:menu-vertical :where(li.bordered>a),.\32xl\:menu-vertical :where(li.bordered>span){
33804
+ border-bottom-width:0;
33805
+ border-left-width:4px;
33806
+ }
33807
+
33808
+ .\32xl\:menu-horizontal :where(li.bordered>a),.\32xl\:menu-horizontal :where(li.bordered>span){
33809
+ border-left-width:0;
33810
+ border-bottom-width:4px;
33811
+ }
33812
+
33813
+ .\32xl\:menu-normal :where(li>a),.\32xl\:menu-normal :where(li>span){
33814
+ font-size:1rem;
33815
+ line-height:1.5rem;
33816
+ padding-top:.75rem;
33817
+ padding-bottom:.75rem;
33818
+ }
33819
+
33820
+ .\32xl\:menu-compact :where(li>a),.\32xl\:menu-compact :where(li>span){
33821
+ font-size:.875rem;
33822
+ line-height:1.25rem;
33823
+ padding-top:.5rem;
33824
+ padding-bottom:.5rem;
33825
+ }
33826
+
33577
33827
  .\32xl\:steps-horizontal [class~=step]{
33578
33828
  grid-template-rows:40px 1fr;
33579
33829
  grid-template-columns:auto;
package/dist/styled.css CHANGED
@@ -767,6 +767,10 @@
767
767
  }
768
768
  .menu :where(li)>a{
769
769
  cursor:pointer;
770
+ -webkit-user-select:none;
771
+ -moz-user-select:none;
772
+ -ms-user-select:none;
773
+ user-select:none;
770
774
  }
771
775
  .menu :where(li)>a:focus{
772
776
  outline:2px solid transparent;
@@ -2344,6 +2348,11 @@
2344
2348
  .menu[class*=p-] li a{
2345
2349
  border-radius:var(--rounded-btn, .5rem);
2346
2350
  }
2351
+ .menu :where(li.bordered>a),.menu :where(li.bordered>span){
2352
+ --tw-border-opacity:1;
2353
+ border-color:hsla(var(--p) / var(--tw-border-opacity, 1));
2354
+ border-left-width:4px;
2355
+ }
2347
2356
  .menu li>:where(a),.menu li>:where(span){
2348
2357
  padding:.75rem 1.25rem;
2349
2358
  color:currentColor;
@@ -2373,11 +2382,6 @@
2373
2382
  color:hsla(var(--bc) / var(--tw-text-opacity, 1));
2374
2383
  --tw-text-opacity:0.2;
2375
2384
  }
2376
- .menu li.bordered a,.menu li.bordered span{
2377
- --tw-border-opacity:1;
2378
- border-color:hsla(var(--p) / var(--tw-border-opacity, 1));
2379
- border-left-width:4px;
2380
- }
2381
2385
  .menu li.hover-bordered a{
2382
2386
  border-color:transparent;
2383
2387
  }