File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 1- : root {
1+ : root ,
2+ [data-theme = "dark" ] {
23 --bg : # 0f172a ;
34 --surface : # 1e293b ;
45 --text : # f8fafc ;
1819 --color-10 : linear-gradient (135deg , # 14b8a6, # 0d9488 );
1920}
2021
22+ [data-theme = "light" ] {
23+ --bg : # f8fafc ;
24+ --surface : # e2e8f0 ;
25+ --text : # 0f172a ;
26+ --shadow : rgba (0 , 0 , 0 , 0.1 );
27+ }
28+
2129.panel__options {
2230 background : var (--surface );
2331 z-index : 10 ;
4452 cursor : pointer;
4553 transition : 0.2s ;
4654 position : relative;
55+ color : var (--text );
4756 }
4857
4958 & label : focus-within ,
5059 & .icon : hover {
5160 background : var (--primary );
61+ color : white;
5262 }
5363
5464 & input [type = "radio" ]: focus-visible + .icon {
5565 outline : 2px solid var (--primary );
5666 outline-offset : 2px ;
57- border-radius : 0.5rem ;
58- }
59-
60- & input [type = "radio" ]: checked + .icon {
61- color : white;
62- background : var (--primary );
63- border-radius : 0.5rem ;
64- padding : 0.25rem ;
65- }
66-
67- & .sr-only {
6867 position : absolute;
6968 width : 1px ;
7069 height : 1px ;
8180 }
8281
8382 & input [type = "radio" ]: checked + .icon {
83+ background : var (--primary );
8484 color : white;
8585 }
8686
152152 align-items : center;
153153 justify-content : center;
154154 font-size : 3rem ;
155- color : var ( --text ) ;
155+ color : white ;
156156 background : var (--surface );
157157 border-radius : 0.5rem ;
158158 box-shadow : 0 2px 8px var (--shadow );
203203 & .panel__cell .front {
204204 font-size : 10rem ;
205205 background-color : black;
206- transition : font-size 0.6s , background-color 0.6s ;
206+ transition : transform 0.6 s , font-size 0.6s , background-color 0.6s ;
207207 }
208208
209209 & .panel__cell : nth-child (1 ) {
You can’t perform that action at this time.
0 commit comments