mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 00:43:24 +08:00
137 lines
2.1 KiB
SCSS
137 lines
2.1 KiB
SCSS
/* Default badge styles. */
|
|
.user-badge {
|
|
padding: 3px 8px;
|
|
color: darken($primary, 40%);;
|
|
border: 1px solid lighten($primary, 60%);
|
|
font-size: $base-font-size * 0.86;
|
|
line-height: 19px;
|
|
margin: 0;
|
|
display: inline-block;
|
|
background-color: $secondary;
|
|
margin-bottom: 3px;
|
|
|
|
.fa {
|
|
padding-right: 3px;
|
|
font-size: 1.4em;
|
|
vertical-align: bottom;
|
|
}
|
|
|
|
img {
|
|
height: 16px;
|
|
width: 16px;
|
|
}
|
|
|
|
&.badge-type-gold .fa {
|
|
color: #ffd700;
|
|
}
|
|
|
|
&.badge-type-silver .fa {
|
|
color: #c0c0c0;
|
|
}
|
|
|
|
&.badge-type-bronze .fa {
|
|
color: #cd7f32;
|
|
}
|
|
}
|
|
|
|
/* User badge listing. */
|
|
.user-badges-list {
|
|
text-align: center;
|
|
|
|
.user-badge {
|
|
max-width: 80px;
|
|
text-align: center;
|
|
vertical-align: top;
|
|
margin: 10px;
|
|
border: none;
|
|
|
|
.fa {
|
|
display: block;
|
|
font-size: 50px;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
img {
|
|
display: inline-block;
|
|
width: 55px;
|
|
height: 55px;
|
|
}
|
|
|
|
.count {
|
|
display: block;
|
|
font-size: 0.8em;
|
|
color: scale-color($primary, $lightness: 50%);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Badge listing in /badges. */
|
|
table.badges-listing {
|
|
margin: 20px 0;
|
|
border-bottom: 1px solid scale-color-diff();
|
|
|
|
.user-badge {
|
|
font-size: $base-font-size;
|
|
}
|
|
|
|
td {
|
|
padding: 10px 20px;
|
|
}
|
|
|
|
td.grant-count {
|
|
font-size: 0.8em;
|
|
color: $primary;
|
|
text-align: right;
|
|
}
|
|
|
|
td.badge, td.grant-count {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
tr {
|
|
border-top: 1px solid scale-color-diff();
|
|
}
|
|
}
|
|
|
|
/* /badges/:id/:slug page styling. */
|
|
.show-badge {
|
|
.badge-user {
|
|
text-align: center;
|
|
width: 100px;
|
|
padding: 5px 10px;
|
|
margin-bottom: 10px;
|
|
display: inline-block;
|
|
|
|
.details {
|
|
margin: 0 10px;
|
|
padding-top: 3px;
|
|
color: $primary;
|
|
}
|
|
|
|
.date {
|
|
display: block;
|
|
color: lighten($primary, 40%);
|
|
font-size: 10px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.show-badge .user-badge-with-posts .badge-user {
|
|
width: 400px;
|
|
|
|
.badge-info {
|
|
width: 100px;
|
|
display: block;
|
|
float: left;
|
|
}
|
|
|
|
.post-link {
|
|
width: 250px;
|
|
display: block;
|
|
float: left;
|
|
margin-top: 67px;
|
|
margin-left: 18px;
|
|
text-align: left;
|
|
}
|
|
}
|