Skip to content

Commit

Permalink
fix(badges): CSS changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Anifacted committed Aug 31, 2020
1 parent d6bdc4d commit 3b51de8
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 38 deletions.
32 changes: 14 additions & 18 deletions style.css
Expand Up @@ -2765,29 +2765,22 @@ ul {
padding: 2px 8px;
vertical-align: middle;
white-space: nowrap;
display: inline-block;
margin-left: 10px;
margin-right: 2px;
}

[dir="rtl"] .community-badge-titles {
margin-right: 10px;
margin-left: 2px;
display: inline-flex;
line-height: 20px;
margin: 0 2px;
}

.community-badge-container-achievements {
margin-top: 5px;
padding-top: 5px;
}

.community-badge-achievements {
display: inline-block;
margin-left: 0px;
margin-right: 5px;
margin: 0 3px 0 0;
}

[dir="rtl"] .community-badge-achievements {
margin-right: 0px;
margin-left: 0px;
margin: 0 0 0 3px;
}

.community-badge-achievements img {
Expand All @@ -2796,11 +2789,8 @@ ul {
}

.community-badge-titles img {
width: 1.6em;
height: 1.6em;
margin-top: -0.2em;
margin-bottom: -0.2em;
vertical-align: text-bottom;
width: 20px;
height: 20px;
}

.profile-info .community-badge-achievements img {
Expand Down Expand Up @@ -3654,6 +3644,7 @@ ul {

.profile-header .basic-info .name {
margin: 0;
line-height: 25px;
}

.profile-header .options {
Expand Down Expand Up @@ -3957,6 +3948,11 @@ ul {
max-height: 40px;
}

[dir="rtl"] .profile-badges-item-image {
margin-left: 12px;
margin-right: 0;
}

.profile-badges-item-title, .profile-badges-item-metadata-title {
font-size: 15px;
margin-bottom: 10px;
Expand Down
26 changes: 8 additions & 18 deletions styles/_community_badge.scss
Expand Up @@ -9,29 +9,22 @@
padding: 2px 8px;
vertical-align: middle;
white-space: nowrap;
display: inline-block;
margin-left: 10px;
margin-right: 2px;
}

[dir="rtl"] .community-badge-titles {
margin-right: 10px;
margin-left: 2px;
display: inline-flex;
line-height: 20px;
margin: 0 2px;
}

.community-badge-container-achievements {
margin-top: 5px;
padding-top: 5px;
}

.community-badge-achievements {
display: inline-block;
margin-left: 0px;
margin-right: 5px;
margin: 0 3px 0 0;
}

[dir="rtl"] .community-badge-achievements {
margin-right: 0px;
margin-left: 0px;
margin: 0 0 0 3px;
}

.community-badge-achievements img {
Expand All @@ -40,11 +33,8 @@
}

.community-badge-titles img {
width: 1.6em;
height: 1.6em;
margin-top: -0.2em;
margin-bottom: -0.2em;
vertical-align: text-bottom;
width: 20px;
height: 20px;
}

.profile-info .community-badge-achievements img {
Expand Down
12 changes: 10 additions & 2 deletions styles/_user-profiles.scss
Expand Up @@ -56,6 +56,7 @@

.name {
margin: 0;
line-height: 25px;
}
}

Expand Down Expand Up @@ -345,9 +346,15 @@
img {
max-height: 40px;
}

[dir="rtl"] & {
margin-left: 12px;
margin-right: 0;
}
}

&-title, &-metadata-title {
&-title,
&-metadata-title {
font-size: $font-size-base;
margin-bottom: 10px;
}
Expand All @@ -356,7 +363,8 @@
font-weight: $font-weight-semibold;
}

&-description, &-metadata-description {
&-description,
&-metadata-description {
color: $secondary-text-color;
font-size: $font-size-small;
margin: 0;
Expand Down

0 comments on commit 3b51de8

Please sign in to comment.