Files
nairobi/app/assets/stylesheets/budgets/single_heading.scss
Javi Martín 68927409b6 Fix text selection in budget heading
The `inverted-selection` rules defined in the `%brand-background`
selector weren't being applied because we were using this selector in
`::before` and `::after` pseudoelements. Not sure about the reason, but
it looks like the saturation of `::after::selection` pseudoelements
resulted in invalid selectors and so the inverted selection rules were
ignored for every selection using `%brand-background`, like
`%budget-header`.

Using `@include brand-background` instead of `@extend %brand-background`
in pseudoelements solves the issue. The inverted selection might not
work in these pseudoelements, but we don't need it there since these
pseudoelements don't have content.
2023-06-29 15:54:29 +02:00

24 lines
361 B
SCSS

.single-heading {
margin-bottom: $line-height * 2;
padding-bottom: $line-height;
position: relative;
&::after {
@include brand-background;
bottom: 0;
content: "";
height: rem-calc(6);
position: absolute;
width: 20%;
}
h2 {
font-size: rem-calc(60);
font-weight: normal;
}
p {
font-size: rem-calc(48);
}
}