Simplify debates and proposals feed layout

Using the `:only-child` selector we can adjust widths with CSS and don't
have to rely on methods calculating which features are available.
This commit is contained in:
Javi Martín
2020-12-19 21:03:14 +01:00
parent 330efe5a41
commit 98aea588e5
7 changed files with 22 additions and 21 deletions

View File

@@ -0,0 +1,20 @@
.feeds-participation {
.feed-debates,
.feed-proposals {
@include grid-col;
margin-top: $line-height;
}
.feed-proposals:not(:only-child) {
@include breakpoint(medium) {
width: 2 * 100% / 3;
}
}
.feed-debates:not(:only-child) {
@include breakpoint(medium) {
width: 1 * 100% / 3;
}
}
}