Skip to content

Commit ece182d

Browse files
authored
Cookie banner fix (#8)
* cookie fix * no g-tag
1 parent 1234710 commit ece182d

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

_includes/cookie-popup.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{%- if site.gtag %}
22
<!-- START Bootstrap-Cookie-Alert -->
3-
<div class="alert text-center cookiealert text-white rounded-0" role="alert">
3+
<div class="alert text-center cookiealert rounded-0" role="alert">
44
We use cookies to ensure you get the best experience on our website. Read our
5-
<a class="text-white text-hover-primary fw-bold" href="{{ '/privacy.html' | relative_url}}">privacy policy</a> to find out more.
6-
<button type="button" id="acceptcookies" class="btn bg-white hover-primary ms-2" >
5+
<a class="fw-bold" href="{{ '/privacy.html' | relative_url}}">privacy policy</a> to find out more.
6+
<button type="button" id="acceptcookies" class="btn btn-primary ms-2" >
77
Got it!
88
</button>
99
</div>

_sass/_custom_variables.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ $contr-crown-color: $white;
5555
/*-----Events & news-----*/
5656
$news-title-bg: $primary;
5757

58-
/*-----Cookie consent banner-----*/
59-
$cookie-alert-bg: $light;
60-
6158
/*-----Default badge-----*/
6259
$badge-color: $body-color;
6360
$badge-bg: $light;

assets/css/main.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,8 @@ footer {
513513

514514
.cookiealert {
515515
position: fixed;
516-
background-color: $cookie-alert-bg;
516+
background-color: $footer-bg;
517+
color: $footer-color;
517518
bottom: 0;
518519
left: 0;
519520
width: 100%;
@@ -523,6 +524,14 @@ footer {
523524
visibility: hidden;
524525
transform: translateY(100%);
525526
transition: all 500ms ease-out;
527+
528+
a {
529+
color: $footer-link-color !important;
530+
}
531+
532+
a:hover {
533+
color: $footer-link-color-hover !important;
534+
}
526535
}
527536

528537
.cookiealert.show {

0 commit comments

Comments
 (0)