-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
475 lines (398 loc) · 7.9 KB
/
style.css
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
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
/*
Tombola
Il classico gioco natalizio online.
Copyright (C) 2020 Vincenzo Padula
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
@font-face {
font-family: 'Dadhand';
src: url(dadhand.ttf);
}
:root {
--cursor-default: url(img/cursor_default.svg), auto;
--cursor-pointer: url(img/cursor_pointer.svg), pointer;
--cursor-wait: url(img/cursor_wait.svg), wait;
}
* {
font-family: 'Dadhand' !important;
cursor: var(--cursor-default);
}
*::selection {
background-color: #502D06;
color: #FFF;
}
body, html {
padding: 0;
margin: 0;
font-size: 1.8rem;
}
body {
background: url(img/bg_page.svg);
}
#container {
width: 100%;
text-align: center;
margin: 0;
}
#logo {
max-width: 1000px;
width: 80vw;
margin: 5vh 0 10vh 0;
}
#logo:hover {
cursor: var(--cursor-pointer);
}
#box_b {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
padding: 0;
margin: 0;
background: #0008;
text-align: center;
z-index: 2;
}
#box {
width: 60vw;
height: auto;
color: #502D16;
box-shadow: 0 10px 18px 0 #0006, 0 6px 20px 0 #0006;
background-color: #DAB076;
background: url(img/bg_message.svg) center;
border-radius: 17px;
padding: 5vh 5vw 1vh 5vw;
margin-top: 20vh;
display: inline-block;
z-index: 3;
}
#messaggio {
max-height: 60vh;
overflow-y: auto;
}
a { color: #7f3618; text-decoration: none; cursor: var(--cursor-pointer); }
a:link { color: #7f3618; text-decoration: none; cursor: var(--cursor-pointer); }
a:visited { color: #7f3618; text-decoration: none; cursor: var(--cursor-pointer); }
a:active { color: #ffffff; text-decoration: none; cursor: var(--cursor-pointer); }
a:hover { color: #ffffff; text-decoration: none; cursor: var(--cursor-pointer); }
button {
width: 21vw;
height: 10vw;
line-height: 10vw;
color: white;
background: url(img/button.svg);
background-position: center;
background-size: contain;
background-repeat: no-repeat;
border-style: hidden;
margin: 2vw 1vw;
cursor: var(--cursor-pointer);
font-size: 3vw;
text-shadow: 1px 1px 2px black;
}
button:active {
transform: scale(.90);
}
.small-button {
width: 10vw;
height: 5vw;
line-height: 5vw;
font-size: 2vw;
padding: 0;
}
button:disabled {
cursor: var(--cursor-wait);
opacity: 0.6;
}
input {
text-align: center;
font-size: 5vw;
line-height: 5vw;
color: white;
width: 70vw;
border-color: #502D06;
border-width: 0 0 4px 0;
border-style: solid;
border-radius: 16px;
background-color: rgba(0,0,0,0.1);
}
#w-help {
font-size: 3vw;
text-align: center;
}
.titolo {
text-align: center;
color: white;
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}
#tombolone {
padding: 5px;
color: white;
box-shadow: 5px 5px 15px rgba(0,0,0,0.7);
background: url(img/bg_card.svg);
border-radius: 12px;
border-collapse: separate;
border-spacing: 0.5vw;
margin: 15px 0 0 15px;
}
#client_nome {
font-size: 1.5rem;
color: white;
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
border-style: hidden;
height: 100px;
}
#client_cartella {
display: inline-block;
float: left;
margin: 15px 0 0 15px;
}
#client_cartella table {
border-spacing: 10px 18px;
box-shadow: 5px 5px 15px rgba(0,0,0,0.7);
background: url(img/bg_card.svg);
}
table.cartella {
color: white;
text-align: center;
border-style: hidden;
border-spacing: 0.6vw;
border-radius: 12px;
border-collapse: separate;
}
table.cartella td {
width: 4vw;
height: 4vw;
font-size: 2vw;
text-align: center;
vertical-align: middle;
color: white;
border-radius: 50%;
border: 1px solid #fff;
}
table.cartella td.estratto {
box-shadow: 0 3px 6px 0 rgba(0,0,0,0.5), 0 3px 6px 0 rgba(0,0,0,0.4);
color: #7F3618;
background: url(img/bg_number.png);
border-style: hidden;
}
div#ultimi {
display: inline-block;
}
div#ultimi div {
width: 7vw;
height: 7vw;
line-height: 7vw;
font-size: 4vw;
margin: 0 0.5vw;
text-align: center;
vertical-align: middle;
box-shadow: 0 3px 6px 0 rgba(0,0,0,0.5), 0 3px 6px 0 rgba(0,0,0,0.4);
color: #7F3618;
background: url(img/bg_number.png);
border-style: hidden;
border-radius: 50%;
display: inline-block;
}
div#ultimi div:first-child {
width: 10vw;
height: 10vw;
line-height: 10vw;
font-size: 7vw;
box-shadow: 0 3px 6px 0 rgba(0,0,0,0.5), 0 3px 6px 0 rgba(0,0,0,0.4);
border-radius: 50%;
}
div#ultimi div:empty {
display: none;
}
#utenti {
font-size: 3vw;
}
#utenti div {
display: inline-block;
}
#utenti div div:first-child {
color: white;
font-size: 4vw;
display: block;
margin: 20px 20px 0 20px;
}
#pin-title {
font-size: 5vw;
line-height: 6vw;
}
#pin-code {
font-size: 12vw;
margin-top: -12px;
background-color: rgba(0,0,0,0.1);
line-height: 12vw;
}
table#informazioni {
font-size: 3vw;
margin-top: 20px;
border-spacing: 10px;
border-collapse: separate;
}
table#informazioni td:first-child {
color: white;
text-align: right;
}
.premio {
color: white;
width: 60%;
}
table#vincitori {
font-size: 2.5vw;
margin-top: 20px;
}
table#vincitori td {
padding: 1vw 2vw 0 0;
}
.privato {
color: #5F1600;
}
table#stats {
display: inline-block;
width: 100%;
}
table#stats td {
font-size: 1.6rem;
}
table#stats td:first-child {
width: 100%;
text-align: left;
padding-left: 5vw;
}
table#stats td:last-child {
text-align: center;
padding-right: 5vw;
}
table#stats tr:hover {
background-color: rgba(0, 0, 0, 0.1);
}
footer {
text-align: center;
display: inline-block;
width: 100%;
font-size: 3vw;
margin-top: 50px;
background-color: rgba(0,0,0,0.1);
}
footer a {
display: inline-block;
line-height: 6vw;
width: 48%;
padding: 0;
}
::-webkit-input-placeholder { color: #fff; }
::-moz-placeholder { color: #fff; }
:-ms-input-placeholder { color: #fff; }
:-moz-placeholder { color: #fff; }
@media only screen and (max-width: 600px) {
body, html {
font-size: 1.2rem;
}
#logo {
width: 90vw;
}
#box {
width: 80vw;
}
button {
width: 36vw;
height: 18vw;
line-height: 18vw;
font-size: 5vw;
}
.small-button {
width: 20vw;
height: 10vw;
line-height: 10vw;
font-size: 4vw;
}
input {
width: 86vw;
font-size: 10vw;
line-height: 10vw;
}
#w-help {
font-size: 5vw;
}
#pin-title {
font-size: 8vw;
line-height: 11vw;
}
#pin-code {
font-size: 16vw;
line-height: 18vw;
}
table#informazioni {
font-size: 6vw;
}
#utenti {
font-size: 5vw;
}
#utenti div div:first-child {
font-size: 6vw;
}
#client_cartella {
float: none;
margin: 0;
}
#client_cartella table {
border-spacing: 1vw 3vw;
}
#tombolone {
margin: 10px 0;
}
table.cartella td {
width: 9vw;
height: 9vw;
font-size: 5vw;
}
table#vincitori {
font-size: 6vw;
}
div#ultimi div {
width: 14vw;
height: 14vw;
line-height: 14vw;
font-size: 9vw;
}
div#ultimi div:first-child {
width: 20vw;
height: 20vw;
line-height: 20vw;
font-size: 14vw;
box-shadow: 0 3px 6px 0 rgba(0,0,0,0.5), 0 3px 6px 0 rgba(0,0,0,0.4);
border-radius: 50%;
}
table#stats td {
font-size: 1rem;
}
a {
font-size: 10vw;
}
footer {
text-align: center;
display: block;
line-height: inherit;
padding: 10px 0;
}
footer a {
display: block;
font-size: 6vw;
margin: 8px 0;
width: 100%;
}
}