Extract component for ballot investment
Using component inheritance we can remove duplication and share the same view.
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
@import "sticky_overrides";
|
||||
@import "tags";
|
||||
@import "admin/**/*";
|
||||
@import "budgets/*";
|
||||
@import "budgets/**/*";
|
||||
@import "sdg/**/*";
|
||||
@import "sdg_management/*";
|
||||
@import "sdg_management/**/*";
|
||||
|
||||
51
app/assets/stylesheets/budgets/ballot/investment.scss
Normal file
51
app/assets/stylesheets/budgets/ballot/investment.scss
Normal file
@@ -0,0 +1,51 @@
|
||||
.ballot-list li {
|
||||
background: #f9f9f9;
|
||||
line-height: $line-height;
|
||||
margin-bottom: $line-height / 4;
|
||||
padding: $line-height $line-height / 2;
|
||||
position: relative;
|
||||
|
||||
a {
|
||||
color: $text;
|
||||
}
|
||||
|
||||
span {
|
||||
display: block;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.remove-investment-project {
|
||||
display: block;
|
||||
height: 0;
|
||||
|
||||
.icon-x {
|
||||
color: #9f9f9f;
|
||||
font-size: rem-calc(24);
|
||||
line-height: $line-height / 2;
|
||||
position: absolute;
|
||||
right: 6px;
|
||||
text-decoration: none;
|
||||
top: 6px;
|
||||
|
||||
@include breakpoint(medium) {
|
||||
font-size: $base-font-size;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: $budget;
|
||||
color: #fff;
|
||||
|
||||
a,
|
||||
span {
|
||||
color: #fff;
|
||||
outline: 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.remove-investment-project .icon-x {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1321,58 +1321,6 @@
|
||||
.ballot-list {
|
||||
list-style: none;
|
||||
margin-left: 0;
|
||||
|
||||
li {
|
||||
background: #f9f9f9;
|
||||
line-height: $line-height;
|
||||
margin-bottom: $line-height / 4;
|
||||
padding: $line-height $line-height / 2;
|
||||
position: relative;
|
||||
|
||||
a {
|
||||
color: $text;
|
||||
}
|
||||
|
||||
span {
|
||||
display: block;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.remove-investment-project {
|
||||
display: block;
|
||||
height: 0;
|
||||
|
||||
.icon-x {
|
||||
color: #9f9f9f;
|
||||
font-size: rem-calc(24);
|
||||
line-height: $line-height / 2;
|
||||
position: absolute;
|
||||
right: 6px;
|
||||
text-decoration: none;
|
||||
top: 6px;
|
||||
|
||||
@include breakpoint(medium) {
|
||||
font-size: $base-font-size;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: $budget;
|
||||
color: #fff;
|
||||
|
||||
a,
|
||||
span {
|
||||
color: #fff;
|
||||
outline: 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.remove-investment-project .icon-x {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.select-district a {
|
||||
|
||||
Reference in New Issue
Block a user