From 51ba9b5df0186bdf075d803dea6032bac52e540f Mon Sep 17 00:00:00 2001 From: David Ichim Date: Thu, 26 Jan 2023 18:57:49 +0200 Subject: [PATCH] change(site): added fixes from customVolto.css to design package --- theme/themes/eea/extras/contentBox.less | 1 + theme/themes/eea/extras/contentBox.variables | 1 + theme/themes/eea/extras/custom.overrides | 9 +++++++++ theme/themes/eea/extras/header.less | 4 ---- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/theme/themes/eea/extras/contentBox.less b/theme/themes/eea/extras/contentBox.less index 2f08a73f4f..57b19989f9 100644 --- a/theme/themes/eea/extras/contentBox.less +++ b/theme/themes/eea/extras/contentBox.less @@ -28,6 +28,7 @@ padding-top: @contentBoxContainerMarginTop; padding-bottom: @contentBoxContainerMarginBottom; position: relative; + z-index: @contentBoxContainerZIndex; } &.primary { diff --git a/theme/themes/eea/extras/contentBox.variables b/theme/themes/eea/extras/contentBox.variables index 5ecbace410..fa8b09ea19 100644 --- a/theme/themes/eea/extras/contentBox.variables +++ b/theme/themes/eea/extras/contentBox.variables @@ -18,3 +18,4 @@ /* Container */ @contentBoxContainerMarginTop : @bigGap; @contentBoxContainerMarginBottom : @bigGap; +@contentBoxContainerZIndex : 1; diff --git a/theme/themes/eea/extras/custom.overrides b/theme/themes/eea/extras/custom.overrides index ef868b3c6b..623b4abd1b 100644 --- a/theme/themes/eea/extras/custom.overrides +++ b/theme/themes/eea/extras/custom.overrides @@ -16,6 +16,11 @@ padding-top: 0 !important; } +// show staging banner on homepage +.homepage .stagingBanner { + display: block !important; +} + // use homepage text color for color of cards that are within a content-box that has a variant class .homepage .content-box[class*="ary"] [class="ui fluid card"] { color: @blue-grey-5; @@ -75,6 +80,10 @@ font-weight: inherit; } +// remove margin from first hero block used on the homepage +#page-document > .styled-hero { + margin-top: 0; +} // customize error class from volto-slate to our color of red .error { diff --git a/theme/themes/eea/extras/header.less b/theme/themes/eea/extras/header.less index 25cde2d794..a870c77d52 100644 --- a/theme/themes/eea/extras/header.less +++ b/theme/themes/eea/extras/header.less @@ -394,10 +394,6 @@ z-index: 1; width: 100%; } -// reduce width of header when we have toolbar open for better placement -.has-toolbar.homepage .eea.header { - width: 96%; -} /*---------------------------------------------------------------------------- Header Actions - Burger and Search Icons