-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #260 from zendesk/avecerek-COMM-1046-badge-widget
feat: implement +n badge widget
- Loading branch information
Showing
5 changed files
with
229 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,81 @@ | ||
/***** Community Badges *****/ | ||
/* Styles labels used next to the authors of article comments, community posts, and community comments */ | ||
.community-badge-titles { | ||
.community-badge-title { | ||
background-color: #04444d; | ||
border-radius: 4px; | ||
color: #fff; | ||
font-size: 12px; | ||
font-weight: $font-weight-semibold; | ||
padding: 2px 8px; | ||
vertical-align: middle; | ||
padding: 0px 8px; | ||
vertical-align: top; | ||
white-space: nowrap; | ||
display: inline-flex; | ||
line-height: 18px; | ||
vertical-align: middle; | ||
} | ||
|
||
.profile-info .community-badge-title { | ||
padding: 2px 8px; | ||
line-height: 20px; | ||
margin: 0 2px; | ||
} | ||
|
||
.community-badge-container-achievements { | ||
padding-top: 5px; | ||
display: flex; | ||
} | ||
|
||
.community-badge-container-achievements > .community-badge-titles { | ||
margin-left: calc(28px - 0.5em); | ||
} | ||
|
||
[dir="rtl"] .community-badge-container-achievements > .community-badge-titles { | ||
margin-right: calc(28px - 0.5em); | ||
} | ||
|
||
.community-name-and-title-badges { | ||
display: flex; | ||
flex-wrap: wrap; | ||
} | ||
|
||
.community-badge { | ||
margin: 2px; | ||
} | ||
|
||
.community-badge-achievements { | ||
display: inline-block; | ||
margin: 0 3px 0 0; | ||
display: block; | ||
height: 16px; | ||
white-space: nowrap; | ||
width: 16px; | ||
} | ||
|
||
[dir="rtl"] .community-badge-achievements { | ||
margin: 0 0 0 3px; | ||
.profile-info .community-badge-achievements { | ||
height: 40px; | ||
width: 40px; | ||
} | ||
|
||
.community-title-badges { | ||
flex-basis: 100%; | ||
margin-top: 15px; | ||
} | ||
|
||
.community-badge-achievements-rest { | ||
font-size: 12px; | ||
font-weight: $font-weight-semibold; | ||
line-height: 20px; | ||
text-align: center; | ||
vertical-align: top; | ||
} | ||
|
||
.community-badge-achievements img { | ||
width: 22px; | ||
height: 22px; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.community-badge-titles img { | ||
width: 20px; | ||
height: 20px; | ||
} | ||
|
||
.profile-info .community-badge-achievements img { | ||
width: 40px; | ||
height: 40px; | ||
.profile-info .community-badge-achievements-rest { | ||
line-height: 40px; | ||
font-size: 20px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.