fiche site, bug slick atcus

This commit is contained in:
2024-10-30 00:08:16 +01:00
parent f1eecda1a4
commit 8f7a5d04f3
9 changed files with 106 additions and 122 deletions

View File

@@ -367,14 +367,14 @@
$(document).ready(function(){
let actuview = $('.content-actus .view')
let actuview = $('.content-actus .view ')
if (actuview) {
actuview.slick({
slidesToShow: 3,
// slidesToScroll: 1,
dots: false,
arrows: true,
centerMode: true,
// centerMode: true,
adaptiveHeight: false,
autoplay: false,
// autoplaySpeed: 1500,
@@ -388,7 +388,7 @@
adaptiveHeight: false,
arrows: true,
draggable: true,
centerMode: true,
centerMode: false,
autoplay: false,
// autoplaySpeed: 2000,
}

View File

@@ -2,8 +2,8 @@ main{
background-color: #f6f7f3;
}
#lessites{
.content_container{
// background-color: red;
display: flex;
flex-direction: column;
align-items: center;
@@ -23,46 +23,43 @@ main{
}
}
.view{
display: flex;
flex-direction: column;
.header_view {
position: relative !important;
height: fit-content;
z-index: none;
.view{
width: 100vw;
}
}
.grille--views-row{
.view{
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 10px;
width: 80%;
margin: auto;
justify-content: space-between;
padding-top: 3rem;
font-size: 0.6rem;
.views-row{
width: 20%;
.views-field-title .field-content a{
color: $blue_QDD;
font-family: "gilroy-bold";
padding-top: 0.5rem;
}
.views-field-field-images .field-content img{
width: 200px;
height: 200px;
object-fit: cover;
}
flex-direction: column;
.header_view {
position: relative !important;
height: fit-content;
z-index: none;
.view{
width: 100vw;
}
}
div:has(.views-row){
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 10px;
width: 80%;
margin: auto;
justify-content: space-between;
padding-top: 3rem;
font-size: 0.6rem;
.views-row{
width: 20%;
.views-field-title .field-content a{
color: $blue_QDD;
font-family: "gilroy-bold";
padding-top: 0.5rem;
}
.views-field-field-images .field-content img{
width: 200px;
height: 200px;
object-fit: cover;
}
}
}
}
}
}
}

View File

@@ -21,7 +21,7 @@
align-items: center;
.block-region-first{
position: fixed;
.views-element-container{
margin-bottom: 3rem;
}
@@ -29,17 +29,13 @@
div{
width: fit-content;
margin-bottom: 0.5rem;
// #sites-map-container.fixed{
// width: auto;
// left: 1.3rem;
// }
#sites-map-container{
position: fixed;
width: auto;
left: 0.3rem;
}
}
div:has(.field_field_documents){
margin: auto;
@media(max-width: 500px){
margin-top: 1rem;
}
@@ -69,38 +65,48 @@
content: url("../img/noun-arrow-to-right.svg");
padding-right: 0.2rem;
padding-left: 0.2rem;
padding-bottom: 0.2rem;
}
}
}
}
.field_field_liens_site div div{
width: fit-content;
padding-left: 0.5rem;
background: black;
@media (max-width:810px) {
margin-left: 0;
div:has(.field_field_liens_site){
margin: auto;
@media(max-width: 500px){
margin-top: 1rem;
}
a{
display: inline-flex;
align-items: center;
color: white;
text-transform: uppercase;
font-size: 0.6rem;
svg{
display: none;
h2, .visually-hidden, .field--label-above, span:not(.file){
display: none;
}
.field_field_liens_site{
background: black;
@media (max-width:810px) {
margin-left: 0;
}
&::after{
a{
display: inline-flex;
content: url("../img/noun-arrow-to-right.svg");
padding-right: 0.2rem;
padding-left: 0.2rem;
}
}
align-items: center;
color: white;
text-transform: uppercase;
font-size: 0.6rem;
svg{
display: none;
}
&::after{
display: inline-flex;
content: url("../img/noun-arrow-to-right.svg");
padding-right: 0.2rem;
padding-left: 0.2rem;
}
}
}
}
}
.layout__region--second{
flex: 0 1 60% !important;

View File

@@ -19,7 +19,7 @@
width: 100vw;
}
.views-row{
width: 500px !important;
// width: 500px !important;
padding: 1rem;
@media(max-width: 550px){