taille point interrogation faq

This commit is contained in:
2021-12-13 15:29:07 +01:00
parent 53497652db
commit f184a80732
13 changed files with 322 additions and 226 deletions
+188 -156
View File
@@ -99,7 +99,16 @@
top: 0%; top: 0%;
left: 0%; left: 0%;
width: 100%; width: 100%;
overflow: hidden; } overflow: hidden;
display: flex;
flex-flow: row wrap; }
.layout-container header {
flex: 0 0 100%; }
.layout-container main {
position: relative;
top: -7rem; }
.layout-container footer {
flex: 0 0 100%; }
.layout-content { .layout-content {
padding-top: 7rem; padding-top: 7rem;
@@ -166,149 +175,152 @@ a {
/* /*
@import "pages/partials/header_footer"; @import "pages/partials/header_footer";
@import "pages/home";*/ @import "pages/home";*/
.path-node.page-node-type-static .layout-container { .path-node.page-node-type-static .layout-container .layout-content .layout__region--top {
padding-bottom: 3rem;
height: 30vh; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--top .block-entity-fieldnodetitle {
width: fit-content;
margin-left: 13%;
margin-top: 15vh; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--top .block-entity-fieldnodetitle .field--name-title {
font-family: 'Source Code Pro';
font-size: 2rem;
font-weight: 800;
text-transform: uppercase; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--first {
position: relative; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--first .block-region-first {
display: flex;
justify-content: end;
position: sticky;
top: 7rem; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--first .block-region-first .block-entity-fieldnodefield-textes {
display: flex;
width: 50%;
background-color: white;
padding-right: 2rem; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--first .block-region-first .block-entity-fieldnodefield-textes .field--name-field-titre {
display: flex;
font-size: 1rem;
font-weight: 1000;
color: #09398b;
border-bottom: 1px solid #009ee3;
padding-bottom: 0.5rem;
padding-right: 1rem; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--first .block-region-first .block-entity-fieldnodefield-textes .field--name-field-titre:hover {
text-decoration: underline; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes {
background-color: white; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes .field--name-field-titre {
font-size: 1.5rem;
font-weight: 1000;
font-family: 'Source Code Pro';
color: #09398b;
text-transform: uppercase; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes h4 {
text-transform: none !important; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes h4 img {
width: 100%;
height: auto; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes .field--type-text-long {
padding-right: 2rem; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--second .block-entity-fieldnodefield-textes p {
margin-top: 0; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex-flow: row wrap; } width: 70%; }
.path-node.page-node-type-static .layout-container header { .path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-fichiers {
flex: 0 0 100%; } height: fit-content;
.path-node.page-node-type-static .layout-container main { border: 2px solid #009ee3;
flex: 0 0 100%; } background-color: white; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--top .block-entity-fieldnodetitle { .path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .field--name-field-fichiers {
width: fit-content; min-height: 4rem;
margin-left: 13%; background: white;
margin-top: 15vh; } color: #009ee3;
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--first { padding-left: 1rem;
position: relative; } padding-top: 1rem;
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--first .block-region-first { margin-bottom: 1rem; }
display: flex; .path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .field--name-field-fichiers span:nth-of-type(2) {
justify-content: end; display: none; }
position: sticky; .path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .field--name-field-fichiers .file--mime-application-pdf {
top: 7rem; } height: inherit;
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--first .block-region-first .block-entity-fieldnodefield-textes { margin: auto; }
display: flex; .path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .field--name-field-fichiers .file--mime-application-pdf ::before {
width: 50%; content: url("../images/pictos/noun_Download_file_307900.svg");
background-color: white; min-width: 50px;
padding-right: 2rem; } height: auto;
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--first .block-region-first .block-entity-fieldnodefield-textes .field--name-field-titre { padding-right: 1rem; }
display: flex; .path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .field--name-field-fichiers .file--mime-application-pdf a {
font-size: 1rem; hyphens: auto;
font-weight: 1000;
color: #09398b;
border-bottom: 1px solid #009ee3;
padding-bottom: 0.5rem;
padding-right: 1rem; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--first .block-region-first .block-entity-fieldnodefield-textes .field--name-field-titre:hover {
text-decoration: underline; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--second .block-entity-fieldnodefield-textes {
background-color: white; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--second .block-entity-fieldnodefield-textes .field--name-field-titre {
font-size: 1.5rem;
font-weight: 1000;
font-family: 'Source Code Pro';
color: #09398b;
text-transform: uppercase; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--second .block-entity-fieldnodefield-textes h4 {
text-transform: none !important; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--second .block-entity-fieldnodefield-textes h4 img {
width: 100%;
height: auto; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--second .block-entity-fieldnodefield-textes .field--type-text-long {
padding-right: 2rem; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--second .block-entity-fieldnodefield-textes p {
margin-top: 0; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third {
display: flex;
flex-direction: column;
width: 70%; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-fichiers {
height: fit-content;
border: 2px solid #009ee3;
background-color: white; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .field--name-field-fichiers {
min-height: 4rem;
background: white;
color: #009ee3;
padding-left: 1rem;
padding-top: 1rem;
margin-bottom: 1rem; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .field--name-field-fichiers span:nth-of-type(2) {
display: none; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .field--name-field-fichiers .file--mime-application-pdf {
height: inherit;
margin: auto; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .field--name-field-fichiers .file--mime-application-pdf ::before {
content: url("../images/pictos/noun_Download_file_307900.svg");
min-width: 50px;
height: auto;
padding-right: 1rem; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .field--name-field-fichiers .file--mime-application-pdf a {
hyphens: auto;
display: inline-flex;
align-items: center;
color: #009ee3;
font-weight: 800; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-liens .field--name-field-liens .field__item {
margin: auto;
height: fit-content;
border: 2px solid #009ee3;
min-height: 4rem;
background: white;
color: #009ee3;
padding-left: 1rem;
padding-top: 1rem;
margin-bottom: 1rem; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-liens .field--name-field-liens a {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
color: #009ee3; color: #009ee3;
font-weight: 800; } font-weight: 800; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-liens .field--name-field-liens a::before { .path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-liens .field--name-field-liens .field__item {
content: url("../images/pictos/noun_External Link_674151.svg"); margin: auto;
min-width: 50px; height: fit-content;
height: auto; border: 2px solid #009ee3;
padding-right: 1rem; } min-height: 4rem;
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-liens .field--name-field-liens a svg.ext { background: white;
color: #009ee3;
padding-left: 1rem;
padding-top: 1rem;
margin-bottom: 1rem; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-liens .field--name-field-liens a {
display: inline-flex;
align-items: center;
color: #009ee3;
font-weight: 800; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-liens .field--name-field-liens a::before {
content: url("../images/pictos/noun_External Link_674151.svg");
min-width: 50px;
height: auto;
padding-right: 1rem; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-liens .field--name-field-liens a svg.ext {
display: none; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress {
margin-top: 3rem; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress h2 {
font-size: 0.8rem;
color: black;
font-weight: 900; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource {
display: flex;
flex-direction: column;
border: 2px solid #009ee3;
padding: 1rem;
height: fit-content;
margin-bottom: 1rem;
background-color: white; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource:first-of-type {
border-top: 1px solid #009ee3;
padding-top: 1rem; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource:first-of-type::after {
content: url("../images/pictos/noun_Arrow_3771902.svg");
align-self: end; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-title a {
color: black;
font-size: 1.4rem;
font-weight: 600; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-auteur-s- {
font-weight: 800; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-auteur-s- p {
margin: 0; }
.path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-auteur-s- .field__label {
display: none; } display: none; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress { .path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-edition p {
margin-top: 3rem; } margin: 0; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress h2 { .path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-edition .field__label {
font-size: 0.8rem; display: none; }
color: black; .path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-images {
font-weight: 900; } width: 50%; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource { .path-node.page-node-type-static .layout-container .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-images img {
display: flex; width: 100%;
flex-direction: column; height: auto; }
border: 2px solid #009ee3;
padding: 1rem;
height: fit-content;
margin-bottom: 1rem;
background-color: white; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource:first-of-type {
border-top: 1px solid #009ee3;
padding-top: 1rem; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource:first-of-type::after {
content: url("../images/pictos/noun_Arrow_3771902.svg");
align-self: end; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-title a {
color: black;
font-size: 1.4rem;
font-weight: 600; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-auteur-s- {
font-weight: 800; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-auteur-s- p {
margin: 0; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-auteur-s- .field__label {
display: none; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-edition p {
margin: 0; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-edition .field__label {
display: none; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-images {
width: 50%; }
.path-node.page-node-type-static .layout-container main .layout-content .layout__region--third .block-region-third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-images img {
width: 100%;
height: auto; }
.path-frontpage .block-region-content { .path-frontpage .block-region-content {
display: grid; display: grid;
@@ -722,24 +734,17 @@ a {
text-transform: uppercase; } text-transform: uppercase; }
.node-id-3 { .node-id-3 {
background: url("../images/pictos/carre_site.mp4"); background: url("../images/pictos/carre-contour-bleu_programme.svg");
background-repeat: no-repeat; background-repeat: no-repeat;
background-position-y: 7rem; background-position-y: 7rem;
max-width: 100vw; max-width: 100vw;
background-size: contain; } background-size: contain; }
.node-id-3 .layout__region--top { .node-id-3 .layout__region--top .block-region-top .block-entity-fieldnodefield-images {
padding-bottom: 3rem; display: none;
height: 30vh; } height: inherit; }
.node-id-3 .layout__region--top .block-region-top .block-entity-fieldnodefield-images { .node-id-3 .layout__region--top .block-region-top .block-entity-fieldnodetitle .field--name-title {
display: none; color: #009ee3;
height: inherit; } background-color: white; }
.node-id-3 .layout__region--top .block-region-top .block-entity-fieldnodetitle .field--name-title {
font-family: 'Source Code Pro';
font-size: 2rem;
font-weight: 800;
color: #009ee3;
background-color: white;
text-transform: uppercase; }
.node-id-3 .layout__region--third .block-region-third .block-entity-fieldnodefield-liens .field--name-field-liens .field__item { .node-id-3 .layout__region--third .block-region-third .block-entity-fieldnodefield-liens .field--name-field-liens .field__item {
background: #009ee3 !important; background: #009ee3 !important;
color: white !important; } color: white !important; }
@@ -924,6 +929,11 @@ a {
grid-column: 2 / span 3; } grid-column: 2 / span 3; }
.path-faq #block-contenudelapageprincipale .block-region-content .block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398 { .path-faq #block-contenudelapageprincipale .block-region-content .block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398 {
grid-column: 5; grid-column: 5;
display: flex;
flex-direction: column;
max-width: fit-content;
margin-left: 2rem;
padding: 1rem;
background-color: #009ee3; } background-color: #009ee3; }
.path-faq #block-contenudelapageprincipale .block-region-content .block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398 .field--name-field-lien { .path-faq #block-contenudelapageprincipale .block-region-content .block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398 .field--name-field-lien {
text-align: center; } text-align: center; }
@@ -937,6 +947,8 @@ a {
color: #09398b; color: #09398b;
text-transform: uppercase; } text-transform: uppercase; }
.path-faq #block-contenudelapageprincipale .block-region-content .block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398 .field--name-field-description p { .path-faq #block-contenudelapageprincipale .block-region-content .block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398 .field--name-field-description p {
display: flex;
flex-direction: column;
margin-top: 0; margin-top: 0;
margin-left: 1.5rem; margin-left: 1.5rem;
margin-right: 1.5rem; margin-right: 1.5rem;
@@ -946,6 +958,8 @@ a {
color: white; color: white;
font-size: 1.3rem; } font-size: 1.3rem; }
.path-faq #block-contenudelapageprincipale .block-region-content .block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398 .field--name-field-description p:after { .path-faq #block-contenudelapageprincipale .block-region-content .block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398 .field--name-field-description p:after {
margin-left: auto;
padding-top: 1rem;
display: block; display: block;
content: url("../images/pictos/noun_Arrow_3771902.svg"); } content: url("../images/pictos/noun_Arrow_3771902.svg"); }
.path-faq #block-contenudelapageprincipale .block-region-content .block-views-blockfaq-block-1 { .path-faq #block-contenudelapageprincipale .block-region-content .block-views-blockfaq-block-1 {
@@ -1029,19 +1043,37 @@ a {
background-color: #009ee3; background-color: #009ee3;
text-transform: uppercase; } text-transform: uppercase; }
.page-node-type-ressource .block-contenudelapageprincipale {
display: flex; }
.page-node-type-ressource .block-contenudelapageprincipale span {
flex: 0 1 100%; }
.page-node-type-ressource .block-contenudelapageprincipale .node-type-ressource {
flex: 0 1 100%; }
.node-type-offre_de_service { .node-type-offre_de_service {
display: flex; } display: flex; }
.node-type-offre_de_service .field--type-text-with-summary { .node-type-offre_de_service .field--type-text-with-summary {
flex: 0 1 50%; } flex: 0 1 50%; }
.node-id-40 {
background: url("../images/pictos/carre-contour-bleu_programme.svg");
background-repeat: no-repeat;
background-position-y: 7rem;
max-width: 100vw;
background-size: contain; }
.node-id-40 .layout__region--top .block-region-top .block-entity-fieldnodefield-images {
display: none;
height: inherit; }
.node-id-40 .layout__region--top .block-region-top .block-entity-fieldnodetitle .field--name-title {
color: #009ee3; }
/*partials*/ /*partials*/
.layout-container { .layout-container {
position: relative; } position: relative; }
.layout-container header {
header { width: 100%;
width: 100%; position: fixed;
position: fixed; z-index: 99; }
z-index: 99; }
#header-top { #header-top {
height: 7rem; height: 7rem;
@@ -8,8 +8,8 @@
id="svg8" id="svg8"
sodipodi:docname="noun_Arrow_3771902.svg" sodipodi:docname="noun_Arrow_3771902.svg"
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)" inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
width="52" width="45"
height="33" height="auto"
inkscape:export-filename="/home/ouidade/Sites/EQL/docker-eql/src_d9/web/themes/custom/eql/images/pictos/noun_Arrow_3771902.png" inkscape:export-filename="/home/ouidade/Sites/EQL/docker-eql/src_d9/web/themes/custom/eql/images/pictos/noun_Arrow_3771902.png"
inkscape:export-xdpi="300" inkscape:export-xdpi="300"
inkscape:export-ydpi="300" inkscape:export-ydpi="300"

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg <svg
width="30mm" width="80px"
height="30mm" height="80px"
viewBox="0 0 126.18079 126.18081" viewBox="0 0 126.18079 126.18081"
version="1.1" version="1.1"
id="svg868" id="svg868"

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

+29 -12
View File
@@ -40,22 +40,39 @@ function toggleFaq(event) {
} }
// function toggleFaq(event) {
// console.log(event);
// for (let i = 0; i < answers.length; i++) {
// const answer = answers[i]
// answer.classList.toggle('opened');}
// }
// ///////////////// // /////////////////
//// ancre dans texte
document.querySelector('.paragraph--view-mode--textes-toc').click( function() {
var page = this.attr('href');
var speed = 750; // gérer la vitesse de défliement
// Ici on retranche la hauteur du bandeau (201px dans ta feuille de styles)
document.querySelector('html, body').animate( { scrollTop: page.offset().top - 201 }, speed );
return false;
});
// document.addEventListener('click', function(e) { /// sticky header on scroll
// if (e.target.classList.contains('rect_white_left') {
// e.target.parentNode.nextElementSibling... // // When the user scrolls the page, execute myFunction
// window.onscroll = function() {stickyHeader()};
// console.log(Event);
// // Get the header
// var header = document.getElementById("header-top");
// // Get the offset position of the navbar
// var sticky = header.offsetTop;
// // Add the sticky class to the header when you reach its scroll position. Remove "sticky" when you leave the scroll position
// function stickyHeader() {
// if (window.pageYOffset > sticky) {
// header.classList.add("sticky");
// } else {
// header.classList.remove("sticky");
// } // }
// }); // }
/////////////////// ///////////////////
// document.addEventListener('click', function(e) { // document.addEventListener('click', function(e) {
@@ -7,6 +7,19 @@
left: 0%; left: 0%;
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
display: flex;
flex-flow: row wrap;
;
header{
flex: 0 0 100%;
}
main{
position: relative;
top: -7rem;
}
footer{
flex: 0 0 100%;
}
} }
.layout-content{ .layout-content{
padding-top: 7rem; padding-top: 7rem;
+1 -9
View File
@@ -1,32 +1,24 @@
.node-id-3{ .node-id-3{
background: url('../images/pictos/carre_site.mp4'); background: url('../images/pictos/carre-contour-bleu_programme.svg');
background-repeat: no-repeat; background-repeat: no-repeat;
background-position-y: 7rem; background-position-y: 7rem;
max-width: 100vw; max-width: 100vw;
background-size: contain; background-size: contain;
.layout__region--top{ //bandeau titre page static .layout__region--top{ //bandeau titre page static
padding-bottom: 3rem;
height: 30vh;
.block-region-top{ .block-region-top{
.block-entity-fieldnodefield-images{ .block-entity-fieldnodefield-images{
display: none; display: none;
height: inherit; height: inherit;
} }
.block-entity-fieldnodetitle{ .block-entity-fieldnodetitle{
.field--name-title{ .field--name-title{
font-family: 'Source Code Pro';
font-size: 2rem;
font-weight: 800;
color: $blue-light; color: $blue-light;
background-color: $white; background-color: $white;
text-transform: uppercase;
} }
} }
} }
} }
.layout__region--third{ // colone de droite fichiers et ressources liées .layout__region--third{ // colone de droite fichiers et ressources liées
.block-region-third{ .block-region-third{
@@ -0,0 +1,27 @@
.node-id-40{
background: url('../images/pictos/carre-contour-bleu_programme.svg');
background-repeat: no-repeat;
background-position-y: 7rem;
max-width: 100vw;
background-size: contain;
.layout__region--top{ //bandeau titre page static
.block-region-top{
.block-entity-fieldnodefield-images{
display: none;
height: inherit;
}
.block-entity-fieldnodetitle{
.field--name-title{
color: $blue-light;
}
}
}
}
}
+11 -4
View File
@@ -26,14 +26,17 @@
// bloc bleu déposer une question // bloc bleu déposer une question
.block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398{ .block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398{
grid-column: 5; grid-column: 5;
display: flex;
flex-direction: column;
max-width: fit-content;
margin-left: 2rem;
padding: 1rem;
background-color: $blue-light; background-color: $blue-light;
.field--name-field-lien{ .field--name-field-lien{
&:before{ &:before{
margin-top: 1rem; margin-top: 1rem;
display: block; display: block;
content: url("../images/pictos/picto_faq.svg"); content: url("../images/pictos/picto_faq.svg");
} }
text-align: center; text-align: center;
a{ a{
@@ -45,6 +48,8 @@
} }
.field--name-field-description{ .field--name-field-description{
p{ p{
display: flex;
flex-direction: column;
margin-top: 0; margin-top: 0;
margin-left: 1.5rem; margin-left: 1.5rem;
margin-right: 1.5rem; margin-right: 1.5rem;
@@ -55,9 +60,11 @@
font-size: 1.3rem; font-size: 1.3rem;
} }
&:after{ &:after{
margin-left: auto;
padding-top: 1rem;
display: block; display: block;
content:url("../images/pictos/noun_Arrow_3771902.svg") content:url("../images/pictos/noun_Arrow_3771902.svg")
} }
} }
} }
@@ -0,0 +1,13 @@
.page-node-type-ressource{
.block-contenudelapageprincipale{
display: flex;
span{
flex: 0 1 100%;
}
.node-type-ressource{
flex:0 1 100%;
}
}
}
+17 -10
View File
@@ -1,22 +1,29 @@
.path-node.page-node-type-static{ .path-node.page-node-type-static{
.layout-container{ .layout-container{
display: flex; // display: flex;
flex-direction: column; // flex-direction: column;
flex-flow: row wrap; // flex-flow: row wrap;
header{ // header{
flex: 0 0 100%; // flex: 0 0 100%;
} // }
main{ // main{
flex: 0 0 100%; // flex: 0 0 100%;
.layout-content{ .layout-content{
// padding-top: 0; // padding-top: 0;
.layout__region--top{ //bandeau titre page static .layout__region--top{ //bandeau titre page static
padding-bottom: 3rem;
height: 30vh;
.block-entity-fieldnodetitle{ .block-entity-fieldnodetitle{
width: fit-content; width: fit-content;
margin-left: 13%; margin-left: 13%;
margin-top: 15vh; margin-top: 15vh;
.field--name-title{
font-family: 'Source Code Pro';
font-size: 2rem;
font-weight: 800;
text-transform: uppercase;
}
} }
// .block-entity-fieldnodefield-images{ // .block-entity-fieldnodefield-images{
// display: none; // display: none;
@@ -228,7 +235,7 @@
} }
} // }
} }
} }
@@ -1,12 +1,19 @@
.layout-container{ .layout-container{
position: relative; position: relative;
} header{
header{ // display: block;
// display: block; width: 100%;
width: 100%; position: fixed;
position: fixed; z-index: 99;
z-index: 99; // position: -webkit-sticky;
// position: sticky;
// top: 0;
// .sticky{
// position: fixed;
// }
}
} }
+2
View File
@@ -32,6 +32,8 @@
@import "pages/_toutesressources"; @import "pages/_toutesressources";
@import "pages/_ressource"; @import "pages/_ressource";
@import "pages/_offreDeService"; @import "pages/_offreDeService";
@import "pages/_annuaire-de-ressources";
/*partials*/ /*partials*/
@import "partials/_header"; @import "partials/_header";
@@ -59,20 +59,8 @@
'first_part_home', 'first_part_home',
] ]
%} %}
{# {%
set id_titre = [
'id-' ~ paragraph|clean_id,
'block-' ~ plugin_id|clean_class,
key.value,
'id-' ~ counter,
]
%} #}
{%
set id_hook = [
'hook-id-' ~ paragraph.id()|clean_id,
'paragraph-id--' ~ paragraph.id()|clean_id,
]
%}
{% if label_hidden %} {% if label_hidden %}
@@ -84,16 +72,10 @@
</div> </div>
{% else %} {% else %}
{% for item in items %} {% for item in items %}
{# {% for i in 0..10 %} #}
{# <span> {{index}}</span> #}
{# <span id="{{item[key].value }}"></span> #}
{# <span>{{counter}}</span> #}
{# <div {{ attributes.addClass(classes, 'field__item') }}>{{ item.content }}</div> #}
<div {{ attributes.addClass(classes, 'field__item').setAttribute('id', id_hook) }}>{{ item.content }}</div> <div {{ attributes.addClass(classes, 'field__item') }}>{{ item.content }}</div>
{# {% endfor %} #}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% else %} {% else %}
@@ -113,6 +95,3 @@
{# {% for key, item in items %}
<span id="{{element['#items'][key].value|replace({' ':''}) }}"></span>
<div{{ item.attributes }}>{{ item.content }}</div> #}