From 6ac88b03c1e22ef03b5da361fde613a42c775500 Mon Sep 17 00:00:00 2001 From: ouidade Date: Tue, 12 Nov 2024 15:56:43 +0100 Subject: [PATCH] css timeline --- .../dist/assets/css/bundle.css | 36 +++++++++++++++- .../src/assets/scss/pages/node-type-site.scss | 1 + .../src/assets/scss/partials/timeline.scss | 43 ++++++++++++++++++- 3 files changed, 77 insertions(+), 3 deletions(-) diff --git a/web/themes/custom/quartiers_de_demain/dist/assets/css/bundle.css b/web/themes/custom/quartiers_de_demain/dist/assets/css/bundle.css index 6a89144..43729e0 100644 --- a/web/themes/custom/quartiers_de_demain/dist/assets/css/bundle.css +++ b/web/themes/custom/quartiers_de_demain/dist/assets/css/bundle.css @@ -1206,8 +1206,9 @@ footer { padding-left: 0.5rem; } #home .__container-deroulement .config_pages--type--deroulement { - height: 550px; + height: fit-content; margin-top: 3.5rem; + padding-bottom: 3rem; } #home .__container-deroulement .config_pages--type--deroulement .field_field_phase { height: 100%; @@ -1388,6 +1389,39 @@ footer { #home .__container-deroulement .config_pages--type--deroulement .field_field_phase .timeline .__timeline-content .slick-track .paragraph--type--phase-deroulement .text .field_field_description .field--label-above { display: none; } +#home .__container-deroulement .config_pages--type--deroulement .field_field_calendrier { + margin-top: 2rem; +} +#home .__container-deroulement .config_pages--type--deroulement .field_field_calendrier .file--application-pdf { + width: fit-content; + padding-left: 0.5rem; + background: black; +} +@media (max-width: 810px) { + #home .__container-deroulement .config_pages--type--deroulement .field_field_calendrier .file--application-pdf { + margin-left: 0; + } +} +#home .__container-deroulement .config_pages--type--deroulement .field_field_calendrier .file--application-pdf a { + display: inline-flex; + align-items: center; + color: white; + text-transform: uppercase; + font-size: 0.6rem; +} +#home .__container-deroulement .config_pages--type--deroulement .field_field_calendrier .file--application-pdf a svg { + display: none; +} +#home .__container-deroulement .config_pages--type--deroulement .field_field_calendrier .file--application-pdf a::after { + display: inline-flex; + content: url("../img/noun-arrow-to-right.svg"); + padding-right: 0.2rem; + padding-left: 0.2rem; + padding-bottom: 0.2rem; +} +#home .__container-deroulement .config_pages--type--deroulement .field_field_calendrier span:nth-child(2) { + display: none; +} #actus-caroussel { display: flex; diff --git a/web/themes/custom/quartiers_de_demain/src/assets/scss/pages/node-type-site.scss b/web/themes/custom/quartiers_de_demain/src/assets/scss/pages/node-type-site.scss index 1e3c759..37516db 100644 --- a/web/themes/custom/quartiers_de_demain/src/assets/scss/pages/node-type-site.scss +++ b/web/themes/custom/quartiers_de_demain/src/assets/scss/pages/node-type-site.scss @@ -441,6 +441,7 @@ } } } + } } diff --git a/web/themes/custom/quartiers_de_demain/src/assets/scss/partials/timeline.scss b/web/themes/custom/quartiers_de_demain/src/assets/scss/partials/timeline.scss index 5fcb4c9..a02c86d 100644 --- a/web/themes/custom/quartiers_de_demain/src/assets/scss/partials/timeline.scss +++ b/web/themes/custom/quartiers_de_demain/src/assets/scss/partials/timeline.scss @@ -23,8 +23,9 @@ } .config_pages--type--deroulement{ - height: 550px; + height: fit-content; margin-top: 3.5rem; + padding-bottom: 3rem; .field_field_phase{ height: 100%; .timeline{ @@ -219,8 +220,46 @@ } } + .field_field_calendrier{ + margin-top: 2rem; + .file--application-pdf{ + 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{ + display: inline-flex; + 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; + padding-bottom: 0.2rem; + } + } + } + span:nth-child(2){ + display: none; + } + } } - + + + + } } \ No newline at end of file