Compare commits

...

3 Commits

Author SHA1 Message Date
f15763890c page actualite js 2025-03-31 10:16:36 +02:00
d975cc467f page actualite css 2025-03-31 09:54:27 +02:00
10a03d4cd3 margin aside 2025-03-31 09:44:58 +02:00
5 changed files with 60 additions and 18 deletions

File diff suppressed because one or more lines are too long

View File

@ -805,7 +805,6 @@ footer {
width: 20%;
position: fixed;
top: 250px;
margin: 1rem 2rem;
background-color: transparent;
}
@media (max-width: 810px) {
@ -813,6 +812,8 @@ footer {
position: relative;
width: 80%;
top: 160px;
margin: auto;
margin-top: 1rem;
}
}
.layout-sidebar-first #block-quartiers-de-demain-formulaireexposeressourcespage-1,
@ -826,6 +827,8 @@ footer {
.layout-sidebar-first #block-quartiers-de-demain-formulaireexposeactuspage-1 {
display: flex;
flex-direction: column;
margin: auto;
width: auto;
}
}
.layout-sidebar-first #block-quartiers-de-demain-formulaireexposeressourcespage-1 h2,
@ -838,6 +841,11 @@ footer {
.layout-sidebar-first #block-quartiers-de-demain-formulaireexposeactuspage-1 h2::after {
content: " :";
}
.layout-sidebar-first #block-quartiers-de-demain-formulaireexposeressourcespage-1 form .js-form-item,
.layout-sidebar-first #block-quartiers-de-demain-formulaireexposeactuspage-1 form .js-form-item {
display: flex;
margin-bottom: 0.5rem;
}
@media (max-width: 810px) {
.layout-sidebar-first #block-quartiers-de-demain-formulaireexposeressourcespage-1 form .js-form-item,
.layout-sidebar-first #block-quartiers-de-demain-formulaireexposeactuspage-1 form .js-form-item {
@ -846,9 +854,20 @@ footer {
justify-content: space-between;
}
}
.layout-sidebar-first #block-quartiers-de-demain-formulaireexposeressourcespage-1 form .js-form-item label,
.layout-sidebar-first #block-quartiers-de-demain-formulaireexposeactuspage-1 form .js-form-item label {
flex: 2 1 auto;
}
.layout-sidebar-first #block-quartiers-de-demain-formulaireexposeressourcespage-1 form .js-form-item input,
.layout-sidebar-first #block-quartiers-de-demain-formulaireexposeactuspage-1 form .js-form-item input {
max-width: 100%;
flex: 2 1 auto;
max-width: 55%;
}
@media (max-width: 810px) {
.layout-sidebar-first #block-quartiers-de-demain-formulaireexposeressourcespage-1 form .js-form-item input,
.layout-sidebar-first #block-quartiers-de-demain-formulaireexposeactuspage-1 form .js-form-item input {
max-width: 100%;
}
}
@media (max-width: 810px) {
.layout-sidebar-first #block-quartiers-de-demain-formulaireexposeressourcespage-1 form,
@ -863,7 +882,6 @@ footer {
display: flex;
flex-direction: row;
justify-content: space-evenly;
margin-bottom: 0.5rem;
border-bottom: solid black 0.5px;
padding-top: 0.5rem;
font-size: 0.7rem;
@ -3391,10 +3409,11 @@ body {
}
#page-node .content_container .node-type-actualite div .field_field_site {
margin-left: 0.5rem;
align-items: center;
}
#page-node .content_container .node-type-actualite div .field_field_site a {
color: red;
font-size: 0.6rem;
font-size: 0.7rem;
font-weight: 600;
display: inline-flex;
align-items: center;
@ -3404,7 +3423,7 @@ body {
content: "";
display: inline-block;
width: 10px; /* Ajuste la largeur */
height: 17px; /* Ajuste la hauteur */
height: 20px; /* Ajuste la hauteur */
background-image: url("../img/map_pointer.svg");
background-size: contain;
background-repeat: no-repeat;
@ -3454,6 +3473,7 @@ body {
margin-left: 1rem;
padding-right: 1rem;
justify-content: space-between;
align-items: center;
}
#page-node .content_container .node-type-actualite .infos-actu .field_field_date::before {
content: url("../img/date-actu.svg");

View File

@ -402,6 +402,10 @@ $( document ).ready(function() {
// });
//////////// end slideshow actus home //////////////////////////
//////////// start slideshow images home //////////////////////////
$(document).ready(function () {
let diapohome = $('.config_pages--type--diaporama-home .diaporama');
@ -433,13 +437,13 @@ $(document).ready(function () {
}
});
//////////// end slideshow actus home //////////////////////////
//////////// end slideshow images home //////////////////////////
//////////// start slideshow /actualites //////////////////////////
$(document).ready(function(){
// Vérifier si on N'EST PAS sur la page #home
// if (!$("#home").length) {
if (!$("#page-node").length) {
let actuview2 = $('.content-wrapper-actu .field_field_images .actu-diaporama');
if (actuview2.length > 0) {
@ -447,14 +451,14 @@ $(document).ready(function(){
slidesToShow: 1,
dots: false,
arrows: true,
adaptiveHeight: true,
adaptiveHeight: false,
autoplay: false,
responsive: [
{
breakpoint: 810,
settings: {
slidesToShow: 1,
adaptiveHeight: true,
adaptiveHeight: false,
arrows: true,
draggable: true,
autoplay: false,
@ -463,9 +467,10 @@ $(document).ready(function(){
]
});
console.log('Slick activé sur les actualités');
// }
console.log('Slick activé sur 1 actu');
}
// } else {
console.log('Slick désactivé sur la page Home');
// console.log('Slick désactivé sur la page Home');
}
});

View File

@ -52,9 +52,11 @@
.field_field_site{
// margin-top: 0.2rem;
margin-left: 0.5rem;
align-items: center;
a{
color: red;
font-size: 0.6rem;
font-size: 0.7rem;
font-weight: 600;
display: inline-flex;
align-items: center;
@ -65,7 +67,7 @@
content: "";
display: inline-block;
width: 10px; /* Ajuste la largeur */
height: 17px; /* Ajuste la hauteur */
height: 20px; /* Ajuste la hauteur */
background-image: url("../img/map_pointer.svg");
background-size: contain;
background-repeat: no-repeat;
@ -124,6 +126,8 @@
margin-left: 1rem;
padding-right: 1rem;
justify-content: space-between;
align-items: center;
&::before{
content: url('../img/date-actu.svg');
padding-right: 0.4rem;

View File

@ -5,12 +5,14 @@
// left: 3%;
top: $header-height-big;
// z-index: 98;
margin: 1rem 2rem;
// margin: 1rem 2rem;
background-color: transparent;
@media(max-width: 810px){
position: relative;
width: 80%;
top: $header-height-pad;
margin: auto;
margin-top: 1rem;
}
@ -22,6 +24,8 @@
@media(max-width: 810px){
display: flex;
flex-direction: column;
margin: auto;
width: auto;
}
h2{
text-transform: uppercase;
@ -34,20 +38,30 @@
form{
.js-form-item{
display: flex;
margin-bottom: 0.5rem;
@media(max-width: 810px){
display: flex;
flex-direction: column;
justify-content: space-between;
}
label{
flex: 2 1 auto;
}
input{
max-width: 100%;
flex: 2 1 auto;
max-width: 55%;
@media(max-width: 810px){
max-width: 100%;
}
}
}
@media(max-width: 810px){
display: flex;
flex-direction: column;
justify-content: space-between;
}
}
@ -55,7 +69,6 @@
display: flex;
flex-direction: row;
justify-content: space-evenly;
margin-bottom: 0.5rem;
border-bottom: solid black 0.5px ;
padding-top: 0.5rem;
font-size: 0.7rem;