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
| * { margin:0; padding:0; border:0; box-sizing:border-box; }
#CorpPage {
position:relative;
}
#CorpPage > section {
padding:20px;
}
#MenuGauche {
background:#FAAC58;
}
#Articles {
background:#BE81F7;
}
#MenuDroit {
background:#F4FA58;
}
header, footer {
clear:both;
background:lightgrey;
}
nav {
clear:both;
background:lightgreen;
}
/* PHONE */
@media screen and (max-width:640px) {
#CorpPage {
display: flex;
flex-wrap: no-wrap;
flex-direction:column;
}
#Articles {
order:2;
}
#MenuDroit {
order:3;
}
}
/* TABLET */
@media screen and (min-width:641px) and (max-width:1024px) {
#MenuGauche, #MenuDroit {
width:40%;
}
#Articles {
float:right;
width:60%;
}
}
/* DESKTOP */
@media screen and (min-width:1025px) {
#CorpPage {
display: flex;
flex-wrap: no-wrap;
flex-direction:row;
}
#Articles {
float:none;
flex:1 1 75%;
order:2;
}
#MenuDroit {
order:3;
}
#MenuGauche, #MenuDroit {
flex:1 1 25%;
}
} |
Partager