From fff61b5dee4c13b411b639ed9fda2a8df9990406 Mon Sep 17 00:00:00 2001 From: ouidade Date: Thu, 7 Mar 2024 10:15:12 +0100 Subject: [PATCH] push test --- .../css/quartiers_de_demain.css | 12 +++++++++--- .../scss/partials/_aside.scss | 18 +++++++++++++++--- .../templates/page--node--6.html.twig | 2 +- .../templates/page.html.twig | 2 +- 4 files changed, 26 insertions(+), 8 deletions(-) diff --git a/web/themes/custom/quartiers_de_demain/css/quartiers_de_demain.css b/web/themes/custom/quartiers_de_demain/css/quartiers_de_demain.css index 37cddcc..9d81228 100644 --- a/web/themes/custom/quartiers_de_demain/css/quartiers_de_demain.css +++ b/web/themes/custom/quartiers_de_demain/css/quartiers_de_demain.css @@ -398,12 +398,13 @@ footer span.totop { width: 80%; margin-top: 3rem; } } .layout-sidebar-first .sidebar_first_container { + position: sticky; + position: -webkit-sticky; + top: 0; + align-self: flex-start; display: flex; flex-direction: column; width: 80%; - position: sticky; - position: -webkit-sticky; - top: 10rem; font-weight: 400; } .layout-sidebar-first .sidebar_first_container .field-content { margin-bottom: 0.7rem; } @@ -414,6 +415,11 @@ footer span.totop { order: 1; text-transform: uppercase; } +.sticky-menu { + position: sticky; + position: -webkit-sticky; + top: 10rem; } + /*pages*/ #home { width: 100%; diff --git a/web/themes/custom/quartiers_de_demain/scss/partials/_aside.scss b/web/themes/custom/quartiers_de_demain/scss/partials/_aside.scss index c5c5e98..7074a4c 100644 --- a/web/themes/custom/quartiers_de_demain/scss/partials/_aside.scss +++ b/web/themes/custom/quartiers_de_demain/scss/partials/_aside.scss @@ -16,13 +16,18 @@ margin-top: 3rem; } .sidebar_first_container{ + position: sticky; + position: -webkit-sticky; + top: 0; + align-self: flex-start; + display: flex; flex-direction: column; width: 80%; - position: sticky; - position: -webkit-sticky; - top: 10rem; + + // top: 10rem; font-weight: 400; + .field-content{ margin-bottom: 0.7rem; } @@ -30,6 +35,7 @@ display: none; } + #block-quartiers-de-demain-views-block-statics-block-1{ order: 1; text-transform: uppercase; @@ -62,3 +68,9 @@ } } + +.sticky-menu{ + position: sticky; + position: -webkit-sticky; + top: 10rem; +} \ No newline at end of file diff --git a/web/themes/custom/quartiers_de_demain/templates/page--node--6.html.twig b/web/themes/custom/quartiers_de_demain/templates/page--node--6.html.twig index aeab1b7..599656b 100644 --- a/web/themes/custom/quartiers_de_demain/templates/page--node--6.html.twig +++ b/web/themes/custom/quartiers_de_demain/templates/page--node--6.html.twig @@ -64,7 +64,7 @@ {# /.layout-content #} {% if page.sidebar_first %} -