@@ -725,6 +725,26 @@ section {
725
725
grid-template-columns : repeat (12 , 1fr );
726
726
gap : var (--pico-grid-row-gap ) var (--pico-grid-column-gap );
727
727
}
728
+ .row-fluid .align-center ,
729
+ .row .align-center {
730
+ align-items : center;
731
+ }
732
+ .row-fluid .align-start ,
733
+ .row .align-start {
734
+ align-items : start;
735
+ }
736
+ .row-fluid .align-end ,
737
+ .row .align-end {
738
+ align-items : end;
739
+ }
740
+ .row-fluid > [class *= col ] > * ,
741
+ .row-fluid > [class |= col ] > * ,
742
+ .row-fluid > [class ~= col ] > * ,
743
+ .row > [class *= col ] > * ,
744
+ .row > [class |= col ] > * ,
745
+ .row > [class ~= col ] > * {
746
+ margin : calc (var (--pico-block-spacing-vertical ) * 0.5 ) auto;
747
+ }
728
748
729
749
.row {
730
750
max-width : 1200px ;
@@ -828,7 +848,7 @@ section {
828
848
grid-column-start : 12 ;
829
849
}
830
850
831
- @media (max -width: 510px ) {
851
+ @media (min -width: 510px ) {
832
852
.col-sm-1 {
833
853
grid-column-end : span 1 ;
834
854
}
@@ -902,7 +922,7 @@ section {
902
922
grid-column-start : 12 ;
903
923
}
904
924
}
905
- @media (max -width: 700px ) {
925
+ @media (min -width: 700px ) {
906
926
.col-md-1 {
907
927
grid-column-end : span 1 ;
908
928
}
@@ -976,7 +996,7 @@ section {
976
996
grid-column-start : 12 ;
977
997
}
978
998
}
979
- @media (max -width: 950px ) {
999
+ @media (min -width: 950px ) {
980
1000
.col-lg-1 {
981
1001
grid-column-end : span 1 ;
982
1002
}
@@ -1050,7 +1070,7 @@ section {
1050
1070
grid-column-start : 12 ;
1051
1071
}
1052
1072
}
1053
- @media (max -width: 1200px ) {
1073
+ @media (min -width: 1200px ) {
1054
1074
.col-xl-1 {
1055
1075
grid-column-end : span 1 ;
1056
1076
}
@@ -1124,7 +1144,7 @@ section {
1124
1144
grid-column-start : 12 ;
1125
1145
}
1126
1146
}
1127
- @media (max -width: 1450px ) {
1147
+ @media (min -width: 1450px ) {
1128
1148
.col-xxl-1 {
1129
1149
grid-column-end : span 1 ;
1130
1150
}
@@ -1742,7 +1762,8 @@ canvas {
1742
1762
input ,
1743
1763
optgroup ,
1744
1764
select ,
1745
- textarea {
1765
+ textarea ,
1766
+ [role = group ] > label {
1746
1767
margin : 0 ;
1747
1768
font-size : 1rem ;
1748
1769
line-height : var (--pico-line-height );
@@ -1816,7 +1837,8 @@ textarea {
1816
1837
border-width : 0 ;
1817
1838
}
1818
1839
1819
- input : not ([type = checkbox ], [type = radio ], [type = range ], [type = date ]) {
1840
+ input : not ([type = checkbox ], [type = radio ], [type = range ], [type = date ]),
1841
+ [role = group ] > label {
1820
1842
height : calc (1rem * var (--pico-line-height ) + var (--pico-form-element-spacing-vertical ) * 2 + var (--pico-border-width ) * 2 );
1821
1843
}
1822
1844
@@ -1849,7 +1871,8 @@ textarea {
1849
1871
1850
1872
input : not ([type = checkbox ], [type = radio ], [type = range ], [type = file ]),
1851
1873
select ,
1852
- textarea {
1874
+ textarea ,
1875
+ [role = group ] > label {
1853
1876
-webkit-appearance : none;
1854
1877
-moz-appearance : none;
1855
1878
appearance : none;
@@ -1858,7 +1881,8 @@ textarea {
1858
1881
1859
1882
input ,
1860
1883
select ,
1861
- textarea {
1884
+ textarea ,
1885
+ [role = group ] > label {
1862
1886
--pico-background-color : var (--pico-form-element-background-color );
1863
1887
--pico-border-color : var (--pico-form-element-border-color );
1864
1888
--pico-color : var (--pico-form-element-color );
@@ -1899,6 +1923,7 @@ input:not([type=submit],
1899
1923
}
1900
1924
1901
1925
input : not ([type = submit ], [type = button ], [type = reset ])[disabled ],
1926
+ [role = group ] > label ,
1902
1927
select [disabled ],
1903
1928
textarea [disabled ],
1904
1929
label [aria-disabled = true ],
@@ -1907,7 +1932,8 @@ label[aria-disabled=true],
1907
1932
pointer-events : none;
1908
1933
}
1909
1934
1910
- label [aria-disabled = true ] input [disabled ] {
1935
+ label [aria-disabled = true ] input [disabled ],
1936
+ [role = group ] > label {
1911
1937
opacity : 1 ;
1912
1938
}
1913
1939
@@ -1974,14 +2000,16 @@ input::placeholder,
1974
2000
input ::-webkit-input-placeholder ,
1975
2001
textarea ::placeholder ,
1976
2002
textarea ::-webkit-input-placeholder ,
1977
- select : invalid {
2003
+ select : invalid ,
2004
+ [role = group ] > label {
1978
2005
color : var (--pico-form-element-placeholder-color );
1979
2006
opacity : 1 ;
1980
2007
}
1981
2008
1982
2009
input : not ([type = checkbox ], [type = radio ]),
1983
2010
select ,
1984
- textarea {
2011
+ textarea ,
2012
+ [role = group ] > label {
1985
2013
margin-bottom : var (--pico-spacing );
1986
2014
}
1987
2015
@@ -2376,6 +2404,12 @@ details {
2376
2404
display : block;
2377
2405
margin-bottom : var (--pico-spacing );
2378
2406
}
2407
+ details : not ([open ]) summary ~ * {
2408
+ max-height : 0 ;
2409
+ overflow : hidden;
2410
+ opacity : 0 ;
2411
+ transition : max-height var (--pico-transition ), opacity var (--pico-transition );
2412
+ }
2379
2413
details summary {
2380
2414
line-height : 1rem ;
2381
2415
list-style-type : none;
@@ -2435,6 +2469,11 @@ details[open] > summary:not([role]):not(:focus) {
2435
2469
details [open ] > summary ::after {
2436
2470
transform : rotate (0 );
2437
2471
}
2472
+ details [open ] > summary ~ * {
2473
+ max-height : 100 ; /* Initial max height for content */
2474
+ opacity : 1 ;
2475
+ transition : max-height var (--pico-transition ), opacity var (--pico-transition );
2476
+ }
2438
2477
2439
2478
[dir = rtl ] details summary {
2440
2479
text-align : right;
@@ -2650,41 +2689,54 @@ label > details.dropdown {
2650
2689
vertical-align : middle;
2651
2690
transition : box-shadow var (--pico-transition );
2652
2691
}
2692
+ [role = search ] > label ,
2693
+ [role = group ] > label {
2694
+ background-color : var (--pico-secondary-background );
2695
+ color : var (--pico-secondary-inverse );
2696
+ }
2653
2697
[role = search ] > * ,
2654
2698
[role = search ] input : not ([type = checkbox ], [type = radio ]),
2655
2699
[role = search ] select ,
2700
+ [role = search ] label ,
2656
2701
[role = group ] > * ,
2657
2702
[role = group ] input : not ([type = checkbox ], [type = radio ]),
2658
- [role = group ] select {
2703
+ [role = group ] select ,
2704
+ [role = group ] label {
2659
2705
position : relative;
2660
2706
flex : 1 1 auto;
2661
2707
margin-bottom : 0 ;
2662
2708
}
2663
2709
[role = search ] > * : not (: first-child ),
2664
2710
[role = search ] input : not ([type = checkbox ], [type = radio ]): not (: first-child ),
2665
2711
[role = search ] select : not (: first-child ),
2712
+ [role = search ] label : not (: first-child ),
2666
2713
[role = group ] > * : not (: first-child ),
2667
2714
[role = group ] input : not ([type = checkbox ], [type = radio ]): not (: first-child ),
2668
- [role = group ] select : not (: first-child ) {
2715
+ [role = group ] select : not (: first-child ),
2716
+ [role = group ] label : not (: first-child ) {
2669
2717
margin-left : 0 ;
2670
2718
border-top-left-radius : 0 ;
2671
2719
border-bottom-left-radius : 0 ;
2672
2720
}
2673
2721
[role = search ] > * : not (: last-child ),
2674
2722
[role = search ] input : not ([type = checkbox ], [type = radio ]): not (: last-child ),
2675
2723
[role = search ] select : not (: last-child ),
2724
+ [role = search ] label : not (: last-child ),
2676
2725
[role = group ] > * : not (: last-child ),
2677
2726
[role = group ] input : not ([type = checkbox ], [type = radio ]): not (: last-child ),
2678
- [role = group ] select : not (: last-child ) {
2727
+ [role = group ] select : not (: last-child ),
2728
+ [role = group ] label : not (: last-child ) {
2679
2729
border-top-right-radius : 0 ;
2680
2730
border-bottom-right-radius : 0 ;
2681
2731
}
2682
2732
[role = search ] > * : focus ,
2683
2733
[role = search ] input : not ([type = checkbox ], [type = radio ]): focus ,
2684
2734
[role = search ] select : focus ,
2735
+ [role = search ] label : focus ,
2685
2736
[role = group ] > * : focus ,
2686
2737
[role = group ] input : not ([type = checkbox ], [type = radio ]): focus ,
2687
- [role = group ] select : focus {
2738
+ [role = group ] select : focus ,
2739
+ [role = group ] label : focus {
2688
2740
z-index : 2 ;
2689
2741
}
2690
2742
[role = search ] button : not (: first-child ),
@@ -2694,25 +2746,29 @@ label > details.dropdown {
2694
2746
[role = search ] [role = button ]: not (: first-child ),
2695
2747
[role = search ] input : not ([type = checkbox ], [type = radio ]): not (: first-child ),
2696
2748
[role = search ] select : not (: first-child ),
2749
+ [role = search ] label : not (: first-child ),
2697
2750
[role = group ] button : not (: first-child ),
2698
2751
[role = group ] [type = submit ]: not (: first-child ),
2699
2752
[role = group ] [type = reset ]: not (: first-child ),
2700
2753
[role = group ] [type = button ]: not (: first-child ),
2701
2754
[role = group ] [role = button ]: not (: first-child ),
2702
2755
[role = group ] input : not ([type = checkbox ], [type = radio ]): not (: first-child ),
2703
- [role = group ] select : not (: first-child ) {
2756
+ [role = group ] select : not (: first-child ),
2757
+ [role = group ] label : not (: first-child ) {
2704
2758
margin-left : calc (var (--pico-border-width ) * -1 );
2705
2759
}
2706
2760
[role = search ] button ,
2707
2761
[role = search ] [type = submit ],
2708
2762
[role = search ] [type = reset ],
2709
2763
[role = search ] [type = button ],
2710
2764
[role = search ] [role = button ],
2765
+ [role = search ] label ,
2711
2766
[role = group ] button ,
2712
2767
[role = group ] [type = submit ],
2713
2768
[role = group ] [type = reset ],
2714
2769
[role = group ] [type = button ],
2715
- [role = group ] [role = button ] {
2770
+ [role = group ] [role = button ],
2771
+ [role = group ] label {
2716
2772
width : auto;
2717
2773
}
2718
2774
@supports selector(: has (* )) {
@@ -2722,8 +2778,10 @@ label > details.dropdown {
2722
2778
}
2723
2779
[role = search ]: has (button : focus , [type = submit ]: focus , [type = button ]: focus , [role = button ]: focus ) input : not ([type = checkbox ], [type = radio ]),
2724
2780
[role = search ]: has (button : focus , [type = submit ]: focus , [type = button ]: focus , [role = button ]: focus ) select ,
2781
+ [role = search ]: has (button : focus , [type = submit ]: focus , [type = button ]: focus , [role = button ]: focus ) label ,
2725
2782
[role = group ]: has (button : focus , [type = submit ]: focus , [type = button ]: focus , [role = button ]: focus ) input : not ([type = checkbox ], [type = radio ]),
2726
- [role = group ]: has (button : focus , [type = submit ]: focus , [type = button ]: focus , [role = button ]: focus ) select {
2783
+ [role = group ]: has (button : focus , [type = submit ]: focus , [type = button ]: focus , [role = button ]: focus ) select ,
2784
+ [role = group ]: has (button : focus , [type = submit ]: focus , [type = button ]: focus , [role = button ]: focus ) label {
2727
2785
border-color : transparent;
2728
2786
}
2729
2787
[role = search ]: has (input : not ([type = submit ], [type = button ]): focus , select : focus ),
@@ -2734,10 +2792,12 @@ label > details.dropdown {
2734
2792
[role = search ]: has (input : not ([type = submit ], [type = button ]): focus , select : focus ) [type = submit ],
2735
2793
[role = search ]: has (input : not ([type = submit ], [type = button ]): focus , select : focus ) [type = button ],
2736
2794
[role = search ]: has (input : not ([type = submit ], [type = button ]): focus , select : focus ) [role = button ],
2795
+ [role = search ]: has (input : not ([type = submit ], [type = button ]): focus , select : focus ) label ,
2737
2796
[role = group ]: has (input : not ([type = submit ], [type = button ]): focus , select : focus ) button ,
2738
2797
[role = group ]: has (input : not ([type = submit ], [type = button ]): focus , select : focus ) [type = submit ],
2739
2798
[role = group ]: has (input : not ([type = submit ], [type = button ]): focus , select : focus ) [type = button ],
2740
- [role = group ]: has (input : not ([type = submit ], [type = button ]): focus , select : focus ) [role = button ] {
2799
+ [role = group ]: has (input : not ([type = submit ], [type = button ]): focus , select : focus ) [role = button ],
2800
+ [role = group ]: has (input : not ([type = submit ], [type = button ]): focus , select : focus ) label {
2741
2801
--pico-button-box-shadow : 0 0 0 var (--pico-border-width ) var (--pico-primary-border );
2742
2802
--pico-button-hover-box-shadow : 0 0 0 var (--pico-border-width ) var (--pico-primary-hover-border );
2743
2803
}
@@ -2746,11 +2806,13 @@ label > details.dropdown {
2746
2806
[role = search ] [type = reset ]: focus ,
2747
2807
[role = search ] [type = button ]: focus ,
2748
2808
[role = search ] [role = button ]: focus ,
2809
+ [role = search ] label : focus ,
2749
2810
[role = group ] button : focus ,
2750
2811
[role = group ] [type = submit ]: focus ,
2751
2812
[role = group ] [type = reset ]: focus ,
2752
2813
[role = group ] [type = button ]: focus ,
2753
- [role = group ] [role = button ]: focus {
2814
+ [role = group ] [role = button ]: focus ,
2815
+ [role = group ] label : focus {
2754
2816
box-shadow : none;
2755
2817
}
2756
2818
}
0 commit comments