faq + home

This commit is contained in:
2021-11-30 21:45:43 +01:00
parent 020ff6529e
commit 9f80e2b26d
6 changed files with 415 additions and 289 deletions
@@ -1,3 +1,20 @@
@media (max-width: 1325px){
.path-frontpage{
.block-block-content.block-block-content1bb9024b-d95f-4137-894c-362abf10a483{
position: relative;
.field--name-field-lien.field--type-link{
position: relative;
bottom: +337%;
}
.field--name-field-description{
position: relative;
bottom: +72%;
}
}
}
}
@media (max-width: 1330px){
.path-frontpage{
.block-block-content.block-block-content1bb9024b-d95f-4137-894c-362abf10a483{
+125 -84
View File
@@ -1,95 +1,136 @@
.block-views-blockfaq-block-1{
display: grid;
grid-template-columns: 1fr repeat(4, 2fr) 1fr;
div:first-child{
grid-column: 2 / span 3;
// width: 70%;
// margin: auto;
.node-type-question_reponse{
border-bottom: 1px solid $blue-light;
padding-bottom: 2rem;
.field--name-title{
display: none;
.path-faq{
.block-region-content{
display: grid;
grid-template-columns: 1fr repeat(4, 2fr) 1fr;
.block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398{
grid-column: 5;
background-color: $blue-light;
.field--name-field-lien{
&:before{
margin-top: 1rem;
display: block;
content: url("../images/pictos/picto_faq.svg");
}
text-align: center;
a{
font-size: 0.8rem;
font-weight: 1000;
color: $blue-dark;
text-transform: uppercase;
}
}
.field--name-field-question{
.field--name-field-description{
p{
font-family: 'Source Code Pro' ;
font-weight: 500 ;
color: $blue-dark ;
font-size: 1.5rem;
&:after{
display:inline-flex;
content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" rotate="-45" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>');
justify-self: flex-end;
}
}
}
.field--name-field-reponse{
display: none;
}
.opened{
display: block;
}
.field--name-field-fichiers{
span:nth-of-type(2){
display: none;
}
.file--mime-application-pdf{
span:nth-of-type(2){
display: none;
}
::before{
display: inline-block;
content: url("../images/pictos/noun_Download_file_307900.svg");
width: 30px;
height: 30px;
padding-right: 0.8rem;
}
margin-top: 0;
margin-left: 1.5rem;
margin-right: 1.5rem;
text-align: center;
a{
display: inline-flex;
align-items: center;
color: $black;
font-weight: 800;
}
}
}
.field--name-field-liens{
color: $white;
font-size: 1.3rem;
}
&:after{
display: block;
content:url("../images/pictos/noun_Arrow_3771902.svg")
a{
&:before{
display: inline-block;
content: url("../images/pictos/noun_External Link_674151.svg");
width: 30px;
height: 30px;
padding-right: 0.8rem;
}
display:flex;
flex-direction: row;
justify-content: left;
align-items: center;
color: $black;
font-weight: 800;
}
svg{
display: none;
}
}
.field--name-field-ress{
margin-top: 0.5rem;
a{
color: $black;
text-decoration: underline;
font-weight: 800;
}
}
}
}
.block-views-blockfaq-block-1{
grid-column: 2 / span 3;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
div:first-child{
grid-column: 1 / span 3;
// width: 70%;
// margin: auto;
.node-type-question_reponse{
border-bottom: 1px solid $blue-light;
padding-bottom: 2rem;
.field--name-title{
display: none;
}
.field--name-field-question{
p{
font-family: 'Source Code Pro' ;
font-weight: 500 ;
color: $blue-dark ;
font-size: 1.5rem;
&:after{
display:inline-flex;
content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" rotate="-45" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>');
justify-self: flex-end;
}
}
}
.field--name-field-reponse{
display: none;
}
.opened{
display: block;
}
.field--name-field-fichiers{
span:nth-of-type(2){
display: none;
}
.file--mime-application-pdf{
span:nth-of-type(2){
display: none;
}
::before{
display: inline-block;
content: url("../images/pictos/noun_Download_file_307900.svg");
width: 30px;
height: 30px;
padding-right: 0.8rem;
}
a{
display: inline-flex;
align-items: center;
color: $black;
font-weight: 800;
}
}
}
.field--name-field-liens{
a{
&:before{
display: inline-block;
content: url("../images/pictos/noun_External Link_674151.svg");
width: 30px;
height: 30px;
padding-right: 0.8rem;
}
display:flex;
flex-direction: row;
justify-content: left;
align-items: center;
color: $black;
font-weight: 800;
}
svg{
display: none;
}
}
.field--name-field-ress{
margin-top: 0.5rem;
a{
color: $black;
text-decoration: underline;
font-weight: 800;
}
}
}
}
}
}
}
+99 -58
View File
@@ -23,6 +23,7 @@
// 1er bandeau
.block-views-blockhome-nodes-block-1{
background: url("../images/pictos/carre-contour-bleu_contact.svg");
.node-type-static{
div:first-child{
@@ -31,24 +32,26 @@
grid-template-columns: 1fr repeat(4, 2fr) 1fr;
grid-template-rows: repeat(4, auto);
.field--name-field-images{
z-index: -99;
filter: grayscale(100%);
filter: brightness(0%);
opacity: 0.5;
// display: none;
grid-column: 1 /span 10;
grid-row: 1 / span 4;
img{
width: 100vw;
height: auto;
}
display: none;
// z-index: -99;
// filter: grayscale(100%);
// filter: brightness(0%);
// opacity: 0.5;
// // display: none;
// grid-column: 1 /span 10;
// grid-row: 1 / span 4;
// img{
// width: 100vw;
// height: auto;
// }
}
.field--name-field-accroche{
grid-column: 2 /span 3;
grid-row: 2 / span 3;
font-size: 6rem;
grid-row: 2 / span 2;
font-size: 5rem;
font-weight: 800;
color: $blue-light;
line-height: 6rem;
p{
margin: 0;
}
@@ -58,6 +61,7 @@
grid-column: 4;
grid-row: 1;
margin-top: 2rem;
h2{
a{
color: #e1000f;
@@ -135,53 +139,90 @@
// bouton foire aux questions
.block-region-content{
position: relative;
}
.block-block-content.block-block-content1bb9024b-d95f-4137-894c-362abf10a483{
display: grid;
grid-template-columns: 1fr repeat(4, 2fr) 1fr;
position: relative;
background-color: $blue-light;
height: 0;
width: 100%;
position: relative;
.field--name-field-lien.field--type-link{
position: relative;
bottom: +326%;
grid-column: 5;
width:inherit;
font-size: 0.8rem;
list-style: none;
background-color: $blue-light;
display: flex;
justify-content: center;
a{
text-transform: uppercase;
font-weight: 700;
color: $blue-dark;
&:before{
display: block;
width: fit-content;
content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="white" stroke="white" stroke-width="0.7"/></svg>');
.block-block-content.block-block-content1bb9024b-d95f-4137-894c-362abf10a483{
// display: grid;
// grid-template-columns: 1fr repeat(4, 2fr) 1fr;
// position: relative;
// background-color: $blue-light;
// height: 0;
// width: 100%;
// position: relative;
// .field--name-field-lien.field--type-link{
// position: relative;
// bottom: +326%;
// grid-column: 5;
// width:inherit;
// font-size: 0.8rem;
// list-style: none;
// background-color: $blue-light;
// display: flex;
// justify-content: center;
// a{
// text-transform: uppercase;
// font-weight: 700;
// color: $blue-dark;
// &:before{
// display: block;
// width: fit-content;
// content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="white" stroke="white" stroke-width="0.7"/></svg>');
// }
// }
grid-column: 5;
background-color: $blue-light;
.field--name-field-lien{
&:before{
margin-top: 1rem;
display: block;
content: url("../images/pictos/picto_faq.svg");
}
text-align: center;
a{
font-size: 0.8rem;
font-weight: 1000;
color: $blue-dark;
text-transform: uppercase;
}
}
}
}
.field--name-field-description{
position: relative;
bottom: +140%;
grid-column: 5;
background-color: $blue-light;
p{
color: $white;
font-size: 1.2rem;
padding-left: 1rem;
padding-right: 1rem;
margin-top: 0;
text-align: center;
}
}
.field--name-field-description{
p{
margin-top: 0;
margin-left: 1.5rem;
margin-right: 1.5rem;
text-align: center;
a{
font-weight: 800;
color: $white;
font-size: 1.3rem;
}
&:after{
display: block;
content:url("../images/pictos/noun_Arrow_3771902.svg")
}
}
}
// .field--name-field-description{
// position: relative;
// bottom: +140%;
// grid-column: 5;
// background-color: $blue-light;
// p{
// color: $white;
// font-size: 1.2rem;
// padding-left: 1rem;
// padding-right: 1rem;
// margin-top: 0;
// text-align: center;
// }
// }
}
}
// bandeau actus