From ad727cd739e9222743b05faf4043b9ef40a91dbe Mon Sep 17 00:00:00 2001 From: Daniel Kraus Date: Sun, 14 Jun 2026 23:14:56 +0200 Subject: [PATCH] Fix styling. --- assets/js/hugo_cookie_consent/cookie_consent.js | 2 +- assets/scss/hugo_cookie_consent/style.scss | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/assets/js/hugo_cookie_consent/cookie_consent.js b/assets/js/hugo_cookie_consent/cookie_consent.js index fd06fe4..2573f97 100644 --- a/assets/js/hugo_cookie_consent/cookie_consent.js +++ b/assets/js/hugo_cookie_consent/cookie_consent.js @@ -48,4 +48,4 @@ if (localStorage.getItem(KEY) === 'accepted') { if (typeof window.trackVisit === 'function') window.trackVisit(); } -})(); \ No newline at end of file +})(); diff --git a/assets/scss/hugo_cookie_consent/style.scss b/assets/scss/hugo_cookie_consent/style.scss index 14795b8..4d24727 100644 --- a/assets/scss/hugo_cookie_consent/style.scss +++ b/assets/scss/hugo_cookie_consent/style.scss @@ -3,8 +3,8 @@ top: 2.5rem; left: 50%; transform: translateX(-50%); - width: min(480px, calc(100vw - 2rem)); - background: #fff; + width: calc(100vw - 2rem); + max-width: 480px; border: 1px solid #e2e2e2; border-radius: 12px; padding: 1rem 1.25rem; @@ -37,3 +37,6 @@ background: #0b913a; color: #fff; border-color: #1a1a1a; } +#cookie-decline { + background: #272b2e; color: #fff; border-color: #1a1a1a; +}