slide taille img and grid display

This commit is contained in:
2023-10-24 11:57:49 +02:00
parent d706e9b9d0
commit 1984014dc4
4 changed files with 143 additions and 127 deletions
+19 -13
View File
@@ -6,12 +6,12 @@
.block-views-blockactus-blocks-pages-block-1{
// grid-area: actus;
width: 100vw;
height: 600px;
height: 550px;
border-bottom: 5px solid $blue-light;
background: $background-actus;
// @media(max-width: 810px){
// max-height: fit-content;
// }
@media(max-width: 810px){
height: 580px;
}
@media(max-width:792px){
max-height: fit-content;
}
@@ -23,9 +23,9 @@
}
div{
height: 100%;
// height: 100%;
.view-actus-blocks-pages{
height: 100%;
// height: 100%;
.view-content{
height: 90%;
.slick-list{
@@ -46,7 +46,7 @@
color: $black;
line-height: 1.5rem;
width: 80%;
height: 600px;
height: 456px;
margin: auto;
@media (max-width: 810px){
width: 65%;
@@ -56,6 +56,8 @@
div:first-child{ // block actu dans le bandeau
display: grid;
grid-template-columns: 1fr repeat(9, 1fr) 1fr;
// grid-template-rows: repeat(6, 1fr);
column-gap: 30px;
@media (max-width: 810px){
display: flex;
flex-direction: column;
@@ -63,14 +65,18 @@
}
.field--name-field-images {
order: 1;
grid-column: 1 /span 9;
grid-column: 1 /span 8;
grid-row: 1 / span 6;
.field__item{
display: flex;
max-height: 420px;
}
.field__item img{
width: 100%;
max-height: 550px;
// max-height: 456px;
object-fit: cover;
padding-left: 1rem;
object-position: center;
// padding-left: 1rem;
@media(max-width:852px){
max-height: 310px;
max-width: 100%;
@@ -147,7 +153,7 @@
}
}
.field--name-field-sous-titre{
display: inline-block;
// display: inline-block;
grid-column: 9 / span 9;
grid-row: 5;
order:5;
@@ -177,7 +183,7 @@
}
}
.field--name-field-actu-type{
display: inline-block;
// display: inline-block;
grid-column: 9 / span 7;
grid-row: 6;
@@ -3,3 +3,6 @@
left: 25px;
}
.slick-dots {
bottom: -40px !important;
}
+1 -1
View File
@@ -58,7 +58,7 @@
/*partials*/
@import "partials/_header";
@import "partials/_footer";
// @import "partials/_slick_custom.scss";
@import "partials/_slick_custom.scss";
@import "partials/_slick";
@import "partials/_slick-theme";
// @import "partials/_block_third_ressources_liees";