fiche site, bug slick atcus

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

View File

@ -3,7 +3,7 @@
src: url('../css/fonts/Gilroy/gilroy-semibold-webfont.woff') format('woff');
}
#sites-map-container {
background-color: #f6f7f3;
background-color: transparent;
text-align: center;
position: relative;
width: 100%; /* Prend toute la largeur du conteneur parent */
@ -83,6 +83,8 @@
#popup-content{
width: 300px;
padding-right: 30px;
p{
font-size: 0.7rem;
}

File diff suppressed because one or more lines are too long

View File

@ -1350,7 +1350,6 @@ footer {
width: 100vw;
}
#actus-caroussel .content-actus .views-row {
width: 500px !important;
padding: 1rem;
}
@media (max-width: 550px) {
@ -2922,6 +2921,9 @@ body {
flex-direction: column;
align-items: center;
}
.node-type-site .layout--threecol-25-50-25 .layout__region--first .block-region-first {
position: fixed;
}
.node-type-site .layout--threecol-25-50-25 .layout__region--first .block-region-first .views-element-container {
margin-bottom: 3rem;
}
@ -2930,10 +2932,12 @@ body {
margin-bottom: 0.5rem;
}
.node-type-site .layout--threecol-25-50-25 .layout__region--first div #sites-map-container {
position: fixed;
width: auto;
left: 0.3rem;
}
.node-type-site .layout--threecol-25-50-25 .layout__region--first div:has(.field_field_documents) {
margin: auto;
}
@media (max-width: 500px) {
.node-type-site .layout--threecol-25-50-25 .layout__region--first div:has(.field_field_documents) {
margin-top: 1rem;
@ -2967,28 +2971,38 @@ body {
content: url("../img/noun-arrow-to-right.svg");
padding-right: 0.2rem;
padding-left: 0.2rem;
padding-bottom: 0.2rem;
}
.node-type-site .layout--threecol-25-50-25 .layout__region--first .field_field_liens_site div div {
width: fit-content;
padding-left: 0.5rem;
.node-type-site .layout--threecol-25-50-25 .layout__region--first div:has(.field_field_liens_site) {
margin: auto;
}
@media (max-width: 500px) {
.node-type-site .layout--threecol-25-50-25 .layout__region--first div:has(.field_field_liens_site) {
margin-top: 1rem;
}
}
.node-type-site .layout--threecol-25-50-25 .layout__region--first div:has(.field_field_liens_site) h2, .node-type-site .layout--threecol-25-50-25 .layout__region--first div:has(.field_field_liens_site) .visually-hidden, .node-type-site .layout--threecol-25-50-25 .layout__region--first div:has(.field_field_liens_site) .field--label-above, .node-type-site .layout--threecol-25-50-25 .layout__region--first div:has(.field_field_liens_site) span:not(.file) {
display: none;
}
.node-type-site .layout--threecol-25-50-25 .layout__region--first div:has(.field_field_liens_site) .field_field_liens_site {
background: black;
}
@media (max-width: 810px) {
.node-type-site .layout--threecol-25-50-25 .layout__region--first .field_field_liens_site div div {
.node-type-site .layout--threecol-25-50-25 .layout__region--first div:has(.field_field_liens_site) .field_field_liens_site {
margin-left: 0;
}
}
.node-type-site .layout--threecol-25-50-25 .layout__region--first .field_field_liens_site div div a {
.node-type-site .layout--threecol-25-50-25 .layout__region--first div:has(.field_field_liens_site) .field_field_liens_site a {
display: inline-flex;
align-items: center;
color: white;
text-transform: uppercase;
font-size: 0.6rem;
}
.node-type-site .layout--threecol-25-50-25 .layout__region--first .field_field_liens_site div div a svg {
.node-type-site .layout--threecol-25-50-25 .layout__region--first div:has(.field_field_liens_site) .field_field_liens_site a svg {
display: none;
}
.node-type-site .layout--threecol-25-50-25 .layout__region--first .field_field_liens_site div div a::after {
.node-type-site .layout--threecol-25-50-25 .layout__region--first div:has(.field_field_liens_site) .field_field_liens_site a::after {
display: inline-flex;
content: url("../img/noun-arrow-to-right.svg");
padding-right: 0.2rem;
@ -3205,7 +3219,7 @@ main {
#lessites .content_container .view .header_view .view {
width: 100vw;
}
#lessites .content_container .view .grille--views-row {
#lessites .content_container .view div:has(.views-row) {
display: flex;
flex-direction: row;
flex-wrap: wrap;
@ -3216,15 +3230,15 @@ main {
padding-top: 3rem;
font-size: 0.6rem;
}
#lessites .content_container .view .grille--views-row .views-row {
#lessites .content_container .view div:has(.views-row) .views-row {
width: 20%;
}
#lessites .content_container .view .grille--views-row .views-row .views-field-title .field-content a {
#lessites .content_container .view div:has(.views-row) .views-row .views-field-title .field-content a {
color: rgb(7, 50, 194);
font-family: "gilroy-bold";
padding-top: 0.5rem;
}
#lessites .content_container .view .grille--views-row .views-row .views-field-field-images .field-content img {
#lessites .content_container .view div:has(.views-row) .views-row .views-field-field-images .field-content img {
width: 200px;
height: 200px;
object-fit: cover;
@ -3235,7 +3249,7 @@ main {
src: url("../css/fonts/Gilroy/gilroy-semibold-webfont.woff") format("woff");
}
#sites-map-container {
background-color: #f6f7f3;
background-color: transparent;
text-align: center;
position: relative;
width: 100%; /* Prend toute la largeur du conteneur parent */
@ -3318,6 +3332,7 @@ main {
#popup-content {
width: 300px;
padding-right: 30px;
}
#popup-content p {
font-size: 0.7rem;

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){

View File

@ -1,36 +0,0 @@
{#
/**
* @file
* Default theme implementation to display a view of unformatted rows.
*
* Available variables:
* - title: The title of this group of rows. May be empty.
* - rows: A list of the view's row items.
* - attributes: The row's HTML attributes.
* - content: The row's content.
* - view: The view object.
* - default_row_class: A flag indicating whether default classes should be
* used on rows.
*
* @see template_preprocess_views_view_unformatted()
*
* @ingroup themeable
*/
#}
{% if title %}
<h3>{{ title }}</h3>
{% endif %}
<div class="grille--views-row">
{% for row in rows %}
{%
set row_classes = [
default_row_class ? 'views-row',
]
%}
<div{{ row.attributes.addClass(row_classes) }}>
{{- row.content -}}
</div>
{% endfor %}
</div>