From 5e1c92d011bb4d7a5d403293a4cc468c4e25eda8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexa=20Valentov=C3=A1?= <git@imaniti.org> Date: Tue, 25 Feb 2025 12:53:57 +0100 Subject: [PATCH] update mobile styling --- .../styleguide2/includes/molecules/menus/carousel.html | 8 +++++++- .../styleguide2/includes/organisms/layout/navbar.html | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/shared/templates/styleguide2/includes/molecules/menus/carousel.html b/shared/templates/styleguide2/includes/molecules/menus/carousel.html index 7f3c27a5..8d1d1a6b 100644 --- a/shared/templates/styleguide2/includes/molecules/menus/carousel.html +++ b/shared/templates/styleguide2/includes/molecules/menus/carousel.html @@ -6,9 +6,15 @@ <{% if self.button_url %}a{% else %}div{% endif %} class=" {% block wrapper_classes %} - block relative xl:h-screen h-[70vh] + block h-[700px] relative {% endblock %} + {% if not page.root_page.has_expanded_navbar %} + xl:h-screen + {% else %} + xl:h-[70vh] + {% endif %} + {% if self.button_url %}group cursor-pointer{% endif %} " diff --git a/shared/templates/styleguide2/includes/organisms/layout/navbar.html b/shared/templates/styleguide2/includes/organisms/layout/navbar.html index 4b544250..7d594d39 100644 --- a/shared/templates/styleguide2/includes/organisms/layout/navbar.html +++ b/shared/templates/styleguide2/includes/organisms/layout/navbar.html @@ -15,7 +15,7 @@ fixed left-0 top-[-1px] z-20 w-full duration-200 navbar {% if is_transparent and page.root_page.has_expanded_navbar %} - xl:sticky + xl:sticky sticky {% else %} xl:absolute {% endif %} -- GitLab