-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
338 lines (293 loc) · 7.13 KB
/
styles.css
File metadata and controls
338 lines (293 loc) · 7.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
:root {
--bg-color: #ffffff;
--text-color: #000000;
--cell-bg: #ffffff;
--cell-selected: #e9ecef;
--border-color: #dee2e6;
--bingo-highlight: rgba(255, 193, 7, 0.8);
}
[data-theme="dark"] {
* {
color: inherit;
}
--bg-color: #212529;
--text-color: #ffffff;
--cell-bg: #343a40;
--cell-selected: #495057;
--border-color: #495057;
--bingo-highlight: rgba(255, 193, 7, 0.6);
}
body {
background-color: var(--bg-color);
color: var(--text-color);
transition: background-color 0.3s ease, color 0.3s ease;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
h1 {
color: var(--text-color);
margin: 1.5rem 0;
}
button {
color: var(--text-color);
background-color: var(--cell-bg);
border-color: var(--border-color);
}
button:hover {
background-color: var(--cell-selected);
color: var(--text-color);
}
.square-cell {
height: 120px;
text-align: center;
vertical-align: middle !important;
padding: 8px;
cursor: pointer;
background-color: var(--cell-bg);
color: var(--text-color);
border-color: var(--border-color) !important;
word-wrap: break-word;
overflow-wrap: break-word;
word-break: normal;
font-size: 14px;
display: table-cell;
hyphens: manual;
-webkit-hyphens: manual;
-ms-hyphens: manual;
transition: background-color 0.2s ease, transform 0.1s ease;
}
.square-cell.selected {
background-color: var(--cell-selected);
transform: scale(0.98);
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}
.square-cell:hover {
transform: scale(1.02);
z-index: 1;
background-color: #ffeb99; /* Light yellow highlight color */
box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}
/* Add dark theme hover styles */
[data-theme="dark"] .square-cell:hover {
background-color: #665e00; /* Darker yellow that works in dark mode */
box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}
.square-cell.selected:hover {
transform: scale(1);
background-color: #ffcc66; /* Darker highlight for selected cells */
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}
/* Add dark theme selected hover styles */
[data-theme="dark"] .square-cell.selected:hover {
background-color: #8c7b00; /* Darker highlight for selected cells in dark mode */
box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.2);
}
.table {
table-layout: fixed;
width: 100%;
margin: 0 auto;
max-width: 800px;
}
.controls {
position: fixed;
top: 1rem;
right: 1rem;
display: flex;
gap: 0.5rem;
z-index: 1000;
}
#language-toggle-btn {
background: none;
border: none;
color: var(--text-color);
font-size: 1.3rem;
padding: 0.5rem;
cursor: pointer;
transition: transform 0.3s ease;
border-radius: 4px;
background-color: var(--cell-bg);
border: 1px solid var(--border-color);
width: 40px;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
}
#theme-toggle-btn {
background: none;
border: none;
color: var(--text-color);
font-size: 1.2rem;
padding: 0.5rem;
cursor: pointer;
transition: transform 0.3s ease;
width: 40px;
height: 40px;
border-radius: 4px;
background-color: var(--cell-bg);
border: 1px solid var(--border-color);
display: flex;
justify-content: center;
align-items: center;
}
#theme-toggle-btn:hover, #language-toggle-btn:hover {
transform: scale(1.1);
}
.table-bordered {
border-color: var(--border-color);
}
.container {
max-width: 800px;
padding: 15px;
}
.refresh-container {
margin: 1.5rem 0;
}
#refresh-button {
padding: 0.5rem 1.5rem;
border-radius: 4px;
transition: all 0.3s ease;
font-weight: 500;
}
#refresh-button:hover {
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#refresh-button:active {
transform: scale(0.98);
}
@media (max-width: 768px) {
.square-cell {
height: 100px;
padding: 4px;
font-size: 12px;
hyphens: auto;
-webkit-hyphens: auto;
-ms-hyphens: auto;
}
h1 {
font-size: 1.5rem;
margin: 1rem 0;
}
.container {
padding: 0.5rem;
}
}
@media (max-width: 480px) {
.square-cell {
height: 80px;
padding: 3px;
font-size: 11px;
}
}
.dropdown-menu {
background-color: var(--cell-bg);
border-color: var(--border-color);
min-width: 120px;
}
.dropdown-item {
color: var(--text-color);
padding: 0.5rem 1rem;
}
.dropdown-item:hover, .dropdown-item:focus {
background-color: var(--cell-selected);
color: var(--text-color);
}
.dropdown-item.active {
background-color: var(--cell-selected);
color: var(--text-color);
font-weight: bold;
}
/* Make sure the dropdown toggle doesn't show the default caret */
.dropdown-toggle::after {
display: none;
}
/* Ensure all text is properly colored in dark mode */
[data-theme="dark"] button,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .dropdown-item,
[data-theme="dark"] .table,
[data-theme="dark"] .table th,
[data-theme="dark"] .table td,
[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
color: var(--text-color);
}
/* Force body text color in dark mode */
[data-theme="dark"] body {
color: var(--text-color) !important;
}
/* Fix for table cells in dark mode */
[data-theme="dark"] .square-cell {
background-color: var(--cell-bg);
color: var(--text-color);
border-color: var(--border-color) !important;
}
/* Ensure text color in dark mode with higher specificity */
[data-theme="dark"] .table td.square-cell,
[data-theme="dark"] .table .square-cell,
[data-theme="dark"] table.table .square-cell {
color: var(--text-color) !important;
}
/* Enhanced visual indicator for selected cells in dark mode */
[data-theme="dark"] .square-cell.selected {
background-color: #1e4b75; /* A more distinctive blue color instead of the darker gray */
border: 2px solid #3498db !important;
box-shadow: inset 0 0 10px rgba(52, 152, 219, 0.3);
}
[data-theme="dark"] .dropdown-menu {
background-color: var(--cell-bg);
border-color: var(--border-color);
}
[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
background-color: var(--cell-selected);
}
/* A11y focus indicators */
button:focus,
.dropdown-item:focus {
outline: 2px solid var(--text-color);
outline-offset: 2px;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.square-cell.bingo-highlight {
animation: bingo-pulse 1s ease-in-out infinite alternate;
box-shadow: 0 0 15px var(--bingo-highlight) !important;
z-index: 10;
position: relative;
}
@keyframes bingo-pulse {
0% {
transform: scale(0.98);
box-shadow: 0 0 10px var(--bingo-highlight);
}
100% {
transform: scale(1.02);
box-shadow: 0 0 20px var(--bingo-highlight);
}
}
/* Make sure bingo highlight works with hover */
.square-cell.bingo-highlight:hover {
animation: bingo-pulse 1s ease-in-out infinite alternate;
background-color: var(--cell-selected) !important;
}
[data-theme="dark"] .square-cell.bingo-highlight:hover {
background-color: var(--cell-selected) !important;
}
/* Ensure the canvas for confetti sits on top */
canvas {
position: fixed;
top: 0;
left: 0;
pointer-events: none;
z-index: 1000;
}