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 {
|
||||
float: right;
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
line-height: $line-height * 2;
|
||||
|
||||
@include breakpoint(medium) {
|
||||
display: block;
|
||||
float: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
.in-favor-against {
|
||||
@include flex-with-gap($line-height * 0.25);
|
||||
|
||||
@include breakpoint(medium) {
|
||||
@include flex-with-gap($line-height * 0.75);
|
||||
}
|
||||
@include flex-with-gap($line-height * 0.75);
|
||||
|
||||
&,
|
||||
.in-favor,
|
||||
@@ -77,16 +73,8 @@
|
||||
}
|
||||
|
||||
.percentage {
|
||||
display: inline-block;
|
||||
display: block;
|
||||
font-size: $small-font-size;
|
||||
line-height: $line-height * 2;
|
||||
padding-right: calc($line-height / 2);
|
||||
vertical-align: top;
|
||||
|
||||
@include breakpoint(medium) {
|
||||
display: block;
|
||||
line-height: $line-height;
|
||||
padding-right: 0;
|
||||
}
|
||||
line-height: $line-height;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user