$govuk-cookie-banner-background: #d5e8f3; $govuk-cookie-banner-background-new: govuk-colour("white"); $govuk-cookie-banner-text-green: #00823b; .js-enabled { .gem-c-cookie-banner, .gem-c-cookie-banner--new { display: none; // shown with JS, always on for non-JS } } .gem-c-cookie-banner { @include govuk-font($size: 16); padding: govuk-spacing(2) 0; background-color: $govuk-cookie-banner-background; } .gem-c-cookie-banner__message { margin-top: 0; margin-bottom: 0; } .gem-c-cookie-banner__hide-link { display: none; .js-enabled & { display: inline-block; } } // Styles for the new version of the cookie banner .gem-c-cookie-banner--new { @include govuk-font($size: 16); border: 2px solid govuk-colour("black"); } .gem-c-cookie-banner--new .gem-c-cookie-banner__message { display: inline-block; margin-bottom: govuk-spacing(1); padding-right: govuk-spacing(4); padding-bottom: govuk-spacing(2); color: $govuk-cookie-banner-text-green; } .gem-c-cookie-banner__buttons { @include govuk-clearfix; @include govuk-media-query($from: desktop) { display: inline-block; } } .gem-c-cookie-banner__button { display: inline-block; width: 100%; @include govuk-media-query($from: mobile, $until: desktop) { &.gem-c-cookie-banner__button-accept { float: left; width: 49%; } &.gem-c-cookie-banner__button-settings { .js-enabled & { float: right; width: 49%; } } } @include govuk-media-query($from: desktop) { width: auto; } @include govuk-media-query($until: 455px) { width: 100%; } } .gem-c-cookie-banner__button-accept { display: none; .js-enabled & { display: inline-block; } } .gem-c-cookie-banner__confirmation { display: none; position: relative; padding: govuk-spacing(1); } .gem-c-cookie-banner__confirmation-message, .gem-c-cookie-banner__hide-button { display: block; @include govuk-media-query($from: desktop) { display: inline-block; } } .gem-c-cookie-banner__confirmation-message { margin-right: govuk-spacing(4); @include govuk-media-query($from: desktop) { max-width: 90%; } } .gem-c-cookie-banner__hide-button { @include govuk-font($size: 19); outline: 0; border: 0; background: none; text-decoration: underline; color: $govuk-link-colour; padding: govuk-spacing(0); margin-top: govuk-spacing(2); &:hover { color: $govuk-link-hover-colour; cursor: pointer; } @include govuk-media-query($from: desktop) { margin-top: govuk-spacing(0); position: absolute; right: govuk-spacing(1); } } // Override the styles from govuk_template // scss-lint:disable IdSelector // sass-lint:disable no-ids .gem-c-cookie-banner--new#global-cookie-message { background-color: $govuk-cookie-banner-background-new; padding: govuk-spacing(4) 0; box-sizing: border-box; .gem-c-cookie-banner__message, .gem-c-cookie-banner__buttons, .gem-c-cookie-banner__confirmation, .gem-c-cookie-banner__confirmation-message { @include govuk-font($size: 19); } p { margin: 0; } } // sass-lint:enable no-ids // scss-lint:enable IdSelector