From: Guillaume AGNIERAY Date: Thu, 30 Nov 2023 22:08:52 +0000 (+0100) Subject: Fix footer background when page dimmer is active X-Git-Tag: 1.0.0~16 X-Git-Url: https://git.agnieray.net/?a=commitdiff_plain;h=585dfd97d7ac93503607b9303d69e1d68bc32a6d;p=galette.git Fix footer background when page dimmer is active When a modal or the mobile menu are opened --- diff --git a/galette/templates/default/elements/footer.html.twig b/galette/templates/default/elements/footer.html.twig index ebc05aa3c..b49021f8e 100644 --- a/galette/templates/default/elements/footer.html.twig +++ b/galette/templates/default/elements/footer.html.twig @@ -1,4 +1,5 @@ - diff --git a/ui/semantic/galette/globals/site.overrides b/ui/semantic/galette/globals/site.overrides index 794616034..6131cbbcc 100644 --- a/ui/semantic/galette/globals/site.overrides +++ b/ui/semantic/galette/globals/site.overrides @@ -114,9 +114,10 @@ body.pushable:not(.loggedin) { display: flex; justify-content: center; } - main ~ footer.ui.segment { - margin-top: -120px; + footer.page-footer { + position: relative; z-index: 2; + margin-top: -120px; } } @@ -179,6 +180,44 @@ footer .ui.horizontal.list .list > .item, footer .ui.horizontal.list > .item{ font-size: .95rem; } +footer.page-footer { + position: relative; + background-color: @pageBackground; +} +main.pusher ~ footer.page-footer { + transition: transform .5s ease; + &:after { + position: absolute; + top: 0; + right: 0; + content: ""; + background: @lightTextColor; + overflow: hidden; + opacity: 0; + transition: all .5s; + will-change: opacity; + } +} +main.pusher.dimmed { + & ~ footer.page-footer { + transform: translate3d(260px, 0, 0); + &:after { + width: 100% !important; + height: 100% !important; + opacity: 1 !important; + } + } + &.closing ~ footer.page-footer { + transform: translate3d(0, 0, 0); + z-index: 1; + &:after { + opacity: 0 !important; + } + } +} +body:not(.loggedin) main.pusher.dimmed.closing ~ footer.page-footer { + z-index: 2; +} @media only screen and (max-width: @largestMobileScreen) { html.public_page .ui.ui.ui.container:not(.fluid) { @@ -282,7 +321,7 @@ footer .ui.horizontal.list > .item{ display: block; } - html:not(.public_page) body:not(.front-page) main ~ footer.ui.segment, + html:not(.public_page) body:not(.front-page) footer.page-footer .footer-wrapper, body:not(.front-page) section.content { margin-left: 260px; flex: 1 1 auto; @@ -329,7 +368,7 @@ footer .ui.horizontal.list > .item{ width: 350px; } - html:not(.public_page) body:not(.front-page) main ~ footer.ui.segment, + html:not(.public_page) body:not(.front-page) footer.page-footer .footer-wrapper, body:not(.front-page) section.content { margin-left: 350px; } @@ -539,7 +578,7 @@ ul.leaders span + span { .infoline .right.aligned.segment, .actions_row, .ui.pagination.menu, - main ~ footer.ui.segment, + footer.page-footer, #back2top { display: none !important; }