From 8d213181e75075cff1199e496392afa20fc13b00 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Fri, 28 Jun 2024 16:54:08 +0100 Subject: [PATCH] `layout_header` component print styles --- .../components/_layout-header.scss | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss b/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss index da8f5ce223..1dace44688 100644 --- a/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +++ b/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss @@ -167,3 +167,50 @@ .gem-c-header__nav { clear: both; } + +// stylelint-disable declaration-no-important +@include govuk-media-query($media-type: print) { + .gem-c-layout-header .govuk-header__container { + .govuk-grid-row:nth-child(even) { + display: none !important; + } + + .govuk-header__content { + display: none; + } + + .gem-c-layout-header__logo { + float: none; + width: auto; + } + + .gem-c-header__logo { + width: 100%; + margin: 0; + padding: 0 2mm 2mm 0; + } + + .govuk-header__link { + display: flex; + align-items: center; + margin: 0; + } + + .govuk-header__logotype { + display: flex; + align-items: center; + } + + .govuk-header__logotype-crown { + margin-right: 2mm !important; + } + + .gem-c-header__product-name, + .gem-c-environment-tag { + margin: 0 0 0 4mm; + color: $govuk-print-text-colour !important; + background-color: initial; + } + } +} +// stylelint-enable declaration-no-important