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:
Javi Martín
2025-03-07 15:55:30 +01:00
parent 11816f833d
commit 1389d45646
2 changed files with 4 additions and 21 deletions

View File

@@ -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;
}
} }
} }
} }

View File

@@ -1,9 +1,5 @@
.in-favor-against { .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, .in-favor,
@@ -77,16 +73,8 @@
} }
.percentage { .percentage {
display: inline-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; display: block;
font-size: $small-font-size;
line-height: $line-height; line-height: $line-height;
padding-right: 0;
}
} }
} }