-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadjectiverating.css
More file actions
400 lines (345 loc) · 8.92 KB
/
Copy pathadjectiverating.css
File metadata and controls
400 lines (345 loc) · 8.92 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
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
/* adjectiverating.css */
/* General Body Styles for adjective rating page */
body#adjectiveRatingContainer {
font-family: 'Arial', sans-serif;
background-color: var(--primary-color);
color: #333;
margin: 0;
padding: 2vw;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
overflow-x: hidden;
overflow-y: auto;
position: relative;
}
/* Header styles for adjective rating page */
#adjectiveRatingContainer header {
text-align: center;
margin-bottom: 20px;
}
#adjectiveRatingContainer header h1 {
color: #333;
font-size: calc(1.5rem + 1vw);
margin-bottom: 0.5em;
}
/* Specific styles for the rating buttons */
#adjectiveRatingContainer .rating-button {
background-color: var(--secondary-color);
color: #333;
border: none;
border-radius: 5px;
padding: 0.8rem 1.5rem;
font-size: calc(0.8rem + 0.5vw);
width: 100%;
max-width: 200px;
cursor: pointer;
margin: 0.5rem;
transition: all 0.3s ease;
}
#adjectiveRatingContainer .rating-button.selected {
background-color: #444444;
color: white;
}
#adjectiveRatingContainer .rating-button:hover {
background-color: #666666;
}
#adjectiveRatingContainer .rating-button:focus {
outline: none;
}
/* Styles for the rating page container */
#adjectiveRatingContainer #ratingPage {
width: 95%;
max-width: 800px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 20px;
background-color: #ffffff;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Centering Loading text */
#adjectiveRatingContainer #adjectiveDisplay.centered-content {
display: flex;
justify-content: center;
align-items: center;
height: 200px;
}
/* Controls styling */
#adjectiveRatingContainer #controls {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
width: 100%;
max-width: 600px;
gap: 1rem;
margin-bottom: 20px;
}
/* Button container styling */
#adjectiveRatingContainer .button-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
/* Footer styling for adjective rating page */
#adjectiveRatingContainer footer {
text-align: center;
color: #333;
width: 100%;
padding: 20px 0;
background-color: var(--secondary-color);
position: fixed;
bottom: 0;
left: 0;
}
/* Confirmation button container and styling */
#adjectiveRatingContainer .confirm-container {
display: flex;
justify-content: center;
width: 100%;
margin-top: 10px; /* Zmenšená mezera mezi tlačítky a potvrzovacím tlačítkem */
margin-bottom: 60px; /* Prostor před patičkou */
}
#adjectiveRatingContainer .confirmation-button {
background-color: #808080; /* Tmavší odstín pro lepší viditelnost */
color: white;
border: none;
border-radius: 5px;
padding: 0.8rem 1.2rem;
cursor: pointer;
transition: all 0.3s ease;
display: block;
width: 100%;
max-width: 200px;
font-weight: bold; /* Zvýraznění tlačítka */
margin-top: 0; /* Žádná další mezera nahoře */
}
#adjectiveRatingContainer .confirmation-button:hover {
background-color: #808080;
transform: scale(1.05);
}
#adjectiveRatingContainer .confirmation-button:active {
background-color: #444444;
transform: scale(1.02);
}
/* Added to provide user with feedback after clicking confirm */
#adjectiveRatingContainer .confirmation-button:focus {
outline: none;
}
/* Progress Indicator */
#progress-container {
width: 100%;
text-align: center;
margin: 10px 0;
font-size: 1.2em;
color: #333;
}
/* Modal okno */
.modal {
display: none; /* Skryté ve výchozím stavu */
position: fixed;
z-index: 100;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.6);
}
.modal-content {
background-color: #fff;
border-radius: 8px;
margin: 15% auto;
padding: 20px;
width: 80%;
max-width: 400px;
text-align: center;
}
.close-button {
float: right;
font-size: 1.5em;
cursor: pointer;
}
/* Responsive Adjustments */
@media (max-width: 1024px) {
#adjectiveRatingContainer header h1 {
font-size: 2em;
}
#adjectiveRatingContainer .control-group h3 {
font-size: 1.5em;
}
#adjectiveRatingContainer .rating-button {
font-size: 1em;
padding: 10px 20px;
}
#adjectiveRatingContainer #controls {
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
}
@media (max-width: 768px) {
#adjectiveRatingContainer header h1 {
font-size: 1.8rem;
}
#adjectiveRatingContainer .control-group h3 {
font-size: 1.3em;
}
#adjectiveRatingContainer .rating-button {
font-size: 1rem;
padding: 12px 20px;
}
#adjectiveRatingContainer #controls {
flex-direction: row; /* Umístí tlačítka vedle sebe */
flex-wrap: wrap;
justify-content: space-between;
gap: 1rem;
margin-bottom: 5px; /* Menší mezera pod ovládacími prvky */
}
#adjectiveRatingContainer .button-container {
flex-direction: row; /* Tlačítka vedle sebe */
gap: 0.5rem;
}
#adjectiveRatingContainer .confirmation-button {
/* Už není fixní pozice, která způsobovala problémy */
position: static;
max-width: 300px;
margin: 10px auto 70px auto; /* Přidáno více místa dole pro footer */
}
#adjectiveRatingContainer #ratingPage {
padding: 1.5rem;
}
}
@media (max-width: 480px) {
#adjectiveRatingContainer header h1 {
font-size: 1.5rem;
}
#adjectiveRatingContainer .control-group h3 {
font-size: 1.2em;
}
#adjectiveRatingContainer .rating-button {
font-size: 1rem;
padding: 10px 16px;
max-width: 150px;
}
#adjectiveRatingContainer #controls {
flex-direction: column;
gap: 0.8rem;
}
#adjectiveRatingContainer #ratingPage {
padding: 1rem;
}
.modal-content {
width: 90%;
margin-top: 30%;
}
.rating-button {
font-size: 1rem;
padding: 10px 16px;
max-width: 150px;
}
.confirmation-button {
font-size: 1rem;
padding: 12px 20px;
margin-top: 1rem;
margin-bottom: 60px; /* Přidáno více místa dole pro footer */
}
.tooltip {
width: 180px;
font-size: 0.9rem;
}
#adjectiveRatingContainer .button-container {
flex-direction: row; /* Tlačítka vedle sebe */
}
}
@media (max-width: 320px) {
/* Další úpravy pro velmi malé obrazovky */
#adjectiveRatingContainer header h1 {
font-size: 1.2rem;
}
#adjectiveRatingContainer .control-group h3 {
font-size: 1em;
}
#adjectiveRatingContainer .rating-button {
font-size: 0.9rem;
padding: 8px 12px;
max-width: 120px;
}
.modal-content {
width: 90%;
margin-top: 30%;
}
#controls {
gap: 0.5rem;
}
#adjectiveRatingContainer #ratingPage {
padding: 0.8rem;
}
}
/* Color Palette for a Minimalistic, Neutral Look */
:root {
--primary-color: #f5f5f5;
--secondary-color: #bfbfbf;
--accent-color: #808080;
}
/* Posunutí info ikony do středu a výše */
.info-icon-container {
position: relative;
display: block; /* Změněno z inline-block na block pro lepší centrování */
text-align: center;
margin: 5px auto 15px auto; /* Upravené okraje pro lepší pozici */
transform: translateY(0); /* Odstraněn posun dolů */
width: 24px; /* Explicitní šířka pro lepší centrování */
}
.info-icon {
background-color: #555;
color: #fff;
border-radius: 50%;
width: 24px;
height: 24px;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-weight: bold;
font-size: 14px;
}
/* Tooltip styling - upravená pozice */
.tooltip {
visibility: hidden;
width: 235px; /* Zvětšená šířka pro lepší čitelnost */
background-color: #333;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 8px; /* Větší padding */
position: absolute;
z-index: 10; /* Zvýšený z-index pro jistotu */
bottom: 130%; /* Větší odsazení nad ikonou */
left: 50%;
transform: translateX(-50%); /* Vycentrování tooltipu */
opacity: 0;
transition: opacity 0.3s;
}
/* Šipka pod tooltipem */
.tooltip::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #333 transparent transparent transparent;
}
/* Zobrazení tooltipu při hover */
.info-icon-container:hover .tooltip {
visibility: visible;
opacity: 1;
}