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