96 lines
1.6 KiB
CSS
96 lines
1.6 KiB
CSS
/* La propriété CSS box-sizing définit la façon dont la hauteur et la largeur totale d'un élément est calculée (avec le modèle de boîte CSS).
|
|
// Références: https://developer.mozilla.org/fr/docs/Web/CSS/box-sizing*/
|
|
|
|
html {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
*,
|
|
*:before,
|
|
*:after {
|
|
box-sizing: inherit;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
body{
|
|
margin: 0;
|
|
}
|
|
|
|
.wrapper {
|
|
max-width: 375px;
|
|
width: calc(100% - var(5px));
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.heading1 {
|
|
font-family: "Poppins";
|
|
font-weight: 600; /*semi-bold*/
|
|
font-size: 3rem; /*48px*/
|
|
color: #394596; /*Bleu AGECEM*/
|
|
text-align: center;
|
|
}
|
|
|
|
.heading2 {
|
|
font-family: "Poppins";
|
|
font-weight: 300; /*light*/
|
|
font-size: 1rem; /*16px*/
|
|
color: #394596; /*Bleu AGECEM*/
|
|
text-align: center;
|
|
}
|
|
|
|
@media screen and (min-width: 768px) {
|
|
|
|
.wrapper{
|
|
max-width: 768px;
|
|
width: calc(100% - var(15px));
|
|
}
|
|
|
|
.heading1 {
|
|
font-size: 4rem; /*64px*/
|
|
text-align: center;
|
|
}
|
|
|
|
.heading2 {
|
|
font-size: 1.5rem; /*24px*/
|
|
text-align: center;
|
|
}
|
|
|
|
}
|
|
|
|
@media screen and (min-width: 1140px) {
|
|
|
|
.wrapper{
|
|
max-width: 1140px;
|
|
width: calc(100% - var(30px));
|
|
}
|
|
|
|
.heading1 {
|
|
font-size: 4rem; /*64px*/
|
|
text-align: center;
|
|
}
|
|
|
|
.heading2 {
|
|
font-size: 1.5rem; /*24px*/
|
|
text-align: center;
|
|
}
|
|
|
|
}
|
|
|
|
/*Utilisation du css Layout Grid pour faire le wrapper*/
|
|
.grid-wrapper {
|
|
display: grid;
|
|
grid-template-columns: auto minmax(375px, 1440px) auto;
|
|
grid-column-gap: 30px;
|
|
}
|
|
|
|
.grid-center {
|
|
grid-column: 2/3;
|
|
}
|
|
|
|
|
|
|
|
|
|
|