Extract placeholder selector for budget header

This way it'll be easier to reuse its main properties.
This commit is contained in:
Javi Martín
2021-08-06 23:44:21 +02:00
parent c6b23bb6fa
commit 297956b579
3 changed files with 30 additions and 21 deletions

View File

@@ -0,0 +1,26 @@
@import "mixins/buttons";
@import "mixins/layouts";
%budget-header {
@extend %brand-background;
@include full-width-background;
h1 {
font-size: rem-calc(60);
padding: $line-height * 2 0 $line-height;
}
h1,
h2,
p,
a,
.back,
.icon-angle-left,
.description {
color: inherit;
}
a {
text-decoration: underline;
}
}

View File

@@ -1,3 +1,5 @@
@import "mixins/colors";
@mixin base-button { @mixin base-button {
font-size: $base-font-size; font-size: $base-font-size;

View File

@@ -1095,8 +1095,8 @@
// ----------- // -----------
.budget-header { .budget-header {
@extend %brand-background; @extend %budget-header;
@include full-width-background;
margin-top: -$line-height; margin-top: -$line-height;
min-height: $line-height * 25; min-height: $line-height * 25;
padding-bottom: $line-height; padding-bottom: $line-height;
@@ -1122,25 +1122,6 @@
} }
} }
h1 {
font-size: rem-calc(60);
padding: $line-height * 2 0 $line-height;
}
h1,
h2,
p,
a,
.back,
.icon-angle-left,
.description {
color: inherit;
}
a {
text-decoration: underline;
}
.confirmed { .confirmed {
font-size: rem-calc(24); font-size: rem-calc(24);
font-weight: bold; font-weight: bold;