From 3bd8464d23dab39414eaa5a05a2fb04465e5451d Mon Sep 17 00:00:00 2001 From: ouidade Date: Thu, 25 Nov 2021 13:18:21 +0100 Subject: [PATCH] background svg --- web/themes/custom/eql/css-compiled/styles.css | 116 +++++++++++------- .../eql/images/pictos/carre-contour-bleu.svg | 56 +++++++++ ...7900.svg => noun_Download_file_307900.svg} | 0 .../custom/eql/scss/global/_layout.scss | 1 + web/themes/custom/eql/scss/pages/_home.scss | 52 ++++++-- web/themes/custom/eql/scss/pages/_static.scss | 91 +++++++------- .../custom/eql/scss/partials/_header.scss | 6 +- 7 files changed, 217 insertions(+), 105 deletions(-) create mode 100644 web/themes/custom/eql/images/pictos/carre-contour-bleu.svg rename web/themes/custom/eql/images/pictos/{noun_Download file_307900.svg => noun_Download_file_307900.svg} (100%) diff --git a/web/themes/custom/eql/css-compiled/styles.css b/web/themes/custom/eql/css-compiled/styles.css index 1905590..97ceff0 100644 --- a/web/themes/custom/eql/css-compiled/styles.css +++ b/web/themes/custom/eql/css-compiled/styles.css @@ -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,'); } -.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,'); } - .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,'); } + .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; diff --git a/web/themes/custom/eql/images/pictos/carre-contour-bleu.svg b/web/themes/custom/eql/images/pictos/carre-contour-bleu.svg new file mode 100644 index 0000000..13bea76 --- /dev/null +++ b/web/themes/custom/eql/images/pictos/carre-contour-bleu.svg @@ -0,0 +1,56 @@ + + + + + + + + + + diff --git a/web/themes/custom/eql/images/pictos/noun_Download file_307900.svg b/web/themes/custom/eql/images/pictos/noun_Download_file_307900.svg similarity index 100% rename from web/themes/custom/eql/images/pictos/noun_Download file_307900.svg rename to web/themes/custom/eql/images/pictos/noun_Download_file_307900.svg diff --git a/web/themes/custom/eql/scss/global/_layout.scss b/web/themes/custom/eql/scss/global/_layout.scss index c1f6395..1660693 100644 --- a/web/themes/custom/eql/scss/global/_layout.scss +++ b/web/themes/custom/eql/scss/global/_layout.scss @@ -12,6 +12,7 @@ } .layout-content{ + padding-top: 7rem; padding-bottom: 6rem; } .path-frontpage{ diff --git a/web/themes/custom/eql/scss/pages/_home.scss b/web/themes/custom/eql/scss/pages/_home.scss index 7d09b7e..dc86cf8 100644 --- a/web/themes/custom/eql/scss/pages/_home.scss +++ b/web/themes/custom/eql/scss/pages/_home.scss @@ -15,16 +15,38 @@ } .paragraph-summary:nth-of-type(2n) { font-size: 2rem; + } } +// 1er bandeau + +.block-views-blockhome-nodes-block-1{ + .node-type-static{ + div:first-child{ + display: grid; + grid-template-columns: 1fr repeat(4, 2fr) 1fr; + } + } + + h2{ + grid-column: 1; + a{ + color: $blue-light; + font-weight: 800; + + } + } + +} + // bandeau bleu actus .block-views-blockactus-blocks-pages-block-1{ - background-color: $blue-dark; - + border-bottom: 5px solid $blue-light; + border-top: 5px solid $blue-light; .view-content{ display: grid; @@ -34,7 +56,7 @@ .views-row:nth-of-type(1) { grid-column: 2; } .node-type-actualite{ - color: $white; + color: $black; line-height: 1.5rem; padding: 0.5rem; div:first-child{ // block actu dans le bandeau @@ -58,7 +80,7 @@ width: 100%; } h2{ margin:0; } - a{ color: $white; } + a{ color: $black; } } } } @@ -71,6 +93,7 @@ display: grid; grid-template-columns: 1fr repeat(8, 2fr) 1fr; position: relative; + height: 0; } .field--type-link { grid-area: 8 / span 9; @@ -85,14 +108,15 @@ background-color: $white; border: 2px solid $blue-light; list-style: none; + a{ text-transform: uppercase; font-weight: 700; color: $blue-light; + } a::after{ - display: inline-block; - content: url("../../images/pictos/polygon2.svg"); + content: url('data:image/svg+xml,'); } } @@ -102,15 +126,24 @@ // boutons en savoir plus pour lien vers pages statiques // présentation programme -.view-display-id-block_2{ +.view-display-id-block_2:is(.view-id-home_nodes){ padding-top: 2rem; + // background: url('data:image/svg+xml,'); + background-image: url("../images/pictos/carre-contour-bleu.svg"); + background-repeat: no-repeat; + background-position: -20px; + + + + // background-position-y: +300px; .node-type-static{ width: 70%; margin: auto; div:first-child:not(.field__item):not(.field){ display: flex; flex-direction: row; - } + + } .inline.links{ align-self: flex-end; @@ -129,8 +162,7 @@ color: $blue-light; &:after{ // display: block; - width: 40%; - content: url('data:image/svg+xml,'); + content: url('data:image/svg+xml,'); } } } diff --git a/web/themes/custom/eql/scss/pages/_static.scss b/web/themes/custom/eql/scss/pages/_static.scss index 4340154..1cd1f75 100644 --- a/web/themes/custom/eql/scss/pages/_static.scss +++ b/web/themes/custom/eql/scss/pages/_static.scss @@ -7,30 +7,13 @@ height: inherit; } .block-entity-fieldnodefield-images{ + display: none; height: inherit; - .field--name-field-images{ - height: inherit; - .field__item{ - height: inherit; - img{ - width: 65%; - height: inherit; - object-fit: cover; - position: relative; - z-index: -2; - } - } - - } } .block-entity-fieldnodetitle{ - display: block; - position: relative; - float: right; - top: -420px; - width: 60%; - z-index: -1; + width: 50%; + margin: auto; .field--name-title{ font-size: 4rem; font-weight: 800; @@ -64,11 +47,6 @@ &:hover{ text-decoration: underline; } - - - // &::after{ - // border-bottom: olivedrab; - // } } } } @@ -89,53 +67,72 @@ } -.layout__region--third{ // colone de droite fichiers et ressources liées +.layout__region--third{ // colone de droite fichiers et ressources liées + .block-entity-fieldnodefield-fichiers{ + height: fit-content; + } .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; - .file--mime-application-pdf{ + span:nth-of-type(2){ + display: none; + } + + .file--mime-application-pdf{ + height: inherit; + margin: auto; + ::before{ + content: url("../images/pictos/noun_Download_file_307900.svg"); + width: 50px; + height: 53px; + padding-right: 1rem; + } a{ + display: inline-flex; + align-items: center; color: $white; font-weight: 800; } - padding: 1rem; } } + .block-entity-fieldnodefield-ress{ h2{ font-size: 1rem; color: $blue-dark; - } + .node-type-ressource{ display: flex; - border-bottom: 1px solid $blue-light; - padding-bottom: 2rem; - max-width: 70%; + border: 1px solid $blue-light; + padding-left: 1rem; + padding-bottom: 3rem; + width: 75%; + height: fit-content; + margin-bottom: 1rem; + &:first-of-type{ + border-top: 1px solid $blue-light; + padding-top: 1rem; + } .field, a{ line-height: 0.6rem; font-size: 1.5rem; color: $blue-dark; font-weight: 500; } - // .field--type-image{ - // // max-width: 70%; - // // max-height: 4rem; - // // img{ - // // object-fit: scale-down; - // // } - - // } + .field--name-field-images{ + width: 50%; + img{ + width: 100%; + height: auto; + } + } } } diff --git a/web/themes/custom/eql/scss/partials/_header.scss b/web/themes/custom/eql/scss/partials/_header.scss index 1551e5e..03b9be4 100644 --- a/web/themes/custom/eql/scss/partials/_header.scss +++ b/web/themes/custom/eql/scss/partials/_header.scss @@ -19,7 +19,6 @@ header{ flex-direction: row; justify-content: space-between; color: $black; - // position: fixed; top:0%; @@ -68,8 +67,11 @@ header{ :hover { ul:is(.ul1 .sous-liste .ul2){ display: block; - background-color: $white; + background-color: $blue-light; padding: 1rem; + a{ + color: $white; + } } } }