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/
43 lines
857 B
SCSS
43 lines
857 B
SCSS
.admin .budgets-help {
|
|
$padding: $line-height * 0.5;
|
|
$quote-size: 1em;
|
|
$quote-padding: $quote-size * 0.4;
|
|
$quote-width: $quote-size + 2 * $quote-padding;
|
|
|
|
@include has-fa-icon(quote-right, solid, after);
|
|
background: $table-header;
|
|
border-radius: rem-calc(6);
|
|
clear: both;
|
|
color: $admin-text;
|
|
margin-bottom: $line-height;
|
|
padding: $padding;
|
|
padding-right: calc(2 * $padding + $quote-width);
|
|
position: relative;
|
|
|
|
@include breakpoint(medium) {
|
|
width: 50%;
|
|
}
|
|
|
|
p {
|
|
font-size: $small-font-size;
|
|
font-style: italic;
|
|
}
|
|
|
|
&::before {
|
|
background: #ccd8e4;
|
|
content: "";
|
|
height: 100%;
|
|
position: absolute;
|
|
right: $padding;
|
|
top: 0;
|
|
width: $quote-width;
|
|
}
|
|
|
|
&::after {
|
|
bottom: calc($padding / 2);
|
|
color: $white;
|
|
position: absolute;
|
|
right: calc($padding + $quote-padding);
|
|
}
|
|
}
|