-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
344 lines (321 loc) · 8.66 KB
/
Copy pathstyle.css
File metadata and controls
344 lines (321 loc) · 8.66 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
/* SayNoMore - style.css
*
* Layout: single column, contenuto centrato orizzontalmente.
* Niente footer "barra", niente position:fixed.
* Il footer e' una semplice riga di testo discreta che chiude la card.
*/
/* Font display per il titolo: Chakra Petch self-hosted.
File originali dal repo ufficiale Cadson Demak (SIL Open Font License 1.1):
https://github.com/cadsondemak/Chakra-Petch
Mantenere i file in fonts/ permette di NON contattare server esterni
(niente Google Fonts), preservando la privacy del visitatore. */
@font-face {
font-family: 'Chakra Petch';
src: url('fonts/ChakraPetch-SemiBold.woff2') format('woff2');
font-weight: 600;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Chakra Petch';
src: url('fonts/ChakraPetch-Bold.woff2') format('woff2');
font-weight: 700;
font-style: normal;
font-display: swap;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--bg-input: #2A2F4A;
--border-input: #3B3F5C;
--text-primary: #E5E9F0;
--text-secondary: #A5A8C5;
--text-muted: #6e7396;
--blue-accent: #4A76D9;
--blue-hover: #3B5FAA;
--error-color: #ff6b6b;
}
html {
min-height: 100%;
}
body {
min-height: 100vh;
min-height: 100dvh; /* dvh = dynamic viewport height, esclude la barra
dell'indirizzo dinamica di Chrome Android e Safari
iOS. Evita scroll bar fantasma. Fallback a vh su
browser piu' vecchi. */
font-family: Arial, sans-serif;
color: var(--text-primary);
background:
linear-gradient(rgba(27, 31, 58, 0.55), rgba(27, 31, 58, 0.75)),
url('background.webp');
background-size: cover;
background-position: center;
background-attachment: fixed;
display: flex;
flex-direction: column;
align-items: center;
padding: 2rem 1rem;
}
/* ---------- Card ---------- */
.container {
width: 100%;
max-width: 500px;
background: rgba(35, 39, 67, 0.55);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 12px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
padding: 2rem;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
/* margin-block auto + flex column su body centra verticalmente
SOLO quando la card e' piu' corta del viewport.
Su contenuti piu' alti, il margin auto degenera a 0 e la card
parte naturalmente dall'alto (con padding del body). */
margin: auto 0;
}
h1 {
text-align: center;
margin-bottom: 1.75rem;
font-family: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
font-size: 2.25rem;
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
background: linear-gradient(135deg, #ffffff 0%, #a5b8ff 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
}
h2 {
margin-bottom: 0.75rem;
font-size: 1.1rem;
font-weight: 600;
color: var(--text-secondary);
}
/* ---------- Form fields ---------- */
textarea {
width: 100%;
height: 220px;
padding: 0.875rem 1rem;
font-size: 0.95rem;
line-height: 1.5;
font-family: inherit;
background: var(--bg-input);
color: var(--text-primary);
border: 1px solid var(--border-input);
border-radius: 8px;
resize: vertical;
margin-bottom: 1rem;
transition: border-color 0.15s ease;
}
textarea:focus {
outline: none;
border-color: var(--blue-accent);
}
.pw-input {
width: 100%;
height: 2.875rem;
padding: 0 1rem;
font-size: 0.95rem;
background: var(--bg-input);
color: var(--text-primary);
border: 1px solid var(--border-input);
border-radius: 8px;
margin-bottom: 1rem;
transition: border-color 0.15s ease;
}
.pw-input:focus {
outline: none;
border-color: var(--blue-accent);
}
input.pw-input {
text-align: left;
}
/* Select con freccia custom (CSP-safe, no asset esterni) */
select.pw-input {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
height: 2.875rem;
padding: 0 2.5rem 0 1rem;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23A5A8C5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='1,1 6,7 11,1'/></svg>");
background-repeat: no-repeat;
background-position: right 1rem center;
background-size: 0.75rem;
cursor: pointer;
}
select.pw-input::-ms-expand { display: none; }
.field-label {
display: block;
margin-bottom: 0.5rem;
font-size: 0.875rem;
color: var(--text-secondary);
}
/* Riga checkbox per "Notificami via email" in index.php. Layout flex
* cosi' il box e l'etichetta restano allineati e cliccabili come un
* unico target (il <label> wrappa entrambi). */
.checkbox-row {
display: flex;
align-items: center;
gap: 0.6rem;
margin-bottom: 1rem;
font-size: 0.9rem;
color: var(--text-secondary);
cursor: pointer;
user-select: none;
}
.checkbox-row input[type="checkbox"] {
width: 1rem;
height: 1rem;
accent-color: var(--blue-accent);
cursor: pointer;
flex-shrink: 0;
}
.checkbox-row span {
line-height: 1.35;
}
.secret-box {
width: 100%;
min-height: 180px;
padding: 1rem;
font-size: 0.95rem;
line-height: 1.5;
font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
background: var(--bg-input);
color: var(--text-primary);
border: 1px solid var(--border-input);
border-radius: 8px;
resize: vertical;
}
/* ---------- Buttons ---------- */
button {
display: inline-block;
padding: 0.75rem 1.25rem;
font-size: 0.95rem;
font-weight: 600;
font-family: inherit;
text-align: center;
background: var(--blue-accent);
color: #fff;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background 0.15s ease, transform 0.05s ease;
}
button:hover {
background: var(--blue-hover);
}
button:active {
transform: translateY(1px);
}
button.generate {
width: 100%;
padding: 0.875rem 1.25rem;
margin-top: 0.5rem;
}
/* ---------- Link box ---------- */
.link-box {
display: flex;
flex-direction: column;
gap: 0.75rem;
width: 100%;
margin-bottom: 1rem;
}
.link-box input {
width: 100%;
padding: 0.75rem 1rem;
font-size: 0.85rem;
font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
background: var(--bg-input);
color: var(--text-primary);
border: 1px solid var(--border-input);
border-radius: 8px;
}
.link-box button {
align-self: stretch;
}
/* ---------- Misc ---------- */
.info-text {
text-align: center;
color: var(--text-secondary);
margin-bottom: 1rem;
font-size: 0.95rem;
}
.actions {
margin-top: 1.25rem;
}
.actions button {
width: 100%;
}
.error-text {
color: var(--error-color);
text-align: center;
margin-bottom: 1rem;
font-size: 0.9rem;
}
/* Variante in grassetto (es. errore "password obbligatoria", avviso debug) */
.error-text.error-strong {
font-weight: 700;
}
/* Override autofill Chrome/Edge */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
-webkit-box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
-webkit-text-fill-color: var(--text-primary) !important;
caret-color: var(--text-primary);
transition: background-color 9999s ease-out;
}
/* ---------- Footer ---------- */
/*
* Riga di testo discreta sotto la card. Niente position:fixed, niente
* barre full-width, niente blur. Si comporta come una caption della card.
* Lo wrapper full-width perche' il body e' display:flex column;
* gli diamo flex:none cosi' non si stira oltre il contenuto.
*/
footer {
width: 100%;
max-width: 500px;
padding: 1.25rem 1rem 0.5rem;
text-align: center;
font-size: 0.8rem;
color: var(--text-muted);
flex: none;
}
footer a {
color: var(--text-secondary);
text-decoration: none;
border-bottom: 1px solid rgba(165, 168, 197, 0.3);
transition: color 0.15s ease, border-color 0.15s ease;
}
footer a:hover {
color: var(--text-primary);
border-bottom-color: var(--text-primary);
}
/* ---------- Mobile ---------- */
@media (max-width: 500px) {
body {
padding: 1rem 0.75rem;
}
.container {
padding: 1.5rem 1.25rem;
border-radius: 10px;
}
h1 {
font-size: 1.875rem;
margin-bottom: 1.25rem;
}
textarea {
height: 180px;
}
footer {
padding: 1rem 0.5rem 0.25rem;
font-size: 0.75rem;
}
}