Skip to content

Commit 8cd82e8

Browse files
authored
🔧 Taille maximale main 1280px (#87)
1 parent 8882a1c commit 8cd82e8

File tree

2 files changed

+21
-25
lines changed

2 files changed

+21
-25
lines changed

‎static/css/keyframes.css‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,10 @@
3737
@keyframes slideIn {
3838
0% {
3939
transform: translateY(100%);
40-
scale: 0.9;
4140
}
4241

4342
100% {
4443
transform: translateY(0);
45-
scale: 1;
4644
}
4745
}
4846

‎static/css/style.css‎

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ header {
2222
animation: 1s ease-out 0s 1 slideInTop;
2323
background-color: #000000;
2424
padding: 20px;
25-
text-align: left;
26-
justify-content: start;
27-
justify-content: center;
28-
padding-left: 10%;
29-
padding-right: 10%;
25+
text-align: center;
26+
padding-left: 5%;
27+
padding-right: 5%;
3028
}
3129

3230
header img {
@@ -48,6 +46,9 @@ header img:hover {
4846

4947
main {
5048
flex-grow: 1;
49+
max-width: 1280px;
50+
margin-left: auto;
51+
margin-right: auto;
5152
}
5253

5354
main h1 {
@@ -64,8 +65,8 @@ main h2 {
6465
align-items: center;
6566
justify-content: center;
6667
color: white;
67-
margin-left: 10%;
68-
margin-right: 10%;
68+
margin-left: 5%;
69+
margin-right: 5%;
6970
font-size: 20px;
7071
animation: 1s ease-out 0s 1 slideIn;
7172
}
@@ -224,10 +225,10 @@ footer .liens {
224225
/* Grille */
225226
.grid-container {
226227
display: grid;
227-
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
228+
grid-template-columns: repeat(2, 1fr);
228229
gap: 20px;
229-
margin-left: 10%;
230-
margin-right: 10%;
230+
margin-left: 5%;
231+
margin-right: 5%;
231232

232233
}
233234

@@ -329,8 +330,8 @@ footer .liens {
329330
flex-direction: column;
330331
justify-content: center;
331332
color: #fff;
332-
margin-left: 10%;
333-
margin-right: 10%;
333+
margin-left: 5%;
334+
margin-right: 5%;
334335
font-size: 20px;
335336
border-top: 2px solid var(--purple);
336337
margin-top: 30px;
@@ -562,8 +563,8 @@ nav span {
562563
display: block;
563564
}
564565

565-
footer {
566-
flex-direction: column;
566+
header .search-container{
567+
margin-left: 0px;
567568
}
568569

569570
h1 {
@@ -579,14 +580,10 @@ nav span {
579580
}
580581

581582
.grid-container {
582-
margin-left: 5%;
583-
margin-right: 5%;
584583
grid-template-columns: 1fr;
585584
}
586585

587586
.etape {
588-
margin-left: 5%;
589-
margin-right: 5%;
590587
font-size: 16px;
591588
}
592589

@@ -610,11 +607,6 @@ nav span {
610607
display: none;
611608
}
612609

613-
.content {
614-
margin-left: 5%;
615-
margin-right: 5%;
616-
}
617-
618610
.content h3 {
619611
margin-left: 5%;
620612
margin-right: 5%;
@@ -628,6 +620,12 @@ nav span {
628620
.typing-effect-content h3 {
629621
font-size: 20px;
630622
}
623+
}
624+
625+
@media only screen and (max-width: 850px) {
626+
footer {
627+
flex-direction: column;
628+
}
631629

632630
footer .liens {
633631
margin-top: 0px;

0 commit comments

Comments
 (0)