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;
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="1591.1172"
height="1591.1172"
viewBox="0 0 420.9831 420.9831"
version="1.1"
id="svg5"
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
sodipodi:docname="carre-contour-bleu.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="0.56123737"
inkscape:cx="1027.1946"
inkscape:cy="888.21597"
inkscape:window-width="1920"
inkscape:window-height="1015"
inkscape:window-x="0"
inkscape:window-y="36"
inkscape:window-maximized="1"
inkscape:current-layer="layer1"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
units="px" />
<defs
id="defs2" />
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(101.77008,91.729773)">
<rect
style="fill:none;stroke:#009ee3;stroke-width:1;stroke-miterlimit:10"
id="rect846"
width="301.27219"
height="301.27219"
x="6.5422697"
y="-115.71222"
transform="rotate(35)" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

@@ -12,6 +12,7 @@
}
.layout-content{
padding-top: 7rem;
padding-bottom: 6rem;
}
.path-frontpage{
+42 -10
View File
@@ -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,<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>');
}
}
@@ -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,<svg xmlns="http://www.w3.org/2000/svg" width="100%" version="1.1"><rect x="0" y="0" width="100" height="100" transform="rotate(35) translate(400, -800) scale(15)" fill="none" stroke="rgb(0,158,227)" stroke-width="0.4px"/></svg>');
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,<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>');
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>');
}
}
}
+44 -47
View File
@@ -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;
}
}
}
}
@@ -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;
}
}
}
}