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
|
|
|
display: inline-block;
|
2014-05-06 01:50:51 -04:00
|
|
|
background-color: $secondary;
|
2015-08-19 01:02:01 -04:00
|
|
|
margin: 0 0 3px;
|
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
|
|
|
}
|
|
|
|
|
2014-06-10 22:14:47 -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 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;
|
2014-12-15 22:12:56 -05:00
|
|
|
font-size: 3.571em;
|
2014-04-16 14:49:28 -04:00
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
2014-05-21 03:22:42 -04:00
|
|
|
|
2014-06-10 22:14:47 -04:00
|
|
|
img {
|
2015-07-30 16:31:49 -04:00
|
|
|
display: block;
|
2015-08-19 01:02:01 -04:00
|
|
|
margin: auto auto 4px;
|
2014-06-10 22:14:47 -04:00
|
|
|
width: 55px;
|
|
|
|
height: 55px;
|
|
|
|
}
|
|
|
|
|
2014-05-21 03:22:42 -04:00
|
|
|
.count {
|
|
|
|
display: block;
|
|
|
|
font-size: 0.8em;
|
2015-08-20 05:42:12 -04:00
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
|
2014-05-21 03:22:42 -04:00
|
|
|
}
|
2014-04-16 14:49:28 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Badge listing in /badges. */
|
2015-11-05 04:51:05 -05:00
|
|
|
.badges-listing {
|
2014-04-16 10:56:11 -04:00
|
|
|
margin: 20px 0;
|
2015-11-05 05:19:54 -05:00
|
|
|
tr {
|
|
|
|
border-bottom: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
|
|
|
|
td {
|
|
|
|
padding: 10px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-14 22:59:49 -04:00
|
|
|
border-bottom: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
|
2015-11-05 04:51:05 -05:00
|
|
|
border-top: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
|
2014-07-09 02:03:53 -04:00
|
|
|
width: 90%;
|
2015-11-05 04:51:05 -05:00
|
|
|
padding: 10px;
|
|
|
|
display: table;
|
|
|
|
|
|
|
|
.row {
|
|
|
|
display: table-row;
|
|
|
|
> div {
|
|
|
|
display: table-cell;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
}
|
2014-04-16 09:12:06 -04:00
|
|
|
|
|
|
|
.user-badge {
|
|
|
|
font-size: $base-font-size;
|
|
|
|
}
|
|
|
|
|
2015-11-05 04:51:05 -05:00
|
|
|
.grant-count {
|
2014-07-23 22:21:24 -04:00
|
|
|
text-align: center;
|
2015-08-20 05:42:12 -04:00
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 40%), scale-color($secondary, $lightness: 60%));
|
2014-07-23 22:21:24 -04:00
|
|
|
font-size: 120%;
|
2014-04-16 09:12:06 -04:00
|
|
|
}
|
|
|
|
|
2015-11-05 04:51:05 -05:00
|
|
|
.badge, .grant-count {
|
2014-04-16 09:12:06 -04:00
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2015-11-05 04:51:05 -05:00
|
|
|
.info {
|
2014-07-09 02:03:53 -04:00
|
|
|
font-size: 0.9em;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2015-11-05 04:51:05 -05:00
|
|
|
.description {
|
2014-07-09 02:03:53 -04:00
|
|
|
}
|
|
|
|
|
2015-11-05 04:51:05 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
@media all and (max-width: 750px) {
|
|
|
|
.show-badge .user-badge-with-posts .badge-user a.post-link {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
.show-badge div.badge-user {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
.badges-listing {
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
.info, .grant-count {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.row > div.info { display: none; }
|
|
|
|
|
|
|
|
.row {
|
|
|
|
display: block;
|
|
|
|
> div {
|
|
|
|
display: block;
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
}
|
2014-04-16 09:12:06 -04:00
|
|
|
}
|
|
|
|
}
|
2014-04-22 02:19:31 -04:00
|
|
|
|
2015-11-05 04:51:05 -05:00
|
|
|
|
2014-04-22 02:19:31 -04:00
|
|
|
/* /badges/:id/:slug page styling. */
|
|
|
|
.show-badge {
|
|
|
|
.badge-user {
|
2014-05-15 21:08:06 -04:00
|
|
|
text-align: center;
|
|
|
|
width: 100px;
|
2014-04-22 02:19:31 -04:00
|
|
|
padding: 5px 10px;
|
2014-05-15 21:08:06 -04:00
|
|
|
margin-bottom: 10px;
|
2014-07-01 19:46:28 -04:00
|
|
|
display: inline-block;
|
2015-11-05 04:51:05 -05:00
|
|
|
vertical-align: top;
|
2014-04-22 02:19:31 -04:00
|
|
|
|
|
|
|
.details {
|
|
|
|
margin: 0 10px;
|
|
|
|
padding-top: 3px;
|
2014-05-15 21:08:06 -04:00
|
|
|
color: $primary;
|
2014-04-22 02:19:31 -04:00
|
|
|
}
|
2014-05-15 21:08:06 -04:00
|
|
|
|
2015-11-05 04:51:05 -05:00
|
|
|
.username {
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
2014-04-22 02:19:31 -04:00
|
|
|
.date {
|
|
|
|
display: block;
|
2014-05-15 21:08:06 -04:00
|
|
|
color: lighten($primary, 40%);
|
2014-12-15 22:12:56 -05:00
|
|
|
font-size: 0.714em;
|
2014-04-22 02:19:31 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-07-01 19:46:28 -04:00
|
|
|
|
|
|
|
.show-badge .user-badge-with-posts .badge-user {
|
2014-07-12 00:36:01 -04:00
|
|
|
width: 45%;
|
|
|
|
padding: 0 0 0 4%;
|
|
|
|
margin-bottom: 20px;
|
2015-03-04 22:15:21 -05:00
|
|
|
|
2014-07-01 19:46:28 -04:00
|
|
|
.badge-info {
|
|
|
|
width: 100px;
|
|
|
|
display: block;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post-link {
|
|
|
|
width: 250px;
|
|
|
|
display: block;
|
|
|
|
float: left;
|
|
|
|
margin-left: 18px;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
}
|
2015-02-27 01:19:18 -05:00
|
|
|
|
|
|
|
.long-description.banner {
|
|
|
|
width: 88%;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|