Extract budget phases to a component

This commit is contained in:
Javi Martín
2021-02-17 15:00:34 +01:00
parent 4f4b2643a7
commit 46e80bf430
6 changed files with 69 additions and 61 deletions

View File

@@ -32,6 +32,7 @@
@import "sticky_overrides";
@import "tags";
@import "admin/**/*";
@import "budgets/*";
@import "sdg/**/*";
@import "sdg_management/*";
@import "sdg_management/**/*";

View File

@@ -0,0 +1,56 @@
.budget-phases {
border-left: 3px solid $budget;
margin-left: $line-height / 2;
padding: $line-height $line-height / 2;
h3,
span,
p {
padding: 0 $line-height / 4;
}
h3 {
margin-bottom: 0;
}
span {
color: $text-medium;
display: block;
font-size: $small-font-size;
margin-bottom: $line-height / 2;
}
.phase {
position: relative;
&:not(:first-child) {
margin-top: $line-height * 1.5;
}
&::before {
background-color: #fff;
border: 4px solid $budget;
border-radius: 100%;
content: "";
height: 16px;
left: -22px;
position: absolute;
top: 6px;
width: 16px;
z-index: 99;
}
&.is-active {
h3 {
background: $budget;
color: #fff;
display: inline-block;
}
&::before {
background-color: $budget;
}
}
}
}

View File

@@ -1467,63 +1467,6 @@
}
}
.budget-timeline {
border-left: 3px solid $budget;
margin-left: $line-height / 2;
padding: $line-height $line-height / 2;
h3,
span,
p {
padding: 0 $line-height / 4;
}
h3 {
margin-bottom: 0;
}
span {
color: $text-medium;
display: block;
font-size: $small-font-size;
margin-bottom: $line-height / 2;
}
.phase {
position: relative;
&:not(:first-child) {
margin-top: $line-height * 1.5;
}
&::before {
background-color: #fff;
border: 4px solid $budget;
border-radius: 100%;
content: "";
height: 16px;
left: -22px;
position: absolute;
top: 6px;
width: 16px;
z-index: 99;
}
&.is-active {
h3 {
background: $budget;
color: #fff;
display: inline-block;
}
&::before {
background-color: $budget;
}
}
}
}
.budgets-stats {
.header {