-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.scss
347 lines (290 loc) · 6.87 KB
/
index.scss
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
html{
height: 100%;
}
body {
margin: 0;
}
body {
/* sets the left and right margin to automatic, which centers the element horizontally */
margin: 0 auto;
/* sets the maximum width of the element to 960 pixels to ensure that it doesn't become too wide on larger screens */
max-width: 960px;
background: linear-gradient(to bottom, #141E30, #243B55);
}
h1 {
/* sets the font family to a modern sans-serif font */
font-family: "Roboto", Arial, sans-serif;
/* sets the font size to a large, prominent size */
font-size: 3em;
/* sets the font weight to bold for added emphasis */
font-weight: bold;
/* adds some extra space between letters */
letter-spacing: 2px;
/* centers the text horizontally within its container */
text-align: center;
/* capitalizes all the letters in the heading */
text-transform: uppercase;
/* sets the text color */
color: #e6f2ff;
/* adds a subtle shadow to the text */
text-shadow: 4px 4px 0 black;
cursor: default;
}
h2 {
display: block;
text-align: center;
margin-top: -1em;
font-size: 1.5em;
cursor: default;
}
h3 {
display: block;
text-align: center;
font-size: 1em;
cursor: default;
}
main {
color: #e6f2ff;
font-family: sans-serif;
}
hr {
border: 1px solid #e6f2ff;
}
a {
color: #e6f2ff;
}
/* ---------------------------- */
/* TEXT AREA */
/* ---------------------------- */
/* Style de base pour le textarea */
textarea {
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
width: 100%;
max-width: 100%;
box-sizing: border-box;
resize: vertical; /* Permet de redimensionner verticalement */
}
/* Style lorsqu'on survole le textarea */
textarea:hover {
border-color: #888;
}
/* Style lorsque le textarea a le focus */
textarea:focus {
border-color: #4CAF50;
box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
outline: none;
}
/* Style pour un textarea désactivé */
textarea:disabled {
background-color: #f0f0f0;
cursor: not-allowed;
}
/* Style pour un textarea en lecture seule */
textarea[readonly] {
background-color: #f0f0f0;
}
/* Style pour un textarea avec une erreur/validation */
textarea.error {
border-color: #FF5722;
}
textarea.valid {
border-color: #4CAF50;
}
/* ---------------------------- */
/* TEXT AND NUMBER INPUT */
/* ---------------------------- */
/* Style de base pour le champ de texte */
input[type="text"],
input[type="number"] {
width: 100%;
max-width: 100%;
padding: 10px;
border: 2px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 16px;
color: #333;
transition: border-color 0.2s;
}
/* Style lorsqu'on survole le champ de texte */
input[type="text"]:hover,
input[type="number"]:hover {
border-color: #888;
}
/* Style lorsque le champ de texte a le focus */
input[type="text"]:focus, input[type="number"]:focus {
border-color: #4CAF50;
box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
outline: none;
}
/* Style pour un champ de texte désactivé */
input[type="text"]:disabled, input[type="number"]:disabled {
background-color: #f0f0f0;
cursor: not-allowed;
}
/* Style pour un champ de texte avec une erreur/validation */
input[type="text"].error, input[type="number"].error {
border-color: #FF5722;
}
input[type="text"].valid, input[type="number"].valid {
border-color: #4CAF50;
}
/* ---------------------------- */
/* CHECKBOX INPUT */
/* ---------------------------- */
/* Style de base pour la case à cocher réelle (input) */
input[type="checkbox"] {
width: 20px;
height: 20px;
margin-right: 10px;
appearance: none; /* Masque les styles par défaut du navigateur */
cursor: pointer;
border: 2px solid #ccc;
border-radius: 5px;
transition: border-color 0.2s;
}
/* Style du point (le marqueur de case cochée) */
input[type="checkbox"]:checked::before {
content: "✔";
font-size: 16px;
color: #4CAF50;
display: block;
text-align: center;
line-height: 20px;
}
/* Style lorsqu'on survole la case à cocher */
input[type="checkbox"]:hover {
border-color: #888;
}
/* Style pour une case à cocher avec une erreur/validation */
input[type="checkbox"].error {
border-color: #FF5722;
}
input[type="checkbox"].valid {
border-color: #4CAF50;
}
/* ---------------------------- */
/* SELECT */
/* ---------------------------- */
/* Style de base pour la liste déroulante */
select {
width: 100%;
padding: 10px;
border: 2px solid #ccc;
border-radius: 5px;
font-size: 16px;
color: #333;
background-color: #fff;
appearance: none; /* Masque les styles par défaut du navigateur */
cursor: pointer;
transition: border-color 0.2s;
}
/* Style lorsqu'on survole la liste déroulante */
select:hover {
border-color: #888;
}
/* Style lorsque la liste déroulante a le focus */
select:focus {
border-color: #4CAF50;
box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
outline: none;
}
/* Style pour une liste déroulante désactivée */
select:disabled {
background-color: #f0f0f0;
cursor: not-allowed;
}
/* Style pour une liste déroulante avec une erreur/validation */
select.error {
border-color: #FF5722;
}
select.valid {
border-color: #4CAF50;
}
/* ---------------------------- */
/* BUTTON */
/* ---------------------------- */
button {
display: inline-block;
padding: 12px 32px;
font-size: 16px;
font-weight: 600;
color: #e6f2ff;
text-transform: uppercase;
background-color: #141E30;
border: none;
border-radius: 25px;
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease 0s;
}
button:hover {
background-color: #243B55;
box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.3);
transform: translateY(-7px);
}
button:active {
transform: translateY(-2px);
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}
/* ---------------------------- */
/* TOOLTIP */
/* ---------------------------- */
.tooltip {
position: relative;
}
.tooltip .tooltiptext {
visibility: hidden;
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
padding: 16px;
margin-top: 16px;
background-color: rgba(0, 0, 0, 0.8);
color: #e6f2ff;
width: 260px;
}
.tooltip .tooltiptext::before {
content: "";
position: absolute;
top: 0%;
left: 50%;
transform: translateX(-50%);
margin-top: -32px;
border-width: 16px;
border-style: solid;
border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
}
.tooltip:hover .tooltiptext {
visibility: visible;
}
.clue {
display: inline-block;
width: 18px;
height: 18px;
border-radius: 50%;
border: 2px solid #e6f2ff;
text-align: center;
font-size: 12px;
line-height: 18px;
cursor: default;
}
/* ---------------------------- */
/* CONTAINER */
/* ---------------------------- */
.io-container {
display: flex;
}
.io-panel {
flex: 1;
//box-sizing: border-box;
}
.io-panel-left {
margin-right: 6px
}
.io-panel-right {
margin-left: 6px
}