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-05-06 01:50:51 -04:00
|
|
|
color: darken($primary, 40%);;
|
|
|
|
border: 1px solid lighten($primary, 60%);
|
2014-04-16 09:12:06 -04:00
|
|
|
font-size: $base-font-size * 0.86;
|
2014-04-16 06:02:57 -04:00
|
|
|
line-height: 16px;
|
|
|
|
margin: 0;
|
|
|
|
display: inline-block;
|
2014-05-06 01:50:51 -04:00
|
|
|
background-color: $secondary;
|
2014-04-16 06:02:57 -04:00
|
|
|
|
|
|
|
.fa {
|
2014-04-16 09:12:06 -04:00
|
|
|
padding-right: 3px;
|
|
|
|
font-size: 1.4em;
|
|
|
|
vertical-align: bottom;
|
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 09:12:06 -04:00
|
|
|
|
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: 50px;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Badge listing in /badges. */
|
2014-04-16 09:12:06 -04:00
|
|
|
table.badges-listing {
|
2014-04-16 10:56:11 -04:00
|
|
|
margin: 20px 0;
|
2014-05-06 01:50:51 -04:00
|
|
|
border-bottom: 1px solid $primary;
|
2014-04-16 09:12:06 -04:00
|
|
|
|
|
|
|
.user-badge {
|
|
|
|
font-size: $base-font-size;
|
|
|
|
}
|
|
|
|
|
|
|
|
td {
|
|
|
|
padding: 10px 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
td.grant-count {
|
|
|
|
font-size: 0.8em;
|
2014-05-06 01:50:51 -04:00
|
|
|
color: $primary;
|
2014-04-17 23:49:10 -04:00
|
|
|
text-align: right;
|
2014-04-16 09:12:06 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
td.badge, td.grant-count {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
tr {
|
2014-05-06 01:50:51 -04:00
|
|
|
border-top: 1px solid $primary;
|
2014-04-16 09:12:06 -04:00
|
|
|
}
|
|
|
|
}
|
2014-04-22 02:19:31 -04:00
|
|
|
|
|
|
|
/* /badges/:id/:slug page styling. */
|
|
|
|
.show-badge {
|
|
|
|
.badge-user {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 5px 10px;
|
2014-05-06 01:50:51 -04:00
|
|
|
border: 1px solid lighten($primary, 60%);
|
2014-04-22 02:19:31 -04:00
|
|
|
margin-bottom: 3px;
|
|
|
|
|
|
|
|
.details {
|
|
|
|
float: right;
|
|
|
|
margin: 0 10px;
|
|
|
|
padding-top: 3px;
|
2014-05-06 01:50:51 -04:00
|
|
|
color: darken($primary, 40%);;
|
2014-04-22 02:19:31 -04:00
|
|
|
}
|
|
|
|
.date {
|
|
|
|
display: block;
|
2014-05-06 01:50:51 -04:00
|
|
|
color: $primary;
|
2014-04-22 02:19:31 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|