Extract budget phases to a component
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
@import "sticky_overrides";
|
||||
@import "tags";
|
||||
@import "admin/**/*";
|
||||
@import "budgets/*";
|
||||
@import "sdg/**/*";
|
||||
@import "sdg_management/*";
|
||||
@import "sdg_management/**/*";
|
||||
|
||||
56
app/assets/stylesheets/budgets/phases.scss
Normal file
56
app/assets/stylesheets/budgets/phases.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user