discourse/app/assets/stylesheets/common/base/user-badges.scss

166 lines
2.5 KiB
SCSS
Raw Normal View History

2014-04-16 14:49:28 -04:00
/* Default badge styles. */
2014-04-16 06:02:57 -04:00
.user-badge {
padding: 3px 8px;
2014-08-06 09:31:13 -04:00
color: $primary;
border: 1px solid dark-light-diff($primary, $secondary, 90%, -65%);
2014-06-19 14:04:23 -04:00
line-height: 19px;
2014-04-16 06:02:57 -04:00
margin: 0;
display: inline-block;
background-color: $secondary;
2014-06-07 14:47:33 -04:00
margin-bottom: 3px;
2014-04-16 06:02:57 -04:00
.fa {
padding-right: 3px;
font-size: 1.4em;
vertical-align: bottom;
2014-04-16 06:02:57 -04:00
}
img {
height: 16px;
width: 16px;
}
2014-04-16 06:02:57 -04:00
&.badge-type-gold .fa {
color: #ffd700;
}
&.badge-type-silver .fa {
color: #c0c0c0;
}
&.badge-type-bronze .fa {
color: #cd7f32;
}
}
2014-04-16 14:49:28 -04:00
/* 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: 3.571em;
2014-04-16 14:49:28 -04:00
margin-bottom: 5px;
}
2014-05-21 03:22:42 -04:00
img {
display: inline-block;
width: 55px;
height: 55px;
}
2014-05-21 03:22:42 -04:00
.count {
display: block;
font-size: 0.8em;
color: scale-color($primary, $lightness: 50%);
}
2014-04-16 14:49:28 -04:00
}
}
/* Badge listing in /badges. */
table.badges-listing {
2014-04-16 10:56:11 -04:00
margin: 20px 0;
2014-06-19 14:04:23 -04:00
border-bottom: 1px solid scale-color-diff();
width: 90%;
.user-badge {
font-size: $base-font-size;
}
tr.title td {
padding-top: 30px;
padding-bottom: 15px;
}
tr.title {
border-top: 0px solid;
}
td {
padding: 10px 0px;
}
td.granted{
color: $success;
font-size: 120%;
}
td.grant-count {
text-align: center;
color: scale-color($primary, $lightness: 40%);
font-size: 120%;
}
td.badge, td.grant-count {
white-space: nowrap;
padding-right: 10px;
}
td.info {
font-size: 0.9em;
text-align: right;
}
td.description {
}
tr {
2014-06-19 14:04:23 -04:00
border-top: 1px solid scale-color-diff();
}
}
/* /badges/:id/:slug page styling. */
.show-badge {
.badge-user {
2014-05-15 21:08:06 -04:00
text-align: center;
width: 100px;
padding: 5px 10px;
2014-05-15 21:08:06 -04:00
margin-bottom: 10px;
display: inline-block;
.details {
margin: 0 10px;
padding-top: 3px;
2014-05-15 21:08:06 -04:00
color: $primary;
}
2014-05-15 21:08:06 -04:00
.date {
display: block;
2014-05-15 21:08:06 -04:00
color: lighten($primary, 40%);
font-size: 0.714em;
}
}
}
.show-badge .user-badge-with-posts .badge-user {
width: 45%;
padding: 0 0 0 4%;
margin-bottom: 20px;
2015-03-04 22:15:21 -05:00
.badge-info {
width: 100px;
display: block;
float: left;
}
.post-link {
width: 250px;
display: block;
float: left;
margin-left: 18px;
text-align: left;
}
}
.long-description.banner {
width: 88%;
margin-bottom: 20px;
}