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