Skip to content

Commit

Permalink
Improve cokkieconsent box styling.
Browse files Browse the repository at this point in the history
  • Loading branch information
frjo committed Dec 8, 2023
1 parent ea7fe9d commit 5ec7742
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions assets/sass/components/cookieconsent/_cookieconsent.scss
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
// Cookieconsent

.cookieconsent {
display: flex;
flex-flow: wrap;
justify-content: center;
gap: .5rem;
position: sticky;
bottom: 0;
width: 100%;
padding-block-start: .5rem;
color: var(--color-warning);
background-color: var(--color-warning-bg);
border-top: 4px solid var(--color-warning-border);
font-size: var(--fs-s);
text-align: center;
transform: translateY(100vh);
transition: all 130ms ease-out;
z-index: 99;

a {
color: inherit;
}
}

.button {
Expand Down
6 changes: 3 additions & 3 deletions layouts/partials/cookieconsent.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div class="cookieconsent layout__cookieconsent hidden">
<div class="cookieconsent__message">
{{ i18n "cookieconsent_message" }}
{{ with site.Params.privacyPolicyUrl }}<a href="{{ . }}">{{ i18n "privacy_policy" }}</a>{{ end }}
</div>
<div class="cookieconsent__actions">
<button class="button button--small button--cookieconsent button--decline" type="button" data-consent="false">{{ i18n "cookieconsent_decline" }}</button>
<button class="button button--small button--cookieconsent button--accept" type="button" data-consent="true">{{ i18n "cookieconsent_accept" }}</button>
<button class="button button--small button--decline" type="button" data-consent="false">{{ i18n "cookieconsent_decline" }}</button>
<button class="button button--small button--accept" type="button" data-consent="true">{{ i18n "cookieconsent_accept" }}</button>
{{ with site.Params.privacyPolicyUrl }}<a class="button button--small" href="{{ . }}">{{ i18n "privacy_policy" }}</a>{{ end }}
</div>
</div>

0 comments on commit 5ec7742

Please sign in to comment.