4
4
5
5
6
6
: root {
7
- font-family : Inter, Avenir, Helvetica, Arial, sans-serif;
8
- font-size : 16px ;
9
- line-height : 24px ;
10
- font-weight : 400 ;
11
- font-synthesis : none;
12
- text-rendering : optimizeLegibility;
13
- background : var (--background-color );
14
- -webkit-font-smoothing : antialiased;
15
- -moz-osx-font-smoothing : grayscale;
7
+ font-family : Inter, Avenir, Helvetica, Arial, sans-serif;
8
+ font-size : 16px ;
9
+ line-height : 24px ;
10
+ font-weight : 400 ;
11
+ font-synthesis : none;
12
+ text-rendering : optimizeLegibility;
13
+ background : var (--background-color );
14
+ -webkit-font-smoothing : antialiased;
15
+ -moz-osx-font-smoothing : grayscale;
16
16
-webkit-text-size-adjust : 100% ;
17
17
18
- --primary-color : # 396cd8 ;
19
- --text-color : # 0f0f0f ;
20
- --background-color : rgb (235 , 235 , 235 );
21
-
22
- --button-bg : # ffffff ;
23
- --button-active-bg : # e8e8e8 ;
24
- --dark-text-color : # f6f6f6 ;
25
- --dark-bg : # 2f2f2f ;
26
- --dark-button-bg : # 0f0f0f98 ;
27
- --dark-button-active-bg : # 0f0f0f69 ;
18
+ --primary-color : # 396cd8 ;
19
+ --text-color : # 0f0f0f ;
20
+ --background-color : rgb (235 , 235 , 235 );
21
+
22
+ --button-bg : # ffffff ;
23
+ --button-active-bg : # e8e8e8 ;
24
+ --dark-text-color : # f6f6f6 ;
25
+ --dark-bg : # 2f2f2f ;
26
+ --dark-button-bg : # 0f0f0f98 ;
27
+ --dark-button-active-bg : # 0f0f0f69 ;
28
28
29
29
/* Color map for buttons */
30
- --color-red : # F00 ;
31
- --color-green : # 0F0 ;
32
- --color-blue : # 00F ;
33
- --color-yellow : rgb (251 , 255 , 0 );
34
- --color-cyan : rgb (0 , 204 , 255 );
35
- --color-magenta : rgb (225 , 0 , 255 );
36
- --color-white : # FFF ;
37
- --color-off : # 272727 ;
38
-
39
- --window-width : 300px ;
30
+ --color-red : # F00 ;
31
+ --color-green : # 0F0 ;
32
+ --color-blue : # 00F ;
33
+ --color-yellow : rgb (251 , 255 , 0 );
34
+ --color-cyan : rgb (0 , 204 , 255 );
35
+ --color-magenta : rgb (225 , 0 , 255 );
36
+ --color-white : # FFF ;
37
+ --color-off : # 272727 ;
38
+
39
+ --window-width : 300px ;
40
40
--container-side-padding : 20px ;
41
41
}
42
42
43
43
html , body {
44
- height : 100% ;
44
+ height : 100% ;
45
45
overflow : hidden;
46
- margin : 0 ;
47
- padding : 1vh 0 ;
48
- display : grid;
46
+ margin : 0 ;
47
+ padding : 1vh 0 ;
48
+ display : grid;
49
49
}
50
50
51
51
.header {
52
- display : flex;
53
- flex-direction : column;
52
+ display : flex;
53
+ flex-direction : column;
54
54
justify-content : center;
55
- text-align : center;
55
+ text-align : center;
56
56
}
57
57
58
58
.container {
59
- height : 100% ;
60
- display : flex;
61
- flex-direction : column;
59
+ height : 100% ;
60
+ display : flex;
61
+ flex-direction : column;
62
62
justify-content : space-evenly;
63
- align-items : center;
64
- text-align : center;
65
- row-gap : 1vh ;
66
- overflow : inherit;
67
- max-height : 100% ;
63
+ align-items : center;
64
+ text-align : center;
65
+ row-gap : 1vh ;
66
+ overflow : inherit;
67
+ max-height : 100% ;
68
68
69
- width : 100% ;
70
- max-width : var (--window-width ) - var (--container-side-padding );
71
- margin : 0 auto; /* Center the container */
72
- padding : 0 var (--container-side-padding ); /* Add inner spacing */
69
+ width : 100% ;
70
+ max-width : var (--window-width ) - var (--container-side-padding );
71
+ margin : 0 auto; /* Center the container */
72
+ padding : 0 var (--container-side-padding ); /* Add inner spacing */
73
73
}
74
74
75
75
.logo {
76
- height : 6em ;
76
+ height : 6em ;
77
77
will-change : filter;
78
- transition : 0.75s ;
78
+ transition : 0.75s ;
79
79
}
80
80
81
81
.logo .leptos : hover {
82
82
filter : drop-shadow (0 0 2em # a82e20 );
83
83
}
84
+
84
85
.logo .tauri : hover {
85
86
filter : drop-shadow (0 0 2em # 24c8db );
86
87
}
88
+
87
89
# logo-row {
88
- display : flex;
90
+ display : flex;
89
91
justify-content : center;
90
92
}
91
93
92
94
a {
93
- font-weight : 500 ;
94
- color : var (--primary-color );
95
+ font-weight : 500 ;
96
+ color : var (--primary-color );
95
97
text-decoration : inherit;
96
98
}
97
99
@@ -104,82 +106,88 @@ h1 {
104
106
}
105
107
106
108
button {
107
- cursor : pointer;
108
- border-radius : 8px ;
109
- border : 1px solid transparent;
110
- font-size : 1em ;
111
- font-weight : 500 ;
112
- font-family : inherit;
113
- width : 100% ;
114
- --btn-width : 150px ;
115
- max-width : var (--btn-width );
116
- min-width : var (--btn-width );
117
- padding : 0.6em 1.2em ;
118
- color : var (--text-color );
109
+ cursor : pointer;
110
+ border-radius : 8px ;
111
+ border : 1px solid transparent;
112
+ font-size : 1em ;
113
+ font-weight : 500 ;
114
+ font-family : inherit;
115
+ width : 100% ;
116
+ --btn-width : 150px ;
117
+ max-width : var (--btn-width );
118
+ min-width : var (--btn-width );
119
+ padding : 0.6em 1.2em ;
120
+ color : var (--text-color );
119
121
background-color : var (--button-bg );
120
- transition : all 0.2s ease-in-out;
121
- box-shadow : 0 2px 2px rgba (0 , 0 , 0 , 0.2 );
122
- outline : none;
123
- width : 100% ;
124
- box-sizing : border-box;
122
+ transition : all 0.2s ease-in-out;
123
+ box-shadow : 0 2px 2px rgba (0 , 0 , 0 , 0.2 );
124
+ outline : none;
125
+ box-sizing : border-box;
125
126
}
127
+
126
128
button : hover {
127
129
border-color : var (--primary-color );
128
130
}
131
+
129
132
button : active {
130
- border-color : var (--primary-color );
133
+ border-color : var (--primary-color );
131
134
background-color : var (--button-active-bg );
132
135
}
133
136
134
137
/* Dynamic button color */
135
138
button [data-color ] {
136
- --btn-color : var (--primary-color ); /* Fallback/default if not set */
139
+ --btn-color : var (--primary-color ); /* Fallback/default if not set */
137
140
--btn-text-hover : # 000 ;
138
141
}
139
142
140
143
button [data-color ]: hover ,
141
144
button [data-color ]: active {
142
- border-color : var (--btn-color );
145
+ border-color : var (--btn-color );
143
146
background-color : var (--btn-color );
144
- box-shadow : 0 5px 15px var (--btn-color );
145
- color : var (--btn-text-hover );
147
+ box-shadow : 0 5px 15px var (--btn-color );
148
+ color : var (--btn-text-hover );
146
149
}
147
150
148
- button [data-color = "Red" ] {
149
- --btn-color : var (--color-red );
151
+ button [data-color = "Red" ] {
152
+ --btn-color : var (--color-red );
150
153
}
151
- button [data-color = "Green" ] {
152
- --btn-color : var (--color-green );
154
+
155
+ button [data-color = "Green" ] {
156
+ --btn-color : var (--color-green );
153
157
}
154
- button [data-color = "Blue" ] {
155
- --btn-color : var (--color-blue );
156
- --btn-text-hover : var (--dark-text-color );
158
+
159
+ button [data-color = "Blue" ] {
160
+ --btn-color : var (--color-blue );
161
+ --btn-text-hover : var (--dark-text-color );
157
162
}
158
- button [ data-color = "Yellow" ] {
159
- --btn- color: var ( --color-yellow );
160
- --btn-text-hover : var (--dark-text- color );
163
+
164
+ button [ data- color= "Yellow" ] {
165
+ --btn-color : var (--color-yellow );
161
166
}
162
- button [data-color = "Cyan" ] {
163
- --btn-color : var (--color-cyan );
167
+
168
+ button [data-color = "Cyan" ] {
169
+ --btn-color : var (--color-cyan );
164
170
}
171
+
165
172
button [data-color = "Magenta" ] {
166
- --btn-color : var (--color-magenta );
173
+ --btn-color : var (--color-magenta );
167
174
}
168
- button [ data-color = "White" ] {
169
- --btn- color: var ( --color-white );
170
- --btn-text-hover : var (--dark-text- color );
175
+
176
+ button [ data- color= "White" ] {
177
+ --btn-color : var (--color-white );
171
178
}
172
- button [data-color = "Off" ] {
173
- --btn-color : var (--color-off );
174
- --btn-text-hover : var (--dark-text-color );
179
+
180
+ button [data-color = "Off" ] {
181
+ --btn-color : var (--color-off );
182
+ --btn-text-hover : var (--dark-text-color );
175
183
}
176
184
177
185
178
186
@media (prefers-color-scheme : dark) {
179
187
: root {
180
- --text-color : var (--dark-text-color );
188
+ --text-color : var (--dark-text-color );
181
189
--background-color : var (--dark-bg );
182
- --button-bg : var (--dark-button-bg );
190
+ --button-bg : var (--dark-button-bg );
183
191
--button-active-bg : var (--dark-button-active-bg );
184
192
}
185
193
0 commit comments