actualites js et css
This commit is contained in:
@@ -764,7 +764,7 @@ $(document).ready(function () {
|
||||
let typeField = article.find(".field_field_type_d_actualite");
|
||||
|
||||
// Vérifier si les deux éléments existent
|
||||
if (dateField.length > 0 && typeField.length > 0) {
|
||||
if (dateField.length > 0 || typeField.length > 0) {
|
||||
// Vérifier si l'encapsulation n'existe pas déjà
|
||||
if (article.find(".infos-actu").length === 0) {
|
||||
// Créer un conteneur et y insérer les éléments
|
||||
|
@@ -44,14 +44,15 @@
|
||||
padding-bottom: 2rem;
|
||||
opacity:1 !important;
|
||||
display: block !important;
|
||||
font-family: "gilroy-light" ;
|
||||
p{
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
}
|
||||
.field_field_liens{
|
||||
order: 3;
|
||||
padding-bottom: 2rem;
|
||||
padding-top: 2rem;
|
||||
// padding-bottom: 2rem;
|
||||
// padding-top: 2rem;
|
||||
width: fit-content;
|
||||
|
||||
a{
|
||||
@@ -115,6 +116,7 @@
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
&::before{
|
||||
content: url('../img/type-actu.svg');
|
||||
padding-right: 0.4rem;
|
||||
@@ -136,7 +138,9 @@
|
||||
|
||||
}
|
||||
|
||||
|
||||
.toggle-actualite{
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
|
@@ -4,6 +4,7 @@
|
||||
// background-color:white !important;
|
||||
main{
|
||||
background-color:white ;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.layout-container main{
|
||||
padding-top: $header-height-big;
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#home{
|
||||
padding-bottom: 0;
|
||||
.config_pages--type--diaporama-home{
|
||||
position: relative;
|
||||
.diaporama{
|
||||
@@ -108,26 +109,18 @@
|
||||
}
|
||||
}
|
||||
h6{
|
||||
// flex: 1 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex: 0 0 40%;
|
||||
// padding-right: 2rem;
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 2rem !important;
|
||||
width: fit-content;
|
||||
color: white;
|
||||
background: black;
|
||||
// padding-left: 0.5rem;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.6rem;
|
||||
margin-bottom: 0.3rem;
|
||||
// margin: auto;
|
||||
// padding-bottom: 2rem;
|
||||
// @media(max-width: 1090px){
|
||||
// padding-top: 0 ;
|
||||
// margin-top: 0;
|
||||
// }
|
||||
|
||||
a{
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
|
@@ -19,6 +19,9 @@
|
||||
font-size: 2rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.field_intro{
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
.views-element-container{
|
||||
&::before{
|
||||
|
@@ -34,258 +34,287 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.views-row{
|
||||
display: flex;
|
||||
margin: auto;
|
||||
width: 100%;
|
||||
font-size: 0.5rem;
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
border-bottom: solid black 0.5px;
|
||||
.node-type-actualite{
|
||||
width: 85%;
|
||||
// padding-bottom: 2rem;
|
||||
|
||||
.content-wrapper-actu{
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 2fr;
|
||||
grid-template-rows: repeat(5 1fr);
|
||||
.field_field_images{
|
||||
grid-column: 1;
|
||||
grid-row: 1 /span 5;
|
||||
width: 250px;
|
||||
// display: flex;
|
||||
// margin: auto;
|
||||
margin-right: 1rem;
|
||||
|
||||
.actu-diaporama{
|
||||
// height: 150px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center !important;
|
||||
margin:auto;
|
||||
.views-row{
|
||||
display: flex;
|
||||
margin: auto;
|
||||
width: 100%;
|
||||
font-size: 0.5rem;
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
border-bottom: solid black 0.5px;
|
||||
.node-type-actualite{
|
||||
width: 85%;
|
||||
// padding-bottom: 2rem;
|
||||
|
||||
.content-wrapper-actu{
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 2fr;
|
||||
grid-template-rows: repeat(5 1fr);
|
||||
.field_field_images{
|
||||
grid-column: 1;
|
||||
grid-row: 1 /span 5;
|
||||
width: 250px;
|
||||
// display: flex;
|
||||
// margin: auto;
|
||||
margin-right: 1rem;
|
||||
.slick-list{
|
||||
margin: auto;
|
||||
padding-top: 0 !important;
|
||||
.cadre-img-zoom{
|
||||
display: flex;
|
||||
|
||||
.actu-diaporama{
|
||||
// height: 150px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center !important;
|
||||
margin:auto;
|
||||
margin-right: 1rem;
|
||||
.slick-list{
|
||||
margin: auto;
|
||||
width: 250px;
|
||||
height: auto;
|
||||
img{
|
||||
width: 100%;
|
||||
padding-top: 0 !important;
|
||||
.cadre-img-zoom{
|
||||
display: flex;
|
||||
margin: auto;
|
||||
width: 250px;
|
||||
height: auto;
|
||||
object-fit: cover;
|
||||
-moz-border-radius: 9px; /* pour Mozilla */
|
||||
-khtml-border-radius: 9px; /* pour Safari et Chrome */
|
||||
-webkit-border-radius: 9px; /* pour Safari sur Mac */
|
||||
border-radius: 9px; /* CSS3 */
|
||||
img{
|
||||
width: 100%;
|
||||
height: auto;
|
||||
object-fit: cover;
|
||||
-moz-border-radius: 9px; /* pour Mozilla */
|
||||
-khtml-border-radius: 9px; /* pour Safari et Chrome */
|
||||
-webkit-border-radius: 9px; /* pour Safari sur Mac */
|
||||
border-radius: 9px; /* CSS3 */
|
||||
}
|
||||
}
|
||||
blockquote.image-field-caption{
|
||||
margin: 0;
|
||||
p{
|
||||
margin-top: 0;
|
||||
font-size: 0.4rem;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
blockquote.image-field-caption{
|
||||
margin: 0;
|
||||
p{
|
||||
margin-top: 0;
|
||||
font-size: 0.4rem;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
button{
|
||||
margin: auto;
|
||||
transform: none;
|
||||
top: 30%;
|
||||
height: 0;
|
||||
width: 0;
|
||||
&:before{
|
||||
transform: scale(0.4) !important;
|
||||
&:hover{
|
||||
filter: brightness(1.75);
|
||||
button{
|
||||
margin: auto;
|
||||
transform: none;
|
||||
top: 30%;
|
||||
height: 0;
|
||||
width: 0;
|
||||
&:before{
|
||||
transform: scale(0.4) !important;
|
||||
&:hover{
|
||||
filter: brightness(1.75);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
button.slick-next{
|
||||
right: 15% ;
|
||||
padding: 0;
|
||||
}
|
||||
button.slick-prev{
|
||||
left: 5%;
|
||||
padding: 0;
|
||||
button.slick-next{
|
||||
right: 15% ;
|
||||
padding: 0;
|
||||
}
|
||||
button.slick-prev{
|
||||
left: 5%;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.field_field_type_d_actualite,
|
||||
.field_field_date,
|
||||
.field_field_site,
|
||||
.field_title,
|
||||
.field_body,
|
||||
.field_field_liens{
|
||||
grid-column: 2;
|
||||
|
||||
}
|
||||
.field_field_type_d_actualite{
|
||||
order: 2;
|
||||
a{
|
||||
text-transform: uppercase;
|
||||
color: red;
|
||||
font-size: 0.6rem;
|
||||
font-weight: 600;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
&::before{
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 16px; /* Ajuste la largeur */
|
||||
height: 16px; /* Ajuste la hauteur */
|
||||
background-image: url('../img/type-actu.svg');
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
// margin-right: 0.4rem;
|
||||
padding-right: 0.4rem;
|
||||
.field_field_type_d_actualite,
|
||||
.field_field_date,
|
||||
.field_field_site,
|
||||
.field_title,
|
||||
.field_body,
|
||||
.field_field_liens{
|
||||
grid-column: 2;
|
||||
|
||||
}
|
||||
.field_field_type_d_actualite{
|
||||
order: 2;
|
||||
a{
|
||||
text-transform: uppercase;
|
||||
color: red;
|
||||
font-size: 0.6rem;
|
||||
font-weight: 600;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
&::before{
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 16px; /* Ajuste la largeur */
|
||||
height: 16px; /* Ajuste la hauteur */
|
||||
background-image: url('../img/type-actu.svg');
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
// margin-right: 0.4rem;
|
||||
padding-right: 0.4rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.field_field_date{
|
||||
order: 3;
|
||||
color: red;
|
||||
font-size: 0.6rem;
|
||||
font-weight: 600;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
// margin-left: 1rem;
|
||||
&::before{
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 16px; /* Ajuste la largeur */
|
||||
height: 16px; /* Ajuste la hauteur */
|
||||
background-image: url('../img/date-actu.svg');
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
// margin-right: 0.4rem;
|
||||
padding-right: 0.4rem;
|
||||
}
|
||||
}
|
||||
.field_field_site{
|
||||
order: 4;
|
||||
a{
|
||||
.field_field_date{
|
||||
order: 3;
|
||||
color: red;
|
||||
font-size: 0.6rem;
|
||||
font-weight: 600;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
// margin-left: 1rem;
|
||||
padding-left: 0.2rem;
|
||||
|
||||
&::before{
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 10px; /* Ajuste la largeur */
|
||||
height: 10px; /* Ajuste la hauteur */
|
||||
background-image: url("../img/map_pointer.svg");
|
||||
width: 16px; /* Ajuste la largeur */
|
||||
height: 16px; /* Ajuste la hauteur */
|
||||
background-image: url('../img/date-actu.svg');
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
// margin-right: 0.4rem;
|
||||
padding-right: 0.5rem;
|
||||
padding-right: 0.4rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
.field_title{
|
||||
order: 5;
|
||||
line-height: 1rem;
|
||||
a{
|
||||
color: $blue_QDD;
|
||||
font-size: 1.2rem;
|
||||
// pointer-events: none;
|
||||
// cursor: default;
|
||||
}
|
||||
h2{
|
||||
margin-top: 0.5rem;
|
||||
margin-bottom: 0;
|
||||
padding-left: 0;
|
||||
font-family: 'gilroy-medium';
|
||||
}
|
||||
}
|
||||
.field_field_sous_titre{
|
||||
color: $blue_QDD;
|
||||
font-family: 'gilroy-light';
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.field_body {
|
||||
order: 6;
|
||||
// padding-bottom: 1rem;
|
||||
opacity: 1 !important;
|
||||
transform:none !important;
|
||||
font-family: 'gilroy-light';
|
||||
|
||||
p{
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
}
|
||||
.field_field_liens{
|
||||
order: 7;
|
||||
padding:0;
|
||||
width: fit-content;
|
||||
a{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
padding-left: 0.5rem;
|
||||
padding-top: 0.2rem;
|
||||
padding-bottom: 0.2rem;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: white;
|
||||
background: black;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.6rem;
|
||||
margin-bottom: 0.5rem;
|
||||
|
||||
svg{
|
||||
display: none;
|
||||
}
|
||||
&::after{
|
||||
.field_field_site{
|
||||
order: 4;
|
||||
a{
|
||||
color: red;
|
||||
font-size: 0.6rem;
|
||||
font-weight: 600;
|
||||
display: inline-flex;
|
||||
content: url("../img/noun-arrow-to-right.svg");
|
||||
padding-right: 0.2rem;
|
||||
align-items: center;
|
||||
// margin-left: 1rem;
|
||||
padding-left: 0.2rem;
|
||||
|
||||
&::before{
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 10px; /* Ajuste la largeur */
|
||||
height: 10px; /* Ajuste la hauteur */
|
||||
background-image: url("../img/map_pointer.svg");
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
// margin-right: 0.4rem;
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
.field_title{
|
||||
order: 5;
|
||||
line-height: 1rem;
|
||||
a{
|
||||
color: $blue_QDD;
|
||||
font-size: 1.2rem;
|
||||
// pointer-events: none;
|
||||
// cursor: default;
|
||||
}
|
||||
h2{
|
||||
margin-top: 0.5rem;
|
||||
margin-bottom: 0;
|
||||
padding-left: 0;
|
||||
font-family: 'gilroy-medium';
|
||||
}
|
||||
}
|
||||
.field_field_sous_titre{
|
||||
color: $blue_QDD;
|
||||
font-family: 'gilroy-light';
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
.field_body {
|
||||
order: 6;
|
||||
// padding-bottom: 1rem;
|
||||
opacity: 1 !important;
|
||||
transform:none !important;
|
||||
font-family: 'gilroy-light';
|
||||
|
||||
p{
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
}
|
||||
.field_field_liens{
|
||||
order: 7;
|
||||
padding:0;
|
||||
width: fit-content;
|
||||
a{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
padding-left: 0.5rem;
|
||||
padding-top: 0.2rem;
|
||||
padding-bottom: 0.2rem;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: white;
|
||||
background: black;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.6rem;
|
||||
margin-bottom: 0.5rem;
|
||||
|
||||
svg{
|
||||
display: none;
|
||||
}
|
||||
&::after{
|
||||
display: inline-flex;
|
||||
content: url("../img/noun-arrow-to-right.svg");
|
||||
padding-right: 0.2rem;
|
||||
padding-left: 0.2rem;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
.toggle-actualite {
|
||||
display: block;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
margin: 10px auto;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
background-image: url("/themes/custom/quartiers_de_demain/dist/assets/img/fleche-bas.svg");
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
cursor: pointer;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.toggle-actualite.open {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.toggle-actualite {
|
||||
display: block;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
margin: 10px auto;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
background-image: url("/themes/custom/quartiers_de_demain/dist/assets/img/fleche-bas.svg");
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
cursor: pointer;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.toggle-actualite.open {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
footer #block-block-content764294aa-409f-4668-88bf-dc71e186915c{
|
||||
display: flex;
|
||||
.field_field_link{
|
||||
width: fit-content;
|
||||
margin: auto;
|
||||
a{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
padding-left: 0.5rem;
|
||||
// padding-top: 0.2rem;
|
||||
// padding-bottom: 0.2rem;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: white;
|
||||
background: black;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.6rem;
|
||||
margin-bottom: 0.5rem;
|
||||
svg{
|
||||
display: none;
|
||||
}
|
||||
&::after{
|
||||
display: inline-flex;
|
||||
content: url("../img/noun-arrow-to-right.svg");
|
||||
padding-right: 0.2rem;
|
||||
padding-left: 0.2rem;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user