background svg

This commit is contained in:
2021-11-25 13:18:21 +01:00
parent fcf19590b6
commit 3bd8464d23
7 changed files with 217 additions and 105 deletions
+70 -46
View File
@@ -90,6 +90,7 @@
overflow: hidden; }
.layout-content {
padding-top: 7rem;
padding-bottom: 6rem; }
.path-frontpage {
@@ -123,24 +124,11 @@ a {
.layout__region--top .block-region-top {
height: inherit; }
.layout__region--top .block-entity-fieldnodefield-images {
display: none;
height: inherit; }
.layout__region--top .block-entity-fieldnodefield-images .field--name-field-images {
height: inherit; }
.layout__region--top .block-entity-fieldnodefield-images .field--name-field-images .field__item {
height: inherit; }
.layout__region--top .block-entity-fieldnodefield-images .field--name-field-images .field__item img {
width: 65%;
height: inherit;
object-fit: cover;
position: relative;
z-index: -2; }
.layout__region--top .block-entity-fieldnodetitle {
display: block;
position: relative;
float: right;
top: -420px;
width: 60%;
z-index: -1; }
width: 50%;
margin: auto; }
.layout__region--top .block-entity-fieldnodetitle .field--name-title {
font-size: 4rem;
font-weight: 800;
@@ -174,19 +162,29 @@ a {
.layout__region--second .block-entity-fieldnodefield-textes .field--type-text-long {
padding-right: 2rem; }
.layout__region--third .block-entity-fieldnodefield-fichiers {
height: fit-content; }
.layout__region--third .field--name-field-fichiers {
display: flex;
justify-self: right;
min-height: 4rem;
max-width: 70%;
max-width: 75%;
background: #009ee3;
color: white;
align-content: flex-end;
align-items: center;
justify-content: center; }
padding-left: 1rem;
padding-top: 1rem; }
.layout__region--third .field--name-field-fichiers span:nth-of-type(2) {
display: none; }
.layout__region--third .field--name-field-fichiers .file--mime-application-pdf {
padding: 1rem; }
height: inherit;
margin: auto; }
.layout__region--third .field--name-field-fichiers .file--mime-application-pdf ::before {
content: url("../images/pictos/noun_Download_file_307900.svg");
width: 50px;
height: 53px;
padding-right: 1rem; }
.layout__region--third .field--name-field-fichiers .file--mime-application-pdf a {
display: inline-flex;
align-items: center;
color: white;
font-weight: 800; }
@@ -196,14 +194,25 @@ a {
.layout__region--third .block-entity-fieldnodefield-ress .node-type-ressource {
display: flex;
border-bottom: 1px solid #009ee3;
padding-bottom: 2rem;
max-width: 70%; }
border: 1px solid #009ee3;
padding-left: 1rem;
padding-bottom: 3rem;
width: 75%;
height: fit-content;
margin-bottom: 1rem; }
.layout__region--third .block-entity-fieldnodefield-ress .node-type-ressource:first-of-type {
border-top: 1px solid #009ee3;
padding-top: 1rem; }
.layout__region--third .block-entity-fieldnodefield-ress .node-type-ressource .field, .layout__region--third .block-entity-fieldnodefield-ress .node-type-ressource a {
line-height: 0.6rem;
font-size: 1.5rem;
color: #09398b;
font-weight: 500; }
.layout__region--third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-images {
width: 50%; }
.layout__region--third .block-entity-fieldnodefield-ress .node-type-ressource .field--name-field-images img {
width: 100%;
height: auto; }
.field--type-entity-reference-revisions .paragraph-summary {
font-family: "Marianne", sans-serif;
@@ -218,8 +227,19 @@ a {
.field--type-entity-reference-revisions .paragraph-summary:nth-of-type(2n) {
font-size: 2rem; }
.block-views-blockhome-nodes-block-1 .node-type-static div:first-child {
display: grid;
grid-template-columns: 1fr repeat(4, 2fr) 1fr; }
.block-views-blockhome-nodes-block-1 h2 {
grid-column: 1; }
.block-views-blockhome-nodes-block-1 h2 a {
color: #009ee3;
font-weight: 800; }
.block-views-blockactus-blocks-pages-block-1 {
background-color: #09398b; }
border-bottom: 5px solid #009ee3;
border-top: 5px solid #009ee3; }
.block-views-blockactus-blocks-pages-block-1 .view-content {
display: grid;
grid-template-columns: 1fr repeat(4, 2fr) 1fr;
@@ -228,7 +248,7 @@ a {
.block-views-blockactus-blocks-pages-block-1 .view-content .views-row:nth-of-type(1) {
grid-column: 2; }
.block-views-blockactus-blocks-pages-block-1 .view-content .node-type-actualite {
color: white;
color: black;
line-height: 1.5rem;
padding: 0.5rem; }
.block-views-blockactus-blocks-pages-block-1 .view-content .node-type-actualite div:first-child {
@@ -251,12 +271,13 @@ a {
.block-views-blockactus-blocks-pages-block-1 .view-content .node-type-actualite h2 {
margin: 0; }
.block-views-blockactus-blocks-pages-block-1 .view-content .node-type-actualite a {
color: white; }
color: black; }
.layout--onecol .block-block-content {
display: grid;
grid-template-columns: 1fr repeat(8, 2fr) 1fr;
position: relative; }
position: relative;
height: 0; }
.layout--onecol .field--type-link {
grid-area: 8 / span 9;
@@ -276,18 +297,20 @@ a {
font-weight: 700;
color: #009ee3; }
.layout--onecol .field--type-link a::after {
display: inline-block;
content: url("../../images/pictos/polygon2.svg"); }
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)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>'); }
.view-display-id-block_2 {
padding-top: 2rem; }
.view-display-id-block_2 .node-type-static {
.view-display-id-block_2:is(.view-id-home_nodes) {
padding-top: 2rem;
background-image: url("../images/pictos/carre-contour-bleu.svg");
background-repeat: no-repeat;
background-position: -20px; }
.view-display-id-block_2:is(.view-id-home_nodes) .node-type-static {
width: 70%;
margin: auto; }
.view-display-id-block_2 .node-type-static div:first-child:not(.field__item):not(.field) {
.view-display-id-block_2:is(.view-id-home_nodes) .node-type-static div:first-child:not(.field__item):not(.field) {
display: flex;
flex-direction: row; }
.view-display-id-block_2 .node-type-static .inline.links {
.view-display-id-block_2:is(.view-id-home_nodes) .node-type-static .inline.links {
align-self: flex-end;
width: fit-content;
height: fit-content;
@@ -297,22 +320,21 @@ a {
background-color: white;
border: 2px solid #009ee3;
list-style: none; }
.view-display-id-block_2 .node-type-static .inline.links a {
.view-display-id-block_2:is(.view-id-home_nodes) .node-type-static .inline.links a {
text-transform: uppercase;
font-weight: 700;
color: #009ee3; }
.view-display-id-block_2 .node-type-static .inline.links a:after {
width: 40%;
content: url('data:image/svg+xml,<svg width="60" height="40" 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="translate(-23.815852,-33.316918)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>'); }
.view-display-id-block_2 .node-type-static .field--name-field-images .field__item img {
.view-display-id-block_2:is(.view-id-home_nodes) .node-type-static .inline.links a:after {
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)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>'); }
.view-display-id-block_2:is(.view-id-home_nodes) .node-type-static .field--name-field-images .field__item img {
width: 15rem;
height: auto; }
.view-display-id-block_2 .node-type-static .field--name-title {
.view-display-id-block_2:is(.view-id-home_nodes) .node-type-static .field--name-title {
display: none; }
.view-display-id-block_2 .node-type-static .field--name-field-accroche {
.view-display-id-block_2:is(.view-id-home_nodes) .node-type-static .field--name-field-accroche {
flex: 1 1 50px;
padding-left: 1rem; }
.view-display-id-block_2 .node-type-static .field--name-field-accroche p {
.view-display-id-block_2:is(.view-id-home_nodes) .node-type-static .field--name-field-accroche p {
font-size: 1.5rem;
width: 110%;
margin-bottom: 2rem;
@@ -430,8 +452,10 @@ header {
display: none; }
#header-top .region-header-top-left :hover ul:is(.ul1 .sous-liste .ul2) {
display: block;
background-color: white;
background-color: #009ee3;
padding: 1rem; }
#header-top .region-header-top-left :hover ul:is(.ul1 .sous-liste .ul2) a {
color: white; }
#header-top #block-burger {
z-index: 1;
background-color: #009ee3;