Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit ef7cbb2

Browse files
committed
5ème jour - Début de responsive
1 parent 657ba24 commit ef7cbb2

3 files changed

Lines changed: 117 additions & 1 deletion

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<div class="boutonInt">?</div>
6363
</div>
6464

65-
<div class="button_type02">Ajoutez votre établissement</div>
65+
<div class="button_type02 add_header_eta">Ajoutez votre établissement</div>
6666
<div class="button_type03">S'inscrire</div>
6767
<div class="button_type03">Se connecter</div>
6868
</div>

main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,3 +477,6 @@ function grillebutton() {
477477

478478

479479
//-----------------------------------------------------
480+
481+
482+
console.log(window.innerWidth);

style.css

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ nav li ul {
201201
border-bottom: 2px solid transparent;
202202
padding: 16px;
203203
border-radius: 2px 2px 0 0;
204+
flex-wrap: nowrap;
204205
}
205206

206207
nav li ul:nth-child(1) {
@@ -1516,6 +1517,118 @@ footer p {
15161517
height: 40px;
15171518
}
15181519

1520+
/*--------------RESPONSIVE--------------*/
1521+
1522+
@media screen and (max-width: 1140px) {
1523+
1524+
header {
1525+
height: auto;
1526+
overflow: hidden;
1527+
}
1528+
1529+
.header_line_top {
1530+
1531+
height: 84px;
1532+
padding: 8px;
1533+
margin-bottom: 8px;
1534+
1535+
}
1536+
1537+
.connextions {
1538+
1539+
flex-wrap: wrap;
1540+
justify-content: flex-end;
1541+
1542+
}
1543+
1544+
.bannier_type01 {
1545+
height: auto;
1546+
}
1547+
1548+
.bannier_type01 section {
1549+
height: max-content;
1550+
}
1551+
1552+
.recherche_zone {
1553+
width: 100%;
1554+
height: auto;
1555+
flex-wrap: wrap;
1556+
}
1557+
1558+
.recherche_zone input {
1559+
height: 52px;
1560+
margin-bottom: 4px;
1561+
margin-left: 0px;
1562+
}
1563+
1564+
.recherche_zone input:nth-child(1) {
1565+
width: 100%;
1566+
1567+
}
1568+
1569+
.recherche_zone input:nth-child(2) {
1570+
width: 49.4%;
1571+
1572+
}
1573+
1574+
.recherche_zone input:nth-child(3) {
1575+
width: 50%;
1576+
}
1577+
1578+
.recherche_zone button {
1579+
height: 52px;
1580+
width: 100%;
1581+
margin-left: 0px;
1582+
}
1583+
1584+
1585+
1586+
}
1587+
1588+
1589+
@media screen and (max-width: 1020px) {
1590+
1591+
.bannier_type01 section h1 {
1592+
margin-bottom: 30px;
1593+
}
1594+
1595+
}
1596+
1597+
@media screen and (max-width: 600px) {
1598+
1599+
header .header_line_top .connextions .button_type02 {
1600+
display: none;
1601+
}
1602+
1603+
header .header_line_top .connextions .button_type01 {
1604+
display: none;
1605+
}
1606+
1607+
.bannier_type01 section h1 {
1608+
margin-bottom: 50px;
1609+
}
1610+
1611+
}
1612+
1613+
@media screen and (max-width: 400px) {
1614+
1615+
header .header_line_top .connextions .button_type02 {
1616+
display: none;
1617+
}
1618+
1619+
header .header_line_top .connextions .button_type01 {
1620+
display: none;
1621+
}
1622+
1623+
.bannier_type01 section h1 {
1624+
margin-bottom: 75px;
1625+
}
1626+
1627+
}
1628+
1629+
1630+
1631+
15191632
/*---------------------------------------*/
15201633

15211634
.none {

0 commit comments

Comments
 (0)