This stylelint-scss rule is useful because we were inconsistent when
using calc(); sometimes we added interpolation to Sass variables, and
sometimes we didn't. The reason why we originally added interpolation
was that it was necessary until we migrated to Dart Sass in commit
d54971e53. Since then, we can omit the interpolation, which is also what
the Sass documentation recommends [1].
[1] https://sass-lang.com/documentation/values/calculations/
65 lines
1.0 KiB
SCSS
65 lines
1.0 KiB
SCSS
.account-menu.menu {
|
|
|
|
@include breakpoint(small only) {
|
|
margin-top: calc($line-height / 2);
|
|
|
|
&,
|
|
.menu {
|
|
border-bottom: 1px solid $border;
|
|
margin-bottom: $line-height;
|
|
padding-bottom: $line-height;
|
|
}
|
|
}
|
|
|
|
.is-dropdown-submenu {
|
|
@extend %body-colors;
|
|
margin: 0;
|
|
margin-top: rem-calc(-12);
|
|
padding: 0;
|
|
z-index: 9;
|
|
}
|
|
|
|
.is-submenu-item {
|
|
display: block;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
li {
|
|
display: block;
|
|
width: 100%;
|
|
|
|
@include breakpoint(medium) {
|
|
width: auto;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
line-height: inherit;
|
|
padding-left: 0;
|
|
|
|
@include breakpoint(medium) {
|
|
font-size: $small-font-size;
|
|
padding: rem-calc(8) rem-calc(16);
|
|
}
|
|
}
|
|
|
|
.button {
|
|
background: none;
|
|
text-align: left;
|
|
|
|
@include breakpoint(medium) {
|
|
@include brand-color;
|
|
background: $body-background;
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
.has-submenu {
|
|
|
|
&.is-active a {
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
}
|