Simplify HTML class for budget header

There were some issues using `.budget.expanded`, like a link having that
class which would force us to a `:not(.button)` selector or similar,
making the CSS more complex.
This commit is contained in:
Javi Martín
2021-03-09 20:04:16 +01:00
parent 909071c48b
commit 1d42fe54f0
7 changed files with 43 additions and 46 deletions

View File

@@ -2155,7 +2155,7 @@ table {
}
}
+ .budget.expanded,
+ .budget-header,
+ .jumbo {
margin-top: 0;
}

View File

@@ -1136,51 +1136,48 @@
// 06. Budgets
// -----------
.expanded {
.budget-header {
background: $budget;
margin-top: -$line-height;
&.budget {
background: $budget;
margin-top: -$line-height;
h1,
h2,
p,
a,
.back,
.icon-angle-left,
.description {
color: #fff;
}
h1,
h2,
p,
a,
.back,
.icon-angle-left,
.description {
color: #fff;
a {
text-decoration: underline;
}
.callout {
&.primary a {
color: $link;
}
}
a {
text-decoration: underline;
}
.button {
background: #fff;
color: $budget;
text-decoration: none;
}
.callout {
.confirmed {
font-size: rem-calc(24);
font-weight: bold;
}
&.primary a {
color: $link;
}
}
.info {
background: #6a2a72;
.button {
background: #fff;
color: $budget;
text-decoration: none;
}
.confirmed {
font-size: rem-calc(24);
font-weight: bold;
}
.info {
background: #6a2a72;
p {
margin-bottom: 0;
text-transform: uppercase;
}
p {
margin-bottom: 0;
text-transform: uppercase;
}
}
}