Skip to content

A platform for community discussion. Free, open, simple.

Adding space between badges for medium-sized viewports

Kris4cc0a3503b03
diff --git a/app/assets/stylesheets/common/base/user-badges.scss b/app/assets/stylesheets/common/base/user-badges.scss
index 1ac4bab3ecb..332189afb99 100644
--- a/app/assets/stylesheets/common/base/user-badges.scss
+++ b/app/assets/stylesheets/common/base/user-badges.scss
@@ -206,15 +206,19 @@
}
&.medium {
- vertical-align: top;
- flex: 0 0 32%;
+ flex: 0 0 auto;
+ width: 32%;
margin-right: calc(2% - 3px);
- &:nth-of-type(3n) {
- margin-right: 0;
+ @media screen and (min-width: 851px) {
+ &:nth-of-type(3n) {
+ margin-right: 0;
+ }
}
@include breakpoint(medium) {
- flex: 0 0 49%;
- margin-right: 0;
+ width: 48.5%;
+ &:nth-of-type(2n) {
+ margin-right: 0;
+ }
}
@include breakpoint(mobile) {
flex: 0 0 100%;
@@ -225,9 +229,6 @@
&:active {
box-shadow: none;
}
- @include breakpoint(mobile-small) {
- width: 100%;
- }
}
&.large {
width: 100%;