Skip to content

Commit 3b51de8

Browse files
committed
fix(badges): CSS changes
1 parent d6bdc4d commit 3b51de8

File tree

3 files changed

+32
-38
lines changed

3 files changed

+32
-38
lines changed

style.css

+14-18
Original file line numberDiff line numberDiff line change
@@ -2765,29 +2765,22 @@ ul {
27652765
padding: 2px 8px;
27662766
vertical-align: middle;
27672767
white-space: nowrap;
2768-
display: inline-block;
2769-
margin-left: 10px;
2770-
margin-right: 2px;
2771-
}
2772-
2773-
[dir="rtl"] .community-badge-titles {
2774-
margin-right: 10px;
2775-
margin-left: 2px;
2768+
display: inline-flex;
2769+
line-height: 20px;
2770+
margin: 0 2px;
27762771
}
27772772

27782773
.community-badge-container-achievements {
2779-
margin-top: 5px;
2774+
padding-top: 5px;
27802775
}
27812776

27822777
.community-badge-achievements {
27832778
display: inline-block;
2784-
margin-left: 0px;
2785-
margin-right: 5px;
2779+
margin: 0 3px 0 0;
27862780
}
27872781

27882782
[dir="rtl"] .community-badge-achievements {
2789-
margin-right: 0px;
2790-
margin-left: 0px;
2783+
margin: 0 0 0 3px;
27912784
}
27922785

27932786
.community-badge-achievements img {
@@ -2796,11 +2789,8 @@ ul {
27962789
}
27972790

27982791
.community-badge-titles img {
2799-
width: 1.6em;
2800-
height: 1.6em;
2801-
margin-top: -0.2em;
2802-
margin-bottom: -0.2em;
2803-
vertical-align: text-bottom;
2792+
width: 20px;
2793+
height: 20px;
28042794
}
28052795

28062796
.profile-info .community-badge-achievements img {
@@ -3654,6 +3644,7 @@ ul {
36543644

36553645
.profile-header .basic-info .name {
36563646
margin: 0;
3647+
line-height: 25px;
36573648
}
36583649

36593650
.profile-header .options {
@@ -3957,6 +3948,11 @@ ul {
39573948
max-height: 40px;
39583949
}
39593950

3951+
[dir="rtl"] .profile-badges-item-image {
3952+
margin-left: 12px;
3953+
margin-right: 0;
3954+
}
3955+
39603956
.profile-badges-item-title, .profile-badges-item-metadata-title {
39613957
font-size: 15px;
39623958
margin-bottom: 10px;

styles/_community_badge.scss

+8-18
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,22 @@
99
padding: 2px 8px;
1010
vertical-align: middle;
1111
white-space: nowrap;
12-
display: inline-block;
13-
margin-left: 10px;
14-
margin-right: 2px;
15-
}
16-
17-
[dir="rtl"] .community-badge-titles {
18-
margin-right: 10px;
19-
margin-left: 2px;
12+
display: inline-flex;
13+
line-height: 20px;
14+
margin: 0 2px;
2015
}
2116

2217
.community-badge-container-achievements {
23-
margin-top: 5px;
18+
padding-top: 5px;
2419
}
2520

2621
.community-badge-achievements {
2722
display: inline-block;
28-
margin-left: 0px;
29-
margin-right: 5px;
23+
margin: 0 3px 0 0;
3024
}
3125

3226
[dir="rtl"] .community-badge-achievements {
33-
margin-right: 0px;
34-
margin-left: 0px;
27+
margin: 0 0 0 3px;
3528
}
3629

3730
.community-badge-achievements img {
@@ -40,11 +33,8 @@
4033
}
4134

4235
.community-badge-titles img {
43-
width: 1.6em;
44-
height: 1.6em;
45-
margin-top: -0.2em;
46-
margin-bottom: -0.2em;
47-
vertical-align: text-bottom;
36+
width: 20px;
37+
height: 20px;
4838
}
4939

5040
.profile-info .community-badge-achievements img {

styles/_user-profiles.scss

+10-2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656

5757
.name {
5858
margin: 0;
59+
line-height: 25px;
5960
}
6061
}
6162

@@ -345,9 +346,15 @@
345346
img {
346347
max-height: 40px;
347348
}
349+
350+
[dir="rtl"] & {
351+
margin-left: 12px;
352+
margin-right: 0;
353+
}
348354
}
349355

350-
&-title, &-metadata-title {
356+
&-title,
357+
&-metadata-title {
351358
font-size: $font-size-base;
352359
margin-bottom: 10px;
353360
}
@@ -356,7 +363,8 @@
356363
font-weight: $font-weight-semibold;
357364
}
358365

359-
&-description, &-metadata-description {
366+
&-description,
367+
&-metadata-description {
360368
color: $secondary-text-color;
361369
font-size: $font-size-small;
362370
margin: 0;

0 commit comments

Comments
 (0)