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:
20
app/assets/stylesheets/widgets/feeds/participation.scss
Normal file
20
app/assets/stylesheets/widgets/feeds/participation.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user