Simplify like/unlike buttons styles on small screens
Since we're now using a flex layout, the styles are more robust when we keep the percentages below each button even on small screens.
This commit is contained in:
@@ -605,14 +605,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.total-votes {
|
.total-votes {
|
||||||
float: right;
|
display: block;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
line-height: $line-height * 2;
|
line-height: $line-height * 2;
|
||||||
|
|
||||||
@include breakpoint(medium) {
|
|
||||||
display: block;
|
|
||||||
float: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
.in-favor-against {
|
.in-favor-against {
|
||||||
@include flex-with-gap($line-height * 0.25);
|
@include flex-with-gap($line-height * 0.75);
|
||||||
|
|
||||||
@include breakpoint(medium) {
|
|
||||||
@include flex-with-gap($line-height * 0.75);
|
|
||||||
}
|
|
||||||
|
|
||||||
&,
|
&,
|
||||||
.in-favor,
|
.in-favor,
|
||||||
@@ -77,16 +73,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.percentage {
|
.percentage {
|
||||||
display: inline-block;
|
display: block;
|
||||||
font-size: $small-font-size;
|
font-size: $small-font-size;
|
||||||
line-height: $line-height * 2;
|
line-height: $line-height;
|
||||||
padding-right: calc($line-height / 2);
|
|
||||||
vertical-align: top;
|
|
||||||
|
|
||||||
@include breakpoint(medium) {
|
|
||||||
display: block;
|
|
||||||
line-height: $line-height;
|
|
||||||
padding-right: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user