Files
nairobi/app/assets/stylesheets/layout/cookies_consent_banner.scss
Javi Martín f3fe1ac6c1 Fix Sass warnings in divisions without calc()
We forgot to add the `calc()` function in commits 4c0b6455f, 390c749d2
and dc54fda71.

We were getting a warning when compiling the assets without the
`quiet_deps` option:

```
DEPRECATION WARNING: Using / for division outside of calc() is
deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($line-height, 3) or calc($line-height / 3)

More info and automated migrator: https://sass-lang.com/d/slash-div
```
2025-03-05 14:34:40 +01:00

32 lines
604 B
SCSS

.cookies-consent-banner {
@include brand-border;
background: inherit;
bottom: calc($line-height / 3);
left: calc($line-height / 3);
padding: 2rem;
position: fixed;
right: calc($line-height / 3);
z-index: 20;
button {
@include breakpoint(small only) {
display: block;
width: 100%;
}
&.accept-all-cookies,
&.accept-essential-cookies {
@include regular-button;
margin-bottom: 0;
@include breakpoint(small only) {
margin-bottom: calc($line-height / 3);
}
}
&.manage-cookies {
@include hollow-button;
}
}
}