mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
Change banner content to just cover analytics
Follows discussions with @quis, @yahoopete and @karlchillmaid.
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
.notify-cookie-banner__wrapper {
|
.notify-cookie-banner__wrapper {
|
||||||
@include govuk-responsive-padding(4, "top");
|
@include govuk-responsive-padding(4, "top");
|
||||||
@include govuk-responsive-padding(4, "bottom");
|
@include govuk-responsive-padding(5, "bottom");
|
||||||
}
|
}
|
||||||
|
|
||||||
.notify-cookie-banner__with-js {
|
.notify-cookie-banner__with-js {
|
||||||
@@ -33,43 +33,35 @@
|
|||||||
.notify-cookie-banner__buttons {
|
.notify-cookie-banner__buttons {
|
||||||
@include govuk-clearfix;
|
@include govuk-clearfix;
|
||||||
|
|
||||||
@include govuk-media-query($from: desktop) {
|
@include govuk-media-query($from: tablet) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.notify-cookie-banner__button {
|
.notify-cookie-banner__button {
|
||||||
display: inline-block;
|
float: left;
|
||||||
width: 100%;
|
width: 50%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
@include govuk-media-query($from: mobile, $until: desktop) {
|
@include govuk-media-query($from: tablet) {
|
||||||
&.notify-cookie-banner__button-accept {
|
display: inline-block;
|
||||||
float: left;
|
float: none;
|
||||||
width: 49%;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.notify-cookie-banner__button-reject {
|
|
||||||
.js-enabled & {
|
|
||||||
float: right;
|
|
||||||
width: 49%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@include govuk-media-query($from: desktop) {
|
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@include govuk-media-query($until: 455px) {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.notify-cookie-banner__button-accept {
|
.notify-cookie-banner__button-accept {
|
||||||
display: none;
|
padding-right: govuk-spacing(4);
|
||||||
|
}
|
||||||
|
|
||||||
.js-enabled & {
|
.notify-cookie-banner__link {
|
||||||
|
@include govuk-font(19);
|
||||||
|
display: block;
|
||||||
|
clear: both;
|
||||||
|
|
||||||
|
@include govuk-media-query($from: tablet) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
margin-left: govuk-spacing(6);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -108,6 +100,7 @@
|
|||||||
|
|
||||||
.notify-cookie-banner__hide-button {
|
.notify-cookie-banner__hide-button {
|
||||||
@include govuk-font($size: 19);
|
@include govuk-font($size: 19);
|
||||||
|
color: $govuk-link-colour;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
border: 0;
|
border: 0;
|
||||||
background: none;
|
background: none;
|
||||||
@@ -115,6 +108,7 @@
|
|||||||
padding: govuk-spacing(0);
|
padding: govuk-spacing(0);
|
||||||
margin-top: govuk-spacing(2);
|
margin-top: govuk-spacing(2);
|
||||||
right: govuk-spacing(3);
|
right: govuk-spacing(3);
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
@include govuk-media-query($from: desktop) {
|
@include govuk-media-query($from: desktop) {
|
||||||
margin-top: govuk-spacing(0);
|
margin-top: govuk-spacing(0);
|
||||||
@@ -123,19 +117,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// GOV.UK Publishing components button styles (inherits from GOV.UK Frontend button)
|
|
||||||
// https://github.com/alphagov/govuk_publishing_components/blob/master/app/assets/stylesheets/govuk_publishing_components/components/_button.scss
|
|
||||||
|
|
||||||
.notify-cookie-banner-button {
|
|
||||||
margin-bottom: govuk-spacing(1);
|
|
||||||
vertical-align: top;
|
|
||||||
|
|
||||||
@include govuk-media-query($from: desktop) {
|
|
||||||
vertical-align: baseline;
|
|
||||||
margin-right: govuk-spacing(2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Additions
|
// Additions
|
||||||
|
|
||||||
// Override margin-bottom, inherited from using .govuk-body class
|
// Override margin-bottom, inherited from using .govuk-body class
|
||||||
|
|||||||
@@ -7,3 +7,13 @@
|
|||||||
column-count: 4;
|
column-count: 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Class to extend govuk-button to allow it to sit alongside other inline content
|
||||||
|
.govuk-button__inline {
|
||||||
|
vertical-align: top;
|
||||||
|
margin-bottom: 0;
|
||||||
|
|
||||||
|
@include govuk-media-query($from: tablet) {
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -2,17 +2,16 @@
|
|||||||
|
|
||||||
<div id="{{ id }}" class="notify-cookie-banner notify-cookie-banner__with-js" data-module="cookie-banner" role="region" aria-describedby="notify-cookie-banner__heading">
|
<div id="{{ id }}" class="notify-cookie-banner notify-cookie-banner__with-js" data-module="cookie-banner" role="region" aria-describedby="notify-cookie-banner__heading">
|
||||||
<div class="notify-cookie-banner__wrapper govuk-width-container">
|
<div class="notify-cookie-banner__wrapper govuk-width-container">
|
||||||
<h2 class="notify-cookie-banner__heading govuk-heading-m" id="notify-cookie-banner__heading">Cookies on GOV.UK Notify</h2>
|
<h2 class="notify-cookie-banner__heading govuk-heading-m" id="notify-cookie-banner__heading">Can we store analytics cookies on your device?</h2>
|
||||||
<p class="govuk-body">We use <a class="govuk-link" href="/cookies">small files called cookies</a> to make GOV.UK Notify work.</p>
|
<p class="govuk-body">Analytics cookies help us understand how our website is being used.</p>
|
||||||
<p class="govuk-body">We'd also like to use analytics cookies to help us improve our service.</p>
|
|
||||||
<p class="govuk-body">Please let us know if this is OK.</p>
|
|
||||||
<div class="notify-cookie-banner__buttons">
|
<div class="notify-cookie-banner__buttons">
|
||||||
<div class="notify-cookie-banner__button notify-cookie-banner__button-accept">
|
<div class="notify-cookie-banner__button notify-cookie-banner__button-accept">
|
||||||
<button class="govuk-button notify-cookie-banner-button" type="submit" data-accept-cookies="true">Yes, I accept analytics cookies</button>
|
<button class="govuk-button govuk-button__inline" type="submit" data-accept-cookies="true" aria-describedby="notify-cookie-banner__heading">Yes</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="notify-cookie-banner__button notify-cookie-banner__button-reject">
|
<div class="notify-cookie-banner__button notify-cookie-banner__button-reject">
|
||||||
<button class="govuk-button notify-cookie-banner-button" type="submit" data-accept-cookies="false">No, do not use analytics cookies</button>
|
<button class="govuk-button govuk-button__inline" type="submit" data-accept-cookies="false" aria-describedby="notify-cookie-banner__heading">No</button>
|
||||||
</div>
|
</div>
|
||||||
|
<a class="govuk-link notify-cookie-banner__link" href="/cookies">How Notify uses cookies</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user