carroussel actus home debugg css
This commit is contained in:
parent
efe44ec52a
commit
f4208a492e
File diff suppressed because one or more lines are too long
@ -1542,14 +1542,12 @@ footer {
|
|||||||
padding-top: 3rem;
|
padding-top: 3rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a h2 {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_images {
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_field_images {
|
|
||||||
order: 1;
|
order: 1;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
-moz-border-radius: 9px; /* pour Mozilla */
|
-moz-border-radius: 9px; /* pour Mozilla */
|
||||||
@ -1557,21 +1555,20 @@ footer {
|
|||||||
-webkit-border-radius: 9px; /* pour Safari sur Mac */
|
-webkit-border-radius: 9px; /* pour Safari sur Mac */
|
||||||
border-radius: 9px; /* CSS3 */
|
border-radius: 9px; /* CSS3 */
|
||||||
height: 250px;
|
height: 250px;
|
||||||
|
width: 100%;
|
||||||
margin-bottom: 0.6rem;
|
margin-bottom: 0.6rem;
|
||||||
}
|
}
|
||||||
@media (max-width: 550px) {
|
@media (max-width: 550px) {
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_field_images {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_images {
|
||||||
height: 170px;
|
height: 170px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_field_images div {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_images div.cadre-img-zoom {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_field_images div div a {
|
|
||||||
display: block;
|
display: block;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_field_images div div a img {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_images div.cadre-img-zoom img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
@ -1581,103 +1578,91 @@ footer {
|
|||||||
border-radius: 9px; /* CSS3 */
|
border-radius: 9px; /* CSS3 */
|
||||||
}
|
}
|
||||||
@media (max-width: 550px) {
|
@media (max-width: 550px) {
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_field_images div div a img {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_images div.cadre-img-zoom img {
|
||||||
max-height: 170px;
|
max-height: 170px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_field_images img {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_type_d_actualite {
|
||||||
width: 100%;
|
order: 2;
|
||||||
height: 100%;
|
|
||||||
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 */
|
|
||||||
}
|
|
||||||
@media (max-width: 550px) {
|
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_field_images img {
|
|
||||||
max-height: 170px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_field_type_d_actualite {
|
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: red;
|
color: red;
|
||||||
font-size: 0.5rem;
|
font-size: 0.5rem;
|
||||||
font-family: "gilroy-bold";
|
font-family: "gilroy-bold";
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_field_type_d_actualite::before {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_type_d_actualite::before {
|
||||||
content: url("../img/type-actu.svg");
|
content: url("../img/type-actu.svg");
|
||||||
padding-right: 0.3rem;
|
padding-right: 0.3rem;
|
||||||
padding-bottom: 0.2rem;
|
padding-bottom: 0.2rem;
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .infos-actu {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_type_d_actualite a {
|
||||||
order: 2;
|
color: red;
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .infos-actu h2 {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_date {
|
||||||
font-family: "gilroy-semibold";
|
order: 3;
|
||||||
}
|
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_field_date {
|
|
||||||
color: red;
|
color: red;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 0.5rem;
|
font-size: 0.5rem;
|
||||||
font-family: "gilroy-bold";
|
font-family: "gilroy-bold";
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_field_date::before {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_date::before {
|
||||||
content: url("../img/date-actu.svg");
|
content: url("../img/date-actu.svg");
|
||||||
padding-right: 0.3rem;
|
padding-right: 0.3rem;
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_title {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_title {
|
||||||
order: 3;
|
order: 4;
|
||||||
padding-top: 0.2rem;
|
padding-top: 0.2rem;
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_title h2 {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_title h2 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
line-height: 0.4;
|
line-height: 0.4;
|
||||||
padding-bottom: 0.6rem;
|
padding-bottom: 0.6rem;
|
||||||
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_title h2 a {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_title h2 a {
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
color: rgb(7, 50, 194);
|
color: rgb(7, 50, 194);
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_body {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_body {
|
||||||
order: 4;
|
order: 5;
|
||||||
opacity: 1 !important;
|
opacity: 1 !important;
|
||||||
transform: none !important;
|
transform: none !important;
|
||||||
font-family: "gilroy-regular";
|
font-family: "gilroy-regular";
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_body p {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_body p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
font-size: 0.7rem;
|
font-size: 0.7rem;
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_body a {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_body a {
|
||||||
color: rgb(7, 50, 194);
|
color: rgb(7, 50, 194);
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_field_liens {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_liens {
|
||||||
order: 5;
|
order: 6;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
padding-left: 0.5rem;
|
padding-left: 0.5rem;
|
||||||
background: black;
|
background: black;
|
||||||
}
|
}
|
||||||
@media (max-width: 810px) {
|
@media (max-width: 810px) {
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_field_liens {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_liens {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_field_liens a {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_liens a {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: white;
|
color: white;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-size: 0.6rem;
|
font-size: 0.6rem;
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_field_liens a svg {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_liens a svg {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite a .field_field_liens a::after {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_liens a::after {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
content: url("../img/noun-arrow-to-right.svg");
|
content: url("../img/noun-arrow-to-right.svg");
|
||||||
padding-right: 0.2rem;
|
padding-right: 0.2rem;
|
||||||
@ -4025,10 +4010,6 @@ main {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
padding-bottom: 7rem;
|
padding-bottom: 7rem;
|
||||||
}
|
}
|
||||||
#actualites .layout-content .content_container .views-element-container .view-rows-wrapper .views-row .node-type-actualite a {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
#actualites .layout-content .content_container .views-element-container .view-rows-wrapper .views-row .node-type-actualite .infos-actu {
|
#actualites .layout-content .content_container .views-element-container .view-rows-wrapper .views-row .node-type-actualite .infos-actu {
|
||||||
order: 1;
|
order: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -4036,7 +4017,7 @@ main {
|
|||||||
padding: 1rem 0rem;
|
padding: 1rem 0rem;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
#actualites .layout-content .content_container .views-element-container .view-rows-wrapper .views-row .node-type-actualite .infos-actu .field_field_type_d_actualite a {
|
#actualites .layout-content .content_container .views-element-container .view-rows-wrapper .views-row .node-type-actualite .infos-actu .field_field_type_d_actualite {
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: red;
|
color: red;
|
||||||
font-size: 0.6rem;
|
font-size: 0.6rem;
|
||||||
@ -4044,7 +4025,7 @@ main {
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
#actualites .layout-content .content_container .views-element-container .view-rows-wrapper .views-row .node-type-actualite .infos-actu .field_field_type_d_actualite a::before {
|
#actualites .layout-content .content_container .views-element-container .view-rows-wrapper .views-row .node-type-actualite .infos-actu .field_field_type_d_actualite::before {
|
||||||
content: url("../img/type-actu.svg");
|
content: url("../img/type-actu.svg");
|
||||||
padding-right: 0.4rem;
|
padding-right: 0.4rem;
|
||||||
}
|
}
|
||||||
@ -4090,9 +4071,6 @@ main {
|
|||||||
padding-right: 0.2rem;
|
padding-right: 0.2rem;
|
||||||
padding-left: 0.2rem;
|
padding-left: 0.2rem;
|
||||||
}
|
}
|
||||||
#actualites .layout-content .content_container .views-element-container .view-rows-wrapper .views-row .node-type-actualite .field_field_liens a:not(.ext) {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
#actualites .layout-content .content_container .views-element-container .view-rows-wrapper .views-row .node-type-actualite .field_field_images {
|
#actualites .layout-content .content_container .views-element-container .view-rows-wrapper .views-row .node-type-actualite .field_field_images {
|
||||||
order: 5;
|
order: 5;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,87 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* quartiers_de_demain behaviors.
|
||||||
|
*/
|
||||||
|
(function (Drupal) {
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
Drupal.behaviors.quartiers_de_demain = {
|
||||||
|
attach: function (context, settings) {
|
||||||
|
console.log('It works!');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
} (Drupal));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/////////////// start class à view-rows-ressources ////////
|
||||||
|
$(document).ready(function () {
|
||||||
|
$(".view-rows-wrapper").each(function () {
|
||||||
|
let h3Container = $(this).prev("h3").find("div[class^='type-']");
|
||||||
|
let classToAdd = h3Container.attr("class"); // Récupère la classe complète (ex: "type-Documentation")
|
||||||
|
|
||||||
|
if (classToAdd) {
|
||||||
|
$(this).addClass(classToAdd); // Ajoute cette classe à .view-rows-wrapper
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
////////////////// end class à view-rows-wrapper ////////////////
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/////////////////// start voir plus... ressources ////////////////////
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
// Vérifier si on est sur la page avec l'ID #ressources
|
||||||
|
if ($("#ressources").length > 0) {
|
||||||
|
$(".view-rows-wrapper").each(function () {
|
||||||
|
let container = $(this); // Cible uniquement cette section
|
||||||
|
let items = container.find(".views-row"); // Les éléments à afficher progressivement
|
||||||
|
let visibleCount = 4; // Nombre d'éléments visibles au départ
|
||||||
|
|
||||||
|
|
||||||
|
// Récupérer la classe `type-XXX`
|
||||||
|
let typeClass = container.attr("class").split(" ").find(cls => cls.startsWith("type-"));
|
||||||
|
let typeName = typeClass ? typeClass.replace("type-", "").replace(/-/g, " ") : "contenu"; // Nettoyer le nom
|
||||||
|
|
||||||
|
if (typeClass === "type-podcast" || typeClass === "type-video") {
|
||||||
|
visibleCount = 2; // Pour Podcast et Vidéo
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ajouter un bouton dynamiquement après chaque `.view-rows-ressources`
|
||||||
|
let button = $("<button>")
|
||||||
|
.addClass("voir-plus")
|
||||||
|
.text("Voir plus de " + typeName)
|
||||||
|
.insertAfter(container);
|
||||||
|
|
||||||
|
// Cacher tous les éléments sauf les 4 premiers
|
||||||
|
items.hide().slice(0, visibleCount).show();
|
||||||
|
|
||||||
|
// Action sur le bouton
|
||||||
|
button.on("click", function () {
|
||||||
|
let hiddenItems = container.find(".views-row:hidden").slice(0, 4); // Prochains éléments à afficher
|
||||||
|
|
||||||
|
if ($(this).text().includes("Voir plus")) {
|
||||||
|
hiddenItems.slideDown(); // Afficher avec un effet de glissement
|
||||||
|
|
||||||
|
if (container.find(".views-row:hidden").length === 0) {
|
||||||
|
$(this).text("Voir moins de " + typeName); // Changer le texte du bouton si tout est affiché
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
container.find(".views-row").slice(visibleCount).slideUp(); // Replier les éléments
|
||||||
|
$(this).text("Voir plus de " + typeName); // Revenir à l'état initial
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
/////////////////// end voir plus... ressources ////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -696,6 +696,8 @@ $(document).ready(function () {
|
|||||||
});
|
});
|
||||||
////////////////// end class à view-rows-wrapper ////////////////
|
////////////////// end class à view-rows-wrapper ////////////////
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/////////////////// start voir plus... ressources ////////////////////
|
/////////////////// start voir plus... ressources ////////////////////
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
@ -743,8 +745,6 @@ $(document).ready(function () {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/////////////////// end voir plus... ressources ////////////////////
|
/////////////////// end voir plus... ressources ////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
@ -46,10 +46,10 @@
|
|||||||
.node-type-actualite{
|
.node-type-actualite{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-bottom: 7rem;
|
padding-bottom: 7rem;
|
||||||
a{
|
// a{
|
||||||
display: flex;
|
// display: flex;
|
||||||
flex-direction: column;
|
// flex-direction: column;
|
||||||
}
|
// }
|
||||||
|
|
||||||
.infos-actu{
|
.infos-actu{
|
||||||
order: 1;
|
order: 1;
|
||||||
@ -57,7 +57,7 @@
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
padding: 1rem 0rem;
|
padding: 1rem 0rem;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
.field_field_type_d_actualite a{
|
.field_field_type_d_actualite{
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: red;
|
color: red;
|
||||||
font-size: 0.6rem;
|
font-size: 0.6rem;
|
||||||
@ -81,6 +81,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.field_body {
|
.field_body {
|
||||||
order: 2;
|
order: 2;
|
||||||
padding-bottom: 2rem;
|
padding-bottom: 2rem;
|
||||||
@ -114,9 +115,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a:not(.ext){
|
// a:not(.ext){
|
||||||
display: none;
|
// display: none;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
.field_field_images{
|
.field_field_images{
|
||||||
|
@ -42,156 +42,142 @@
|
|||||||
padding-top: 3rem;
|
padding-top: 3rem;
|
||||||
}
|
}
|
||||||
article.node-type-actualite{
|
article.node-type-actualite{
|
||||||
a{
|
div{
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
h2{
|
align-items: flex-start;
|
||||||
display: none;
|
.field_field_images{
|
||||||
}
|
order: 1;
|
||||||
.field_field_images{
|
background-color: black;
|
||||||
order: 1;
|
|
||||||
background-color: black;
|
|
||||||
-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 */
|
|
||||||
height: 250px;
|
|
||||||
margin-bottom: 0.6rem;
|
|
||||||
@media(max-width: 550px){
|
|
||||||
height: 170px;
|
|
||||||
}
|
|
||||||
div{
|
|
||||||
height: 100%;
|
|
||||||
div{
|
|
||||||
// height: 600px;
|
|
||||||
|
|
||||||
a{
|
|
||||||
display: block;
|
|
||||||
height: 100%;
|
|
||||||
img{
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
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 */
|
|
||||||
@media(max-width: 550px){
|
|
||||||
max-height: 170px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
img{
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: cover;
|
|
||||||
-moz-border-radius: 9px; /* pour Mozilla */
|
-moz-border-radius: 9px; /* pour Mozilla */
|
||||||
-khtml-border-radius: 9px; /* pour Safari et Chrome */
|
-khtml-border-radius: 9px; /* pour Safari et Chrome */
|
||||||
-webkit-border-radius: 9px; /* pour Safari sur Mac */
|
-webkit-border-radius: 9px; /* pour Safari sur Mac */
|
||||||
border-radius: 9px; /* CSS3 */
|
border-radius: 9px; /* CSS3 */
|
||||||
|
height: 250px;
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 0.6rem;
|
||||||
@media(max-width: 550px){
|
@media(max-width: 550px){
|
||||||
max-height: 170px;
|
height: 170px;
|
||||||
|
}
|
||||||
|
div.cadre-img-zoom{
|
||||||
|
height: 100%;
|
||||||
|
display: block;
|
||||||
|
height: 100%;
|
||||||
|
img{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
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 */
|
||||||
|
@media(max-width: 550px){
|
||||||
|
max-height: 170px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.field_field_type_d_actualite{
|
||||||
|
order: 2;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: red;
|
||||||
|
font-size: 0.5rem;
|
||||||
|
font-family: 'gilroy-bold';
|
||||||
|
display: inline-flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
&::before{
|
||||||
|
content: url('../img/type-actu.svg');
|
||||||
|
padding-right: 0.3rem;
|
||||||
|
padding-bottom: 0.2rem;
|
||||||
|
}
|
||||||
|
a{color: red;}
|
||||||
|
}
|
||||||
|
// .infos-actu{
|
||||||
|
// order: 2;
|
||||||
|
// h2{
|
||||||
|
// font-family: 'gilroy-semibold';
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
.field_field_date{
|
||||||
|
order: 3;
|
||||||
|
color: red;
|
||||||
|
display: inline-flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 0.5rem;
|
||||||
|
font-family: 'gilroy-bold';
|
||||||
|
|
||||||
|
&::before{
|
||||||
|
content: url('../img/date-actu.svg');
|
||||||
|
padding-right: 0.3rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.field_field_type_d_actualite{
|
.field_title{
|
||||||
text-transform: uppercase;
|
order: 4;
|
||||||
color: red;
|
padding-top: 0.2rem;
|
||||||
font-size: 0.5rem;
|
h2{
|
||||||
font-family: 'gilroy-bold';
|
margin: 0;
|
||||||
display: inline-flex;
|
line-height: 0.4;
|
||||||
align-items: center;
|
padding-bottom: 0.6rem;
|
||||||
&::before{
|
padding-left: 0;
|
||||||
content: url('../img/type-actu.svg');
|
a{
|
||||||
padding-right: 0.3rem;
|
font-size: 0.8rem;
|
||||||
padding-bottom: 0.2rem;
|
color: $blue_QDD;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
.field_body{
|
||||||
.infos-actu{
|
order: 5;
|
||||||
order: 2;
|
// visibility: visible;
|
||||||
h2{
|
opacity: 1 !important;
|
||||||
font-family: 'gilroy-semibold';
|
transform: none !important;
|
||||||
}
|
font-family: 'gilroy-regular';
|
||||||
}
|
p{
|
||||||
.field_field_date{
|
margin: 0;
|
||||||
|
margin-bottom: 1rem;
|
||||||
color: red;
|
font-size: 0.7rem ;
|
||||||
display: inline-flex;
|
}
|
||||||
align-items: center;
|
|
||||||
font-size: 0.5rem;
|
|
||||||
font-family: 'gilroy-bold';
|
|
||||||
|
|
||||||
&::before{
|
|
||||||
content: url('../img/date-actu.svg');
|
|
||||||
padding-right: 0.3rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.field_title{
|
|
||||||
order: 3;
|
|
||||||
padding-top: 0.2rem;
|
|
||||||
h2{
|
|
||||||
margin: 0;
|
|
||||||
line-height: 0.4;
|
|
||||||
padding-bottom: 0.6rem;
|
|
||||||
a{
|
a{
|
||||||
font-size: 0.8rem;
|
|
||||||
color: $blue_QDD;
|
color: $blue_QDD;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
.field_body{
|
|
||||||
order: 4;
|
|
||||||
// visibility: visible;
|
|
||||||
opacity: 1 !important;
|
|
||||||
transform: none !important;
|
|
||||||
font-family: 'gilroy-regular';
|
|
||||||
p{
|
|
||||||
margin: 0;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
font-size: 0.7rem ;
|
|
||||||
}
|
|
||||||
a{
|
|
||||||
color: $blue_QDD;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.field_field_liens{
|
|
||||||
order: 5;
|
|
||||||
width: fit-content;
|
|
||||||
padding-left: 0.5rem;
|
|
||||||
// padding-bottom: 0.2rem;
|
|
||||||
// padding-top: 0.2rem;
|
|
||||||
background: black;
|
|
||||||
@media (max-width:810px) {
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
}
|
||||||
|
.field_field_liens{
|
||||||
|
order: 6;
|
||||||
|
width: fit-content;
|
||||||
|
padding-left: 0.5rem;
|
||||||
|
// padding-bottom: 0.2rem;
|
||||||
|
// padding-top: 0.2rem;
|
||||||
|
background: black;
|
||||||
|
@media (max-width:810px) {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
a{
|
a{
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
color: white;
|
|
||||||
text-transform: uppercase;
|
|
||||||
font-size: 0.6rem;
|
|
||||||
|
|
||||||
svg{
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
&::after{
|
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
content: url("../img/noun-arrow-to-right.svg");
|
align-items: center;
|
||||||
padding-right: 0.2rem;
|
color: white;
|
||||||
padding-left: 0.2rem;
|
text-transform: uppercase;
|
||||||
// padding-bottom: 0.2rem;
|
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;
|
||||||
|
// padding-bottom: 0.2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
.views-row:nth-child(odd){
|
.views-row:nth-child(odd){
|
||||||
|
@ -88,11 +88,12 @@
|
|||||||
</footer>
|
</footer>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{# <div{{ content_attributes }}> #}
|
<div{{ content_attributes }}>
|
||||||
{# {{ content }} #}
|
{{ content }}
|
||||||
{# </div> #}
|
|
||||||
{% block content %}
|
</div>
|
||||||
<a href="{{ url }}" rel="bookmark">{{ label }}
|
|
||||||
|
{# {% block content %}
|
||||||
{{content.field_images}}
|
{{content.field_images}}
|
||||||
<div class="infos-actu">
|
<div class="infos-actu">
|
||||||
{{content.field_type_d_actualite}}
|
{{content.field_type_d_actualite}}
|
||||||
@ -100,9 +101,5 @@
|
|||||||
</div>
|
</div>
|
||||||
{{content.body}}
|
{{content.body}}
|
||||||
{{content.field_liens}}
|
{{content.field_liens}}
|
||||||
|
{% endblock %} #}
|
||||||
|
|
||||||
</a>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
@ -5,6 +5,7 @@ let config = {
|
|||||||
mode: 'development',
|
mode: 'development',
|
||||||
entry: [
|
entry: [
|
||||||
"./src/assets/js/quartiers_de_demain.js",
|
"./src/assets/js/quartiers_de_demain.js",
|
||||||
|
"./src/assets/js/page_ressources.js",
|
||||||
// "./src/assets/js/animated_logo.js",
|
// "./src/assets/js/animated_logo.js",
|
||||||
"./src/assets/js/animated_formes.js",
|
"./src/assets/js/animated_formes.js",
|
||||||
"./src/assets/scss/quartiers_de_demain.scss",
|
"./src/assets/scss/quartiers_de_demain.scss",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user