Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/clarity-consent.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
banner.setAttribute("role", "dialog");
banner.setAttribute("aria-label", "Cookie consent");
banner.innerHTML =
'<p>This site uses cookies via Microsoft Clarity to understand how visitors use Data Privacy Stack. ' +
'<p>Clarity analytics cookies. ' +
'<a href="https://learn.microsoft.com/en-us/clarity/setup-and-installation/clarity-cookies" target="_blank" rel="noopener">Learn more</a></p>' +
'<div class="consent-buttons">' +
'<button type="button" id="cookie-consent-decline">Decline</button>' +
Expand Down
27 changes: 24 additions & 3 deletions src/styles/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,30 @@
}

@media (max-width: 520px) {
#cookie-consent-banner,
#cookie-consent-banner {
right: 0.5rem;
bottom: 0.5rem;
left: 0.5rem;
flex-wrap: nowrap;
justify-content: space-between;
gap: 0.45rem;
width: auto;
padding: 0.45rem;
font-size: 0.76rem;
line-height: 1.25;
border-radius: 12px;
}

#cookie-consent-banner p {
flex: 1 1 9rem;
}

#cookie-consent-banner .consent-buttons {
align-items: stretch;
flex-direction: column;
gap: 0.35rem;
}

#cookie-consent-banner button {
min-height: 40px;
padding: 0.35rem 0.65rem;
}
}
Loading