home bandeau bleu

This commit is contained in:
2021-11-18 11:50:41 +01:00
parent 9310b9f231
commit a107bf51db
2 changed files with 74 additions and 45 deletions
+41 -22
View File
@@ -35,20 +35,37 @@
.view-content{
display: flex;
flex-direction: row;
justify-content: space-around;
// justify-content: space-between;
padding-left: 8rem;
padding-right: 4rem;
margin: auto;
.views-row{
width: 25%;
}
.node-type-actualite{
div:first-child{
color: $white;
.field--name-field-images {
.field__item img{
width: 200px;
height: fit-content;
// &::after{
// content:"line";
// }
}
color: $white;
line-height: 1.5rem;
padding: 0.5rem;
div:first-child{ // block actu dans le bandeau
display: flex;
flex-direction: column;
:nth-child(1) { order: 1; }
:nth-child(4) { order: 2; }
:nth-child(5) { order: 3; }
}
.field--name-field-images {
.field__item img{
width: 50%;
height: fit-content;
// &::after{
// content:"line";
// }
}
}
.field:not(.field--name-field-images){
width: 100%;
}
h2{ margin:0; }
a{ color: $white; }
}
@@ -58,26 +75,28 @@
// actu dans bandeau
.node-type-actualite div:first-child{
display: flex;
flex-direction: column;
:nth-child(1) { order: 1; }
:nth-child(4) { order: 2; }
:nth-child(5) { order: 3; }
}
// .node-type-actualite div:first-child{
// display: flex;
// flex-direction: column;
// :nth-child(1) { order: 1; }
// :nth-child(4) { order: 2; }
// :nth-child(5) { order: 3; }
// }
// bouton voir toutes actus du bandeau bleu
.field--type-link {
display: block;
float: right;
width: fit-content;
padding: 1rem;
font-size: 1.5rem;
height: fit-content;
padding: 0.4rem 1rem;
font-size: 0.8rem;
margin: 0;
background-color: $white;
border: 2px solid $blue-light;
list-style: none;
a{
font-size: 1rem;
text-transform: uppercase;
font-weight: 700;
color: $blue-light;