516 lines
10 KiB
SCSS
Vendored
516 lines
10 KiB
SCSS
Vendored
// :root{
|
|
// --padding: 20px;
|
|
// }
|
|
|
|
.main{
|
|
min-height: calc(100vh - var(--footer-height));
|
|
grid-template-rows: var(--header-height) auto;
|
|
}
|
|
|
|
.hero{
|
|
min-height: $float-height;
|
|
padding: 0 10px;
|
|
margin: 0;
|
|
background-position: 50% top;
|
|
background-size: cover;
|
|
// Pas de 1fr sur le column pour bien gérer le swiper slider
|
|
grid-template-columns: 100%;
|
|
grid-template-rows: var(--header-height) auto;
|
|
|
|
&.winter {
|
|
background-image: url("@/images/hiver-grand.jpg");
|
|
}
|
|
|
|
&.spring {
|
|
background-image: url("@/images/printemps-grand.jpg");
|
|
}
|
|
|
|
&.summer {
|
|
background-image: url("@/images/ete-grand.jpg");
|
|
}
|
|
|
|
&.fall {
|
|
background-image: url("@/images/automne-grand.jpg");
|
|
}
|
|
|
|
.hero-bloc{
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.push, .slider-container{
|
|
display: flex;
|
|
background-color: rgb(244 244 244 / 90%);
|
|
// padding: 20px 20px 0;
|
|
}
|
|
|
|
.push{
|
|
flex-direction: column;
|
|
padding: 20px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.swiper-container{
|
|
padding-bottom: 25px;
|
|
.post-subtitle, p{margin-right: 20px;}
|
|
}
|
|
|
|
.swiper-slide{
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 20px 20px 0;
|
|
}
|
|
|
|
.img-slide {
|
|
// padding: 0 20px 0 0;
|
|
padding-bottom: 20px;
|
|
text-align: center;
|
|
|
|
img{
|
|
width: 100%;
|
|
max-width: fit-content;
|
|
}
|
|
}
|
|
|
|
.txt-slide{
|
|
flex-direction: column;
|
|
|
|
.second-btn{margin: 10px 0;}
|
|
}
|
|
|
|
.txt-slide div{
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.title-section{
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
|
> div {
|
|
text-align: center;
|
|
}
|
|
|
|
a {
|
|
margin: 10px 0;
|
|
}
|
|
}
|
|
.video, .content-video{flex-direction: column;}
|
|
|
|
.video{
|
|
|
|
.content-video{align-items: center;}
|
|
.content-video img{width: 100%;}
|
|
|
|
.player-bloc{
|
|
display: none;
|
|
min-height: 250px;
|
|
}
|
|
|
|
.video-diapo{
|
|
width: 100%;
|
|
justify-items: center;
|
|
|
|
.player-bloc{
|
|
// margin: 10px 0;
|
|
display: block;
|
|
width: 90%;
|
|
height: 170px;
|
|
min-height: unset;
|
|
}
|
|
}
|
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
|
.player-bloc, .screenplay{
|
|
position: relative;
|
|
|
|
.icon-play{
|
|
position: absolute; top: 50%;
|
|
left: 50%;
|
|
width: 30%;
|
|
cursor: pointer;
|
|
opacity: .8;
|
|
transform: translate(-50%, -50%);
|
|
transition: all .5s;
|
|
}
|
|
&:hover{color: #000;}
|
|
}
|
|
|
|
.player-bloc .icon-play:hover {
|
|
opacity: 1;
|
|
transform: translate(-50%, -50%) scale(1.1);
|
|
}
|
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
|
.screenplay{
|
|
display: none;
|
|
margin: 10px;
|
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
|
.icon-play{
|
|
opacity: 1;
|
|
transform: translate(-50%, -80%);
|
|
&:hover{transform: translate(-50%, -80%) scale(1.1);}
|
|
}
|
|
|
|
p {
|
|
position: absolute; bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
padding: 10px 0;
|
|
margin: 0;
|
|
background-color: $jaune;
|
|
opacity: .8;
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
.edito {
|
|
display: grid;
|
|
padding: 30px 40px;
|
|
background-color: $beige-clair;
|
|
grid-template-areas:
|
|
"first-p"
|
|
"second-p"
|
|
"img"
|
|
"sign";
|
|
grid-template-columns: 1fr;
|
|
|
|
&-p,
|
|
ul {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
&__intro {
|
|
grid-area: first-p;
|
|
text-align: start;
|
|
}
|
|
|
|
&__text {
|
|
grid-area: second-p;
|
|
}
|
|
|
|
&__img {
|
|
grid-area: img;
|
|
text-align: center;
|
|
}
|
|
|
|
&__quote {
|
|
display: block;
|
|
font-style: italic;
|
|
text-align: end;
|
|
}
|
|
|
|
&__sign {
|
|
margin-top: 20px;
|
|
grid-area: sign;
|
|
text-align: end;
|
|
|
|
&-p {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
&__sign-name {
|
|
font-weight: 700;
|
|
}
|
|
|
|
ul li {
|
|
padding-left: 1.2rem;
|
|
|
|
&::before {
|
|
display: inline-block; /* Needed to add space between the bullet and the text */
|
|
width: 1em; /* Also needed for space (tweak if needed) */
|
|
margin-left: -1em; /* Also needed for space (tweak if needed) */
|
|
color: $tertiary;
|
|
content: "\2022";
|
|
font-size: 1.2rem;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
}
|
|
|
|
.chiffres{
|
|
.infos{
|
|
flex-flow: column wrap;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.info{
|
|
max-width: 100%;
|
|
margin: 20px 10px 0;
|
|
}
|
|
|
|
.info .post-chapter{
|
|
position: relative;
|
|
text-align: right;
|
|
|
|
&::before{
|
|
position: absolute; top: 0;
|
|
left: 0;
|
|
width: 37px; height: 21px;
|
|
background-repeat: no-repeat;
|
|
background-size: contain;
|
|
content:"";
|
|
}
|
|
}
|
|
.infos .info:nth-child(1) .post-chapter::before {background-image: url("@/images/logo-collecte.svg");}
|
|
.infos .info:nth-child(2) .post-chapter::before {background-image: url("@/images/logo-site.svg");}
|
|
.infos .info:nth-child(3) .post-chapter::before {background-image: url("@/images/logo-employes.svg");}
|
|
.info img{width: 100%;}
|
|
.info > div {text-align: center;}
|
|
.info:first-child div{display: none;}
|
|
}
|
|
|
|
@media only screen and (width >=420px) {
|
|
.video{
|
|
iframe{
|
|
position: absolute; top: 50%;
|
|
left: 50%;
|
|
width: 100%;
|
|
height: calc(100% * (16 / 9));
|
|
max-height: 100%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
.player-bloc{
|
|
display: block;
|
|
width: 90%;
|
|
align-self: flex-start;
|
|
margin: 20px;
|
|
}
|
|
|
|
.screenplay{
|
|
display: block;
|
|
}
|
|
|
|
.video-diapo {
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
.player-bloc{display: none;}
|
|
}
|
|
}
|
|
}
|
|
|
|
// *************************
|
|
// ** **
|
|
// *************************
|
|
// ** **
|
|
// ** **
|
|
// ** **
|
|
// ** **
|
|
// ** **
|
|
// ** **
|
|
// ** **
|
|
// *******
|
|
|
|
@media only screen and (width >=768px) {
|
|
.hero{
|
|
|
|
.swiper-container{padding-bottom: 40px;}
|
|
.swiper-container .swiper-slide{flex-direction: row;}
|
|
|
|
.img-slide {
|
|
padding: 0 20px 0 0;
|
|
text-align: left;
|
|
}
|
|
|
|
.txt-slide{
|
|
|
|
p{flex: 1;}
|
|
div{text-align: left;}
|
|
.second-btn{margin: 0;}
|
|
}
|
|
}
|
|
|
|
.video .video-diapo {
|
|
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
|
|
|
|
.screenplay {
|
|
&.marolles,&.nogent-le-bernard {
|
|
grid-column: 1 / 3;
|
|
}
|
|
|
|
&.cherre,&.mamers {
|
|
grid-column: 3 / 5;
|
|
}
|
|
|
|
&.monce,&.thoigne-les-mees {
|
|
grid-column: 5 / 7;
|
|
}
|
|
|
|
&.les-mees {
|
|
grid-column: 2 / 4;
|
|
}
|
|
|
|
&.sille-guillaume {
|
|
grid-column: 4 / 6;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
.chiffres{
|
|
|
|
.infos{flex-direction: row;}
|
|
.info{margin: 20px 20px 0;}
|
|
|
|
.info:first-child div {
|
|
display: flex;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
// ****
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// ****
|
|
|
|
@media only screen and (width >=1024px) {
|
|
.hero{
|
|
padding: 0 40px;
|
|
background-position: 70% top;
|
|
|
|
.hero-bloc{
|
|
flex-direction: row;
|
|
align-items: flex-end;
|
|
margin-bottom: 30px;
|
|
}
|
|
.push, .slider-container{width: 50%;}
|
|
.push{margin: 0 20px 0 0;}
|
|
|
|
.slider-container{
|
|
min-height: 50%;
|
|
padding: 20px 20px 0;
|
|
margin-left: 20px;
|
|
}
|
|
|
|
.img-slide {
|
|
flex: 1;
|
|
|
|
img{max-width: unset;}
|
|
}
|
|
.txt-slide{flex: 1;}
|
|
}
|
|
|
|
.title-section{
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.video{
|
|
.content-video{
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
|
|
> div{
|
|
width: 50%;
|
|
}
|
|
}
|
|
// .player-bloc{height: 25vh;}
|
|
.player-bloc {
|
|
height: 30vh;
|
|
}
|
|
|
|
.video-diapo {
|
|
margin: 20px 0;
|
|
grid-gap: 20px;
|
|
}
|
|
|
|
.screenplay {
|
|
width: 100%;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.edito{
|
|
padding-right: 100px;
|
|
padding-left: 100px;
|
|
// grid-template-columns: 2fr 3fr;
|
|
grid-template-areas:
|
|
"img first-p"
|
|
"second-p second-p"
|
|
"sign sign";
|
|
|
|
.img-edito {
|
|
padding-right: 40px;
|
|
padding-bottom: 20px;
|
|
}
|
|
}
|
|
|
|
.chiffres .infos{
|
|
justify-content: space-between;
|
|
}
|
|
}
|
|
|
|
// ********
|
|
// * ***** *
|
|
// * * * *
|
|
// *** * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * **************
|
|
// * *
|
|
// *****************
|
|
@media only screen and (width >= 1440px) {
|
|
// .video .player-bloc{height: 36vh;}
|
|
.video .player-bloc{height: 42vh;}
|
|
|
|
.edito{
|
|
padding-right: 250px;
|
|
padding-left: 250px;
|
|
}
|
|
|
|
}
|
|
|
|
// ************
|
|
// * ****
|
|
// ********* *
|
|
// ***** *
|
|
// ** *
|
|
// ** *
|
|
// ********** *
|
|
// * *
|
|
// ********* *
|
|
// ***** *
|
|
// ** *
|
|
// ** *
|
|
// ********** *
|
|
// * ***
|
|
// ************
|
|
@media only screen and (width >= 1920px) {
|
|
.hero .txt-slide{ flex: 2;}
|
|
// .video .player-bloc{height: 48vh;}
|
|
.video .player-bloc{height: 45vh;}
|
|
|
|
.edito{
|
|
padding-right: 500px;
|
|
padding-left: 500px;
|
|
}
|
|
}
|