11: root {
2- --input-bg : # f8f9fa ;
3- --input-border : # dee2e6 ;
4- --button-primary : # 7048e8 ;
5- --button-hover : # 845ef7 ;
6- --selection-bg : # 7048e8 ;
7- --selection-color : # ffffff ;
8- }
2+ --bg : # ffffff ;
3+ --fg : # 1a1a1a ;
4+ --border : # e0e0e0 ;
5+ --subtle : # 666 ;
6+ --accent : # 27ae60 ;
7+ --shadow : rgba (0 , 0 , 0 , 0.1 );
98
10- * {
11- box-sizing : border-box;
12- text-align : center;
9+ --font-ui : ui-monospace, SFMono-Regular, Menlo, monospace;
10+ --font-body : "Georgia" , serif;
11+ --measure : 65ch ;
12+ --note-size : 1.125rem ;
1313}
1414
15- body {
16- font-family : system-ui , -apple-system , "Segoe UI" , Roboto , sans-serif ;
17- line-height : 1.6 ;
18- max-width : 600 px ;
19- margin : 0 auto ;
20- padding : 1 rem ;
15+ [ data-theme = "dark" ] {
16+ --bg : # 111111 ;
17+ --fg : # f0f0f0 ;
18+ --border : # 333333 ;
19+ --subtle : # 888 ;
20+ --shadow : rgba ( 0 , 0 , 0 , 0.5 ) ;
2121}
2222
23- ::selection {
24- background : rebeccapurple;
25- color : # ffffff ;
23+ * ,
24+ * ::before ,
25+ * ::after {
26+ box-sizing : border-box;
2627}
2728
28- h1 {
29- margin-bottom : 2rem ;
30- text-align : center;
31- display : flex;
32- align-items : center;
33- justify-content : center;
34- gap : 0.75rem ;
29+ body {
30+ margin : 0 ;
31+ line-height : 1.5 ;
32+ background-color : var (--bg );
33+ color : var (--fg );
34+ font-family : var (--font-ui );
35+ transition : background-color 0.2s ;
36+ display : flex;
37+ flex-direction : column;
38+ max-inline-size : 65ch ;
39+ margin-inline : auto;
40+ align-items : center;
41+ justify-content : center;
42+ height : 100dvh ;
43+ }
44+ header {
45+ margin-block-end : 3rem ;
46+ /* font-size: 1.75rem; */
47+ }
48+ header span {
49+ font-weight : 600 ;
3550}
36-
37- form {
38- margin-bottom : 1.5rem ;
51+ footer {
52+ margin-block-start : 2.5rem ;
3953}
4054
41- label {
42- display : block;
43- font-weight : 500 ;
55+ .stack {
56+ display : flex;
57+ flex-direction : column;
58+ justify-content : flex-start;
4459}
45-
46- button {
47- padding : 0.75rem 1.5rem ;
48- border : none;
49- border-radius : 6px ;
50- background : var (--button-primary );
51- color : white;
52- font-size : 1rem ;
53- font-weight : 500 ;
54- cursor : pointer;
55- transition : background-color 0.3s ease;
56- margin-right : 0.5rem ;
60+ .stack > * {
61+ margin-block : 0 ;
5762}
58-
59- button : hover {
60- background : var (--button-hover );
63+ .stack > * + * {
64+ margin-block-start : 1.5rem ;
6165}
62-
63- button # reset {
64- background : transparent;
65- border : 1px solid var (--button-primary );
66- color : var (--button-primary );
66+ .center {
67+ box-sizing : content-box;
68+ margin-inline : auto;
69+ max-inline-size : var (--measure );
6770}
68-
69- button # reset : hover {
70- background : var (--input-bg );
71+ .icon {
72+ width : 1em ;
73+ width : 1.5cap ;
74+ height : 1em ;
75+ height : 1.5cap ;
76+ /* width: 2em; */
77+ /* height: 2em; */
7178}
72-
73- input {
74- width : 100% ;
75- padding : 0.75rem ;
76- border : 1px solid var (--input-border );
77- border-radius : 6px ;
78- background : var (--input-bg );
79- margin-bottom : 1rem ;
80- font-size : 1rem ;
79+ .with-icon {
80+ display : inline-flex;
81+ align-items : baseline;
82+ align-items : center;
8183}
82-
83- input ,
84- button {
85- border-radius : 5px !important ;
84+ .with-icon .icon {
85+ margin-inline-end : 0.5rem ;
8686}
8787
88- footer {
89- margin-top : 3rem ;
90- text-align : center;
91- font-size : 0.875rem ;
92- opacity : 0.8 ;
88+ ::selection {
89+ background : rebeccapurple;
90+ color : # ffffff ;
9391}
94-
95- footer p a {
96- text-decoration : none ;
92+ . heart {
93+ text-decoration : none;
94+ color : inherit ;
9795}
98-
99- footer p a : hover {
100- color : red;
96+ .heart : hover {
97+ color : # e00 ;
10198}
102-
103- # status {
104- margin-top : 1rem ;
105- }
0 commit comments