summaryrefslogtreecommitdiff
path: root/Statics/Css/main.css
blob: cd3ab6547137609cf21c6e7b4bdd0cb2022a850b (plain)
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
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
/* 
Sites web utilisés pour le CSS:
https://css-tricks.com/guides/
https://stackoverflow.com/
https://www.w3schools.com/css/default.asp

Toutes les recherches sont effectuées en anglais
sur mon instance SearX https://searx.debulois.fr
*/

/* Déclaration de la palette de couleur */
:root {
    /* GLOBAL */
    --mainSiteColor:      #c0392b;
    --bodyBg:             #fafafa;  
    /* SEPARATOR */
    --separatorBg:        #fafafa;
    /* NAVBAR */
    --navbarText:         black;
    --navbarBg:           white;
    /* SLIDER */
    --slideText:          whitesmoke;
    --slideBg:            black;
    --slideStroke:        black;
    /* MAIN */
    --bg:                 white;
    --text:               black;
    --iconColor:          white;
    --btnHoverBg:         #e74c3c;
    /* TABLES */
    --tableText:          black;
    --tableBg:            #fafafa;
    --tableBorder:        rgba(0, 0, 0, 0.2);
    --tableStarUnchecked: darkgray;
    --tableStarChecked:   orange;
    /* FOOTER */
    --footerText:         #636e72;
    --footerBg:           #2d3436;
}

/* Déclaration des fonts */
@font-face {
    /* Nom du font */
    font-family: "akira";
    /* source du font */
    src:          url("../Fonts/akira.otf")
}

@font-face {
    font-family: "SourceSansPro";
    src:         url("../Fonts/SourceSansPro.ttf")
}

/* Déclaration des class */
/* NAVBAR */
.titleNavbar {
    /* Type de font à utiliser */
    font-family: akira;
    /* Couleur du text */
    color:       var(--mainSiteColor) !important;
    /* taille de l'élément flex */
    flex-grow:   1;
}

.userManager{
    /* Seconde ligne si plus de place */
    flex-wrap: wrap;
    flex-grow: 1;
}

.userManager li {
    /* type d'affichage */
    display:     flex;
    /* Alignement verticale */
    align-items: center;
}

.userManager a {
    /* Hauteur de la ligne */
    line-height: 2.5em;
}

.userManager i{
    /* Taille du texte */
    font-size: 1.3em;
}

.language{
    /* hauteur */
    height:          100%;
    display:         flex;
    /* direction du flex */
    flex-direction:  column;
    /* Métode d'espacement des éléments fles */
    justify-content: space-around;
    /* Alignement du texte horizontalement */
    text-align:      center;
    flex-grow:       1;
}
/* FIN NAVBAR */

/* SLIDER */
.slideSelected {
    color:     var(--mainSiteColor);
    /* Transform de type zoom x1,3 */
    transform: scale(1.3);
}

.show_block {
    /* Opacité de l'élément 0=transparent 1=opaque */
    display: block !important;
}
/* FIN SLIDER */

.show_flex {
    /* Opacité de l'élément 0=transparent 1=opaque */
    display: flex !important;
    flex-direction: column;
}

/* MESSAGE */
.success {
    color:         green;
    /* Type de texte gras */
    font-weight:     bold;
    /* Type du texte sous-ligné */
    text-decoration: underline;
    font-size:       28px;
}

.error {
    color:         red;
    font-weight:     bold;
    text-decoration: underline;
    font-size:       28px;
}
/* FIN MESSAGE */

/* TABLEAU */
.show_table {
    /* Opacité de l'élément 0=transparent 1=opaque */
    display: table !important;
}

.star {
    /* !important prend le dessus sur tout type de déclaration précédente */
    font-size:        20px           !important;
    width:            20%            !important;
    line-height:      1em            !important;
    height:           1em            !important;
    background-color: var(--tableBg) !important;
}

.unchecked {
    color: var(--tableStarUnchecked) !important;
}

.checked {
    color: var(--tableStarChecked) !important;
}

.noBorder {
    /* Bordure */
    border:           none    !important;
    background-color: white !important;
}
/* FIN TABLEAU */

/* GLOBAL */
.separator {
    height:             10vh;
    /* Couleur du fond */
    background-color:   var(--separatorBg);
}

.info {
    /* Style du texte italic */
    font-style: italic;
}

.spacer {
    flex-grow: 2;
}

.flex-center {
    justify-content: center !important;
}

.width-auto {
    width: auto !important;
}
/* FIN GLOBAL */

/* Déclaration globale */
html {
    /* transitions douce lors d'un appel d'id ex: index.php#IdNumero1 */
	scroll-behavior: smooth;
}

body {
    /* Choix du font */
    font-family:     SourceSansPro;
    margin:          0px;
    /* taille en vh (view height) pourcentage de hauteur de fenêtre*/
    min-height:      100vh;
    display:         flex;
    flex-direction:  column;
    justify-content: space-between;
    background-color: var(--bodyBg);
}

pre {
    /* Permet d'aller à la ligne */
    font-family: SourceSansPro;
    white-space: pre-wrap;
    margin:      0.3em 0em;
}

/* Déclaration par ID */
/* NAVBAR */
nav {
    /* Index de profondeur */
    z-index:          1;
    height:           10vh;
    display:          flex;
    align-items:      center;
    justify-content:  space-around;
    text-align:       center;
    background-color: var(--navbarBg);
    border-top:       var(--mainSiteColor) solid 6px;
    border-bottom:    var(--mainSiteColor) solid 3px;
    color:            var(--navbarText);
}

nav ul {
    display:              flex;
    justify-content:      space-around;
    column-gap:           15px;
    list-style-type:      none;
    /* Marge extérieure de l'élément */
    margin-block-start:   0px;
    margin-block-end:     0px;
    /* Marge intérieure de l'élément */
    padding-inline-start: 0px;
}

nav i {
    margin-right: 0.4em;
}

nav a {
    color:           var(--navbarText);
    text-decoration: none;
    transition:      all 0.15s ease-in-out;
}

nav a:hover {
    color:     var(--mainSiteColor);
    transform: scale(1.1);
    z-index:   2;
}
/* FIN NAVBAR */

/* SLIDER */
#slides {
    width:               100%;
    height:              70vh;
    background-color:    var(--navbarBg);
    /* Image de fond du slider */
    background-image:    url("/Medias/Images/slide0.jpg");
    /* Remplissage du fond en zoom */
    background-size:     cover;
    /* Non répétition de l'image de fond  */
    background-repeat:   no-repeat;
    /* Centrage de l'image */
    background-position: center;
    text-align:          center;
    transition:          background-image 0.3s linear;
}

#slides p {
    position:                  absolute;
    display:                   inline-block;
    left:                      0; 
    right:                     0; 
    margin-left:               auto; 
    margin-right:              auto;
    max-width:                 80%;
    font-size:                 48px;
    color:                     var(--slideText);
    /* opacity:                   0; */
    display: none;
    /* Aniamtion liée */
    animation-name:            textSlide;
    /* Durée de l'animation */
    animation-duration:        5s;
    /* Nombre de répétition de l'animation */
    animation-iteration-count: infinite;
}

#slides p span {
    font-family: akira;
    color:       var(--mainSiteColor);
    /* Ombre du texte: positionX, positionY, Etendue, Fondue */
    text-shadow:
         1px  1px 0 var(--slideStroke),          
         1px -1px 0 var(--slideStroke),
        -1px  1px 0 var(--slideStroke),
        -1px -1px 0 var(--slideStroke);
}

/* Etapes de l'animation */
@keyframes textSlide {
    0%    {top: 29%}
    35%   {top: 18%}
    100%  {top: 18%}
}

#slideDots {
    position:  absolute;
    /* Centrer un élément absolu, gauche moitié puis droite (moins moitié) */
    left:      50%;
    transform: translateX(-50%);
    margin:    0 auto;
    bottom:    10%;
}
#slideDots i {
    margin-right: 1em;
}

#slideDots i:last-child {
    margin-right: none;
}
/* FIN SLIDER */

/* GLOBAL */
main {
    width:             80%;
    min-height:        70vh;
    /* margin left & right en auto = centré */
    margin-left:       auto;
    margin-right:      auto;
    display:           flex;
    flex-direction:    column;
    justify-content:   center;
    text-align:        center;
    border-top:        6px solid var(--mainSiteColor);
    border-right:      3px solid var(--mainSiteColor);
    border-bottom:     3px solid var(--mainSiteColor);
    border-left:       3px solid var(--mainSiteColor);
    border-radius:     5px;
    background-color:  var(--bg);
    color:             var(--text);
}

main h2 {
    display:       inline-block;
    margin-left:   auto;
    margin-right:  auto;
    padding:       1.5% 5%;
    border-bottom: var(--mainSiteColor) 0.5vh solid;
}

#mainAdmin section {
    display: none;
}

#mainLogin    form,
#mainUserInfo form,
#mainRegister form,
#mainMission  form,
#mainAdmin    form,
#mainSearch   form {
    display:         flex;
    flex-direction:  column;
    justify-content: space-around;
    gap:             1em;
    padding:         1.5% 5%;
    align-items:     center;
}

#mainSearch form,
#mainAdmin  form {
    flex-direction: row;
}

#mainLogin    label,
#mainUserInfo label,
#mainRegister label,
#mainMission  label,
#mainAdmin    label,
#mainSearch   label {
    width:   80%;
    display: flex;
}

#mainLogin    i,
#mainUserInfo i,
#mainRegister i,
#mainMission  i,
#mainAdmin    i,
#mainSearch   i {
    width:            90px;
    height:           2em;
    line-height:      2em;
    font-size:        28px;
    color:            var(--iconColor);
    background-color: var(--mainSiteColor);
    border-radius: 5px 0px 0px 5px;
}

#mainMyMission table,
#mainAdmin     table,
#mainSearch    table {
    color:           var(--text);
    padding:         5%;
    border-collapse: collapse;
    width:           95%;
    margin:          1em auto;
}

#mainMyMission table {
    display: none;
}

#mainMyMission th,
#mainAdmin     th,
#mainSearch    th {
    font-size:        15px;
    border:           2px solid var(--mainSiteColor);
    background-color: var(--tableBg);
}

#mainMyMission td,
#mainAdmin     td,
#mainSearch    td {

    border:           2px solid var(--tableBorder);
    background-color: var(--tableBg);
}

#mainUserInfo input[type="text"],
#mainMission  input[type="text"],
#mainLogin    input[type="email"],
#mainLogin    input[type="password"],
#mainRegister input[type="email"],
#mainSearch   input[type="search"],
#mainRegister input[type="password"] {
    width:   inherit;
    border:  3px solid var(--mainSiteColor);
    border-radius: 0px 5px 5px 0px;
    padding: 0.5em;
}

#userJob {
    justify-content: space-between;
}

#userJobs i {
    border-radius: 5px;
}

#userJob select {
    height:        2.5em;
    line-height:   2.5em;
    margin-top:    auto;
    margin-bottom: auto;
}

#userJob  button[type="button"] {
    margin-top:    auto;
    margin-bottom: auto;
    margin-right: 3em;
    font-size:        16px;
    height:           2em;
    border:           2px solid var(--mainSiteColor);
    background-color: var(--bg);
    border-radius:    5px;
    padding:          0em 1em;
    transition:       all 0.1s ease-in-out;
}

#userJob  button[type="button"]:hover {
    cursor:             pointer;
    color:              var(--bg);
    background-color:   var(--btnHoverBg);
}

#jobsList {
    border: 3px solid var(--mainSiteColor);
    border-radius: 5px;
    padding: 2em 5em;
    list-style: circle;
}

#jobsList > li > button {
    border: none;
    background-color: inherit;
}

#jobsList > li > button > i {
    background-color: inherit;
    color: var(--mainSiteColor);
    border: 2px solid grey;
    border-radius: 4px;
    font-size:   22px;
    width:       1.3em;
    height:      1.3em;
    line-height: 1.3em;
    transition:       all 0.15s ease-in-out;
}

#jobsList > li > button > i:hover {
    background-color: var(--btnHoverBg);
    color: whitesmoke;
    cursor:  pointer;
}

#mainMission select {
    height:        2.5em;
    line-height:   2.5em;
    margin-top:    auto;
    margin-bottom: auto;
    margin-left:   1em;
}

#mainUserInfo textarea,
#mainMission  textarea {
    width:  83%;
    height: 3.4em;
    border: 0.5vh solid var(--mainSiteColor);
    border-radius: 0px 5px 5px 0px;
}

#mainLogin    input[type="submit"],
#mainUserInfo input[type="submit"],
#mainMission  input[type="submit"],
#mainSearch   input[type="submit"],
#mainAdmin    input[type="submit"],
#mainRegister input[type="submit"] {
    font-size:        17px;
    font-weight:      bold;
    height:           2.5em;
    border:           0.15em solid var(--mainSiteColor);
    background-color: var(--bg);
    border-radius:    5px;
    padding:          0% 0.7em;
    transition:       all 0.1s ease-in-out;
}

#mainLogin    input[type="submit"]:hover,
#mainUserInfo input[type="submit"]:hover,
#mainMission  input[type="submit"]:hover,
#mainSearch   input[type="submit"]:hover,
#mainAdmin    input[type="submit"]:hover,
#mainRegister input[type="submit"]:hover {
    cursor:             pointer;
    color:              var(--bg);
    background-color:   var(--btnHoverBg);
}

#mainMessage p {
    font-size: 20px;
}
/* FIN GLOBAL */

/* FOOTER */
footer {
    min-height:         10vh;
    display:            flex;
    flex-direction:     column;
    text-align:         center;
    color:              var(--footerText);
    background-color:   var(--footerBg);
}
/* FIN FOOTER */