Files
grecia/app/assets/stylesheets/layout/cookies_consent_management.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

81 lines
1.3 KiB
SCSS

.cookies-consent-management {
border-radius: 0.75rem;
@include breakpoint(medium) {
width: 50%;
}
header {
display: flex;
justify-content: space-between;
}
.close-button {
@include modal-close-button;
}
.buttons {
border-top: 1px solid $medium-gray;
margin-top: $line-height;
padding-top: $line-height;
}
button {
@include breakpoint(small only) {
display: block;
width: 100%;
}
&.accept-all-cookies,
&.accept-essential-cookies {
@include regular-button;
margin-bottom: 0;
}
&.accept-all-cookies {
@include breakpoint(small only) {
margin-bottom: calc($line-height / 3);
}
}
&.save-cookies-preferences {
@include hollow-button;
}
}
.save-preferences {
text-align: #{$global-right};
}
.cookies-essentials,
.cookies-vendors {
ul {
list-style: none;
margin-#{$global-left}: 0;
li {
display: flex;
gap: $line-height;
justify-content: space-between;
padding: calc($line-height / 3);
&:nth-child(odd) {
background: #efefef;
}
}
}
.switch {
margin-top: calc($line-height / 3);
&:focus-within {
@include focus-outline;
}
}
p {
margin-bottom: 0;
}
}
}