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
@@ -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;
}
}
}
}