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-06-20 02:04:23 +08:00
|
|
|
line-height: 19px;
|
2014-04-16 18:02:57 +08:00
|
|
|
display: inline-block;
|
2014-05-06 13:50:51 +08:00
|
|
|
background-color: $secondary;
|
2015-08-19 13:02:01 +08:00
|
|
|
margin: 0 0 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 {
|
2016-03-18 06:29:39 +08:00
|
|
|
color: #ffd700 !important;
|
2014-04-16 18:02:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.badge-type-silver .fa {
|
2016-03-18 06:29:39 +08:00
|
|
|
color: #c0c0c0 !important;
|
2014-04-16 18:02:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.badge-type-bronze .fa {
|
2016-03-18 06:29:39 +08:00
|
|
|
color: #cd7f32 !important;
|
2014-04-16 18:02:57 +08:00
|
|
|
}
|
|
|
|
}
|
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;
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 3.571em;
|
2014-04-17 02:49:28 +08:00
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
2014-05-21 15:22:42 +08:00
|
|
|
|
2014-06-11 10:14:47 +08:00
|
|
|
img {
|
2015-07-31 04:31:49 +08:00
|
|
|
display: block;
|
2015-08-19 13:02:01 +08:00
|
|
|
margin: auto auto 4px;
|
2014-06-11 10:14:47 +08:00
|
|
|
width: 55px;
|
|
|
|
height: 55px;
|
|
|
|
}
|
|
|
|
|
2014-05-21 15:22:42 +08:00
|
|
|
.count {
|
|
|
|
display: block;
|
|
|
|
font-size: 0.8em;
|
2015-08-20 17:42:12 +08:00
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
|
2014-05-21 15:22:42 +08:00
|
|
|
}
|
2014-04-17 02:49:28 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Badge listing in /badges. */
|
2015-11-05 17:51:05 +08:00
|
|
|
.badges-listing {
|
2014-04-16 22:56:11 +08:00
|
|
|
margin: 20px 0;
|
2015-11-05 18:19:54 +08:00
|
|
|
tr {
|
|
|
|
border-bottom: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
|
|
|
|
td {
|
|
|
|
padding: 10px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-15 10:59:49 +08:00
|
|
|
border-bottom: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
|
2014-07-09 14:03:53 +08:00
|
|
|
width: 90%;
|
2015-11-05 17:51:05 +08:00
|
|
|
padding: 10px;
|
|
|
|
display: table;
|
2016-03-23 17:32:44 +08:00
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 40%), scale-color($secondary, $lightness: 60%));
|
2015-11-05 17:51:05 +08:00
|
|
|
|
|
|
|
.row {
|
|
|
|
display: table-row;
|
|
|
|
> div {
|
|
|
|
display: table-cell;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
}
|
2014-04-16 21:12:06 +08:00
|
|
|
|
|
|
|
.user-badge {
|
|
|
|
font-size: $base-font-size;
|
|
|
|
}
|
|
|
|
|
2015-11-05 17:51:05 +08:00
|
|
|
.grant-count {
|
2014-07-24 10:21:24 +08:00
|
|
|
font-size: 120%;
|
2014-04-16 21:12:06 +08:00
|
|
|
}
|
|
|
|
|
2015-11-05 17:51:05 +08:00
|
|
|
.badge, .grant-count {
|
2014-04-16 21:12:06 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2015-11-05 17:51:05 +08:00
|
|
|
.info {
|
2014-07-09 14:03:53 +08:00
|
|
|
font-size: 0.9em;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2015-11-05 17:51:05 +08:00
|
|
|
.description {
|
2014-07-09 14:03:53 +08:00
|
|
|
}
|
|
|
|
|
2015-11-05 17:51:05 +08: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 21:12:06 +08:00
|
|
|
}
|
|
|
|
}
|
2016-03-25 01:05:09 +08:00
|
|
|
.user-info.medium.badge-info {
|
|
|
|
min-height: 80px;
|
2014-04-22 14:19:31 +08:00
|
|
|
|
2016-03-25 01:05:09 +08:00
|
|
|
.granted-on {
|
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
|
2014-07-02 07:46:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.post-link {
|
|
|
|
display: block;
|
2016-03-25 01:05:09 +08:00
|
|
|
margin-top: 0.2em;
|
2014-07-02 07:46:28 +08:00
|
|
|
}
|
|
|
|
}
|
2015-02-27 14:19:18 +08:00
|
|
|
|
2016-01-18 14:59:07 +08:00
|
|
|
.show-badge .badge-user-info {
|
|
|
|
.earned {
|
|
|
|
font-size: 1.3em;
|
2016-03-25 01:05:09 +08:00
|
|
|
margin-bottom: 1em;
|
2016-01-18 14:59:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.show-badge .single-user {
|
|
|
|
margin-left: 2%;
|
|
|
|
padding-bottom: 20px;
|
|
|
|
.load-more {
|
|
|
|
padding-top: 30px;
|
|
|
|
display: block;
|
|
|
|
font-size: 1.2em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.show-badge .single-user .badge-user {
|
|
|
|
padding-left: 0;
|
|
|
|
|
|
|
|
text-align: left;
|
|
|
|
display: block;
|
|
|
|
margin: 20px 0;
|
|
|
|
.badge-info {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.date {
|
|
|
|
display: inline-block;
|
|
|
|
font-size: 1.1em;
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
.post-link {
|
|
|
|
font-size: 1.3em;
|
|
|
|
width: 500px;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
width: 800px;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
clear: both;
|
|
|
|
display: table;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-27 14:19:18 +08:00
|
|
|
.long-description.banner {
|
|
|
|
width: 88%;
|
2016-03-23 14:27:03 +08:00
|
|
|
margin-bottom: 15px;
|
|
|
|
margin-top: 15px;
|
2015-02-27 14:19:18 +08:00
|
|
|
}
|