2013-10-04 00:51:30 +08:00
|
|
|
// styles that apply to the "share" popup when sharing a link to a post or topic
|
2015-08-19 03:04:35 +08:00
|
|
|
// Colors should mostly be absolute here, it will look the same in dark & light themes
|
2013-10-04 00:51:30 +08:00
|
|
|
|
2016-06-13 07:46:24 +08:00
|
|
|
$user_card_primary: $primary;
|
|
|
|
$user_card_background: $secondary;
|
2015-08-19 04:28:02 +08:00
|
|
|
|
2014-10-21 00:11:36 +08:00
|
|
|
#user-card {
|
2013-10-04 00:51:30 +08:00
|
|
|
position: absolute;
|
2014-10-30 07:48:20 +08:00
|
|
|
width: 500px;
|
2015-03-04 20:02:36 +08:00
|
|
|
left: -9999px;
|
|
|
|
top: -9999px;
|
2018-01-17 08:05:12 +08:00
|
|
|
z-index: z("usercard");
|
2018-02-21 01:18:20 +08:00
|
|
|
box-shadow: shadow("card");
|
2013-10-31 00:40:16 +08:00
|
|
|
margin-top: -2px;
|
2015-08-19 04:28:02 +08:00
|
|
|
color: $user_card_primary;
|
|
|
|
background: $user_card_background center center;
|
2015-10-16 08:10:02 +08:00
|
|
|
background-size: cover;
|
2014-10-31 12:46:27 +08:00
|
|
|
min-height: 175px;
|
2015-08-19 03:04:35 +08:00
|
|
|
-webkit-transition: opacity .2s, -webkit-transform .2s;
|
|
|
|
transition: opacity .2s, transform .2s;
|
|
|
|
|
2015-03-03 01:12:25 +08:00
|
|
|
opacity: 0;
|
2015-08-26 07:58:37 +08:00
|
|
|
@include transform(scale(.9));
|
|
|
|
|
2015-03-03 01:12:25 +08:00
|
|
|
&.show {
|
|
|
|
opacity: 1;
|
2015-08-26 07:58:37 +08:00
|
|
|
@include transform(scale(1));
|
2015-03-03 01:12:25 +08:00
|
|
|
}
|
2014-10-17 03:05:36 +08:00
|
|
|
|
2014-10-30 07:48:20 +08:00
|
|
|
.card-content {
|
2014-11-02 10:58:18 +08:00
|
|
|
padding: 12px 12px 0 12px;
|
2015-08-19 04:28:02 +08:00
|
|
|
background: rgba($user_card_background, .85);
|
2014-11-02 10:58:18 +08:00
|
|
|
margin-top: 80px;
|
2014-10-31 12:46:27 +08:00
|
|
|
|
2014-10-30 07:48:20 +08:00
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
clear: both;
|
|
|
|
}
|
2015-12-03 23:34:11 +08:00
|
|
|
|
|
|
|
a.card-huge-avatar {
|
|
|
|
outline: none;
|
|
|
|
}
|
2014-10-30 07:48:20 +08:00
|
|
|
}
|
|
|
|
|
2015-03-03 01:12:25 +08:00
|
|
|
&.no-bg {
|
|
|
|
min-height: 50px;
|
2014-10-31 12:46:27 +08:00
|
|
|
|
2015-03-03 01:12:25 +08:00
|
|
|
.card-content {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2014-10-30 07:48:20 +08:00
|
|
|
}
|
|
|
|
|
2014-07-25 05:15:40 +08:00
|
|
|
.avatar-placeholder {
|
|
|
|
width: 120px;
|
|
|
|
height: 120px;
|
|
|
|
float: left;
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|
|
|
|
|
2013-10-04 00:51:30 +08:00
|
|
|
h1 {
|
2014-03-02 00:05:30 +08:00
|
|
|
min-width: 120px;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-up-4;
|
|
|
|
line-height: $line-height-medium;
|
2014-07-04 11:40:49 +08:00
|
|
|
display: block;
|
2014-10-30 07:48:20 +08:00
|
|
|
max-width: 250px;
|
2014-07-04 11:40:49 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2013-10-05 04:55:54 +08:00
|
|
|
a {
|
2015-08-19 04:28:02 +08:00
|
|
|
color: $user_card_primary;
|
2013-10-05 04:55:54 +08:00
|
|
|
}
|
2014-11-02 10:58:18 +08:00
|
|
|
i {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
2015-08-19 04:28:02 +08:00
|
|
|
color: $user_card_primary;
|
2014-11-02 10:58:18 +08:00
|
|
|
}
|
2013-10-04 00:51:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-up-1;
|
|
|
|
line-height: $line-height-medium;
|
2013-10-04 00:51:30 +08:00
|
|
|
font-weight: normal;
|
2014-07-04 11:40:49 +08:00
|
|
|
display: block;
|
2014-10-30 07:48:20 +08:00
|
|
|
max-width: 250px;
|
2014-07-04 11:40:49 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2013-10-08 23:28:32 +08:00
|
|
|
a {
|
2015-08-19 04:28:02 +08:00
|
|
|
color: $user_card_primary;
|
2013-10-08 23:28:32 +08:00
|
|
|
}
|
2013-10-04 00:51:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-0;
|
2013-10-04 00:51:30 +08:00
|
|
|
font-weight: normal;
|
2014-03-06 14:14:51 +08:00
|
|
|
margin-top: 0;
|
2016-06-13 07:46:24 +08:00
|
|
|
color: scale-color($user_card_primary, $lightness: 20%);
|
2014-10-02 10:54:03 +08:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2014-10-30 07:48:20 +08:00
|
|
|
a {
|
2015-08-19 04:28:02 +08:00
|
|
|
color: scale-color($user_card_background, $lightness: 50%);
|
2014-10-30 07:48:20 +08:00
|
|
|
}
|
2013-10-04 00:51:30 +08:00
|
|
|
}
|
2015-03-03 01:12:25 +08:00
|
|
|
|
2014-02-11 01:30:36 +08:00
|
|
|
.groups {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
2014-02-11 01:30:36 +08:00
|
|
|
font-weight: normal;
|
2014-03-06 14:14:51 +08:00
|
|
|
margin-top: 0;
|
2015-08-19 04:28:02 +08:00
|
|
|
color: $user_card_background;
|
2014-02-11 01:30:36 +08:00
|
|
|
|
|
|
|
.group-link {
|
2015-08-19 04:28:02 +08:00
|
|
|
color: $user_card_background;
|
2014-02-11 01:30:36 +08:00
|
|
|
}
|
|
|
|
}
|
2013-10-04 00:51:30 +08:00
|
|
|
|
2014-05-10 14:09:04 +08:00
|
|
|
.metadata {
|
2014-11-02 10:58:18 +08:00
|
|
|
width: 100%;
|
|
|
|
clear: both;
|
2014-11-03 23:16:10 +08:00
|
|
|
padding-top: 5px;
|
2017-02-16 17:49:29 +08:00
|
|
|
padding-bottom: 5px;
|
2014-11-05 01:53:02 +08:00
|
|
|
h3 {
|
|
|
|
display: inline;
|
|
|
|
margin-right: 5px;
|
|
|
|
.desc, a {
|
2016-06-13 07:46:24 +08:00
|
|
|
color: scale-color($user_card_primary, $lightness: 35%);
|
2014-11-05 01:53:02 +08:00
|
|
|
}
|
|
|
|
}
|
2015-08-19 04:28:02 +08:00
|
|
|
div {display: inline; color: scale-color($user_card_background, $lightness: 50%);
|
|
|
|
.group-link {color: scale-color($user_card_background, $lightness: 50%);}
|
2014-11-02 10:58:18 +08:00
|
|
|
}
|
2014-05-10 14:09:04 +08:00
|
|
|
}
|
|
|
|
|
2013-10-04 00:51:30 +08:00
|
|
|
.bottom {
|
|
|
|
clear: both;
|
|
|
|
padding-top: 10px;
|
|
|
|
}
|
|
|
|
|
2014-11-05 05:30:46 +08:00
|
|
|
&.has-card-badge-image .bio {
|
|
|
|
width: 75%;
|
|
|
|
}
|
|
|
|
|
2014-07-01 05:41:38 +08:00
|
|
|
.bio {
|
2016-06-13 07:46:24 +08:00
|
|
|
padding: 10px 0 0 0;
|
2014-11-02 10:58:18 +08:00
|
|
|
clear: left;
|
2014-11-05 05:30:46 +08:00
|
|
|
|
2014-10-30 07:48:20 +08:00
|
|
|
a {
|
2015-08-19 04:28:02 +08:00
|
|
|
color: $user_card_primary;
|
2014-10-30 07:48:20 +08:00
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2014-07-02 20:56:09 +08:00
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2014-11-02 10:58:18 +08:00
|
|
|
|
2014-11-05 03:25:35 +08:00
|
|
|
a.mention {
|
2016-07-04 23:36:59 +08:00
|
|
|
text-decoration: none;
|
2014-11-05 03:25:35 +08:00
|
|
|
}
|
2016-09-16 04:15:08 +08:00
|
|
|
|
2014-11-02 10:58:18 +08:00
|
|
|
.overflow {
|
|
|
|
max-height: 60px;
|
|
|
|
overflow: hidden;
|
2014-11-04 00:59:29 +08:00
|
|
|
}
|
2014-07-01 05:41:38 +08:00
|
|
|
}
|
|
|
|
|
2016-04-19 11:59:38 +08:00
|
|
|
.location-and-website {
|
2018-02-10 05:55:43 +08:00
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
align-items: center;
|
|
|
|
padding-top: 5px;
|
|
|
|
.location, .website-name {
|
|
|
|
display: flex;
|
2018-02-11 10:27:25 +08:00
|
|
|
max-width: 90%;
|
2018-02-10 05:55:43 +08:00
|
|
|
overflow: hidden;
|
|
|
|
align-items: baseline;
|
|
|
|
i {
|
|
|
|
margin-right: .25em;
|
2016-04-19 11:59:38 +08:00
|
|
|
}
|
2016-04-13 14:13:51 +08:00
|
|
|
}
|
2018-02-10 05:55:43 +08:00
|
|
|
.website-name a, .location span {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2018-02-10 06:29:40 +08:00
|
|
|
white-space: nowrap;
|
2018-04-20 23:42:06 +08:00
|
|
|
color: $user_card_primary;
|
2018-02-10 05:55:43 +08:00
|
|
|
}
|
|
|
|
.location {
|
|
|
|
margin-right: .5em;
|
|
|
|
}
|
|
|
|
.website-name a {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2016-04-13 14:13:51 +08:00
|
|
|
}
|
|
|
|
|
2016-09-16 04:15:08 +08:00
|
|
|
.user-card-avatar {
|
2013-10-04 00:51:30 +08:00
|
|
|
float: left;
|
2015-04-03 09:28:13 +08:00
|
|
|
margin-right: 10px;
|
2014-11-02 10:58:18 +08:00
|
|
|
margin-top: -53px;
|
2013-10-04 00:51:30 +08:00
|
|
|
}
|
|
|
|
|
2018-04-14 08:43:18 +08:00
|
|
|
.group-card-avatar {
|
|
|
|
float: left;
|
|
|
|
margin-right: 10px;
|
2018-04-18 00:27:48 +08:00
|
|
|
margin-top: -5px;
|
|
|
|
$size: 50px;
|
2018-04-14 08:43:18 +08:00
|
|
|
.avatar-flair {
|
2018-04-18 00:27:48 +08:00
|
|
|
width: $size;
|
|
|
|
height: $size;
|
2018-04-14 08:43:18 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
2018-04-18 00:27:48 +08:00
|
|
|
background-size: $size;
|
2018-04-14 08:43:18 +08:00
|
|
|
color: $primary;
|
|
|
|
i {
|
|
|
|
margin: auto;
|
2018-04-18 00:27:48 +08:00
|
|
|
font-size: $size !important;
|
2018-04-14 08:43:18 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-04-18 00:27:48 +08:00
|
|
|
|
2018-04-14 08:43:18 +08:00
|
|
|
.members {
|
|
|
|
a {
|
|
|
|
color: lighten($primary, 40%);
|
|
|
|
&:hover {
|
|
|
|
color: $primary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-10-04 00:51:30 +08:00
|
|
|
p {
|
|
|
|
margin: 0 0 5px 0;
|
|
|
|
}
|
|
|
|
|
2013-10-04 03:51:12 +08:00
|
|
|
.btn {
|
2013-10-04 00:51:30 +08:00
|
|
|
margin: 0 0 7px 0;
|
2014-10-30 07:48:20 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.usercard-controls {
|
|
|
|
list-style-type: none;
|
2014-11-02 10:58:18 +08:00
|
|
|
float: right;
|
2014-11-06 19:29:24 +08:00
|
|
|
margin: 0;
|
2014-10-30 07:48:20 +08:00
|
|
|
|
2017-08-25 00:22:46 +08:00
|
|
|
button { width: 100%; min-width: 150px; }
|
2013-10-04 00:51:30 +08:00
|
|
|
}
|
2013-12-20 07:58:48 +08:00
|
|
|
|
|
|
|
.new-user a {
|
2015-08-19 04:28:02 +08:00
|
|
|
color: scale-color($user_card_background, $lightness: 70%);
|
2013-12-20 07:58:48 +08:00
|
|
|
}
|
2014-03-28 16:49:30 +08:00
|
|
|
|
|
|
|
&.show-badges {
|
2014-10-30 07:48:20 +08:00
|
|
|
width: 580px;
|
2014-03-28 16:49:30 +08:00
|
|
|
|
|
|
|
.names {
|
|
|
|
float: left;
|
2014-10-30 07:48:20 +08:00
|
|
|
width: 45%;
|
|
|
|
|
|
|
|
span {
|
|
|
|
display: block;
|
2014-10-31 12:46:27 +08:00
|
|
|
width: 250px;
|
2014-10-30 07:48:20 +08:00
|
|
|
}
|
2014-03-28 16:49:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.badge-section {
|
2014-07-04 11:40:49 +08:00
|
|
|
float: left;
|
2014-11-02 10:58:18 +08:00
|
|
|
width: 500px;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
margin-top: 5px;
|
2014-10-30 07:48:20 +08:00
|
|
|
|
|
|
|
.user-badge {
|
2016-06-13 07:46:24 +08:00
|
|
|
background: scale-color($user_card_background, $lightness: -5%);
|
2017-11-24 05:38:11 +08:00
|
|
|
border: 1px solid $primary-low;
|
2016-06-13 07:46:24 +08:00
|
|
|
color: $user_card_primary;
|
2014-10-30 07:48:20 +08:00
|
|
|
}
|
2014-07-04 11:40:49 +08:00
|
|
|
|
2014-03-28 16:49:30 +08:00
|
|
|
h3 {
|
2015-08-19 04:28:02 +08:00
|
|
|
color: $user_card_background;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-0;
|
2014-03-28 16:49:30 +08:00
|
|
|
margin-bottom: -8px;
|
|
|
|
}
|
|
|
|
}
|
2014-04-14 13:58:36 +08:00
|
|
|
|
2014-04-16 18:02:57 +08:00
|
|
|
.more-user-badges {
|
|
|
|
@extend .user-badge;
|
2014-06-24 04:11:55 +08:00
|
|
|
padding: 3px 8px;
|
2014-04-16 18:02:57 +08:00
|
|
|
}
|
2014-04-14 13:58:36 +08:00
|
|
|
}
|
2014-09-11 07:30:32 +08:00
|
|
|
|
|
|
|
.suspended {
|
|
|
|
color: $danger;
|
2014-11-03 23:16:10 +08:00
|
|
|
margin-bottom: 5px;
|
|
|
|
clear: left;
|
|
|
|
padding-top: 15px;
|
2014-09-11 07:30:32 +08:00
|
|
|
}
|
2014-10-21 01:15:58 +08:00
|
|
|
|
|
|
|
.card-badge {
|
|
|
|
img {
|
2014-11-05 05:30:46 +08:00
|
|
|
max-width: 120px;
|
2014-10-21 01:15:58 +08:00
|
|
|
}
|
2014-10-31 12:46:27 +08:00
|
|
|
position: absolute;
|
|
|
|
right: 12px;
|
|
|
|
bottom: 12px;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-up-5;
|
2015-08-19 04:28:02 +08:00
|
|
|
i {color: $user_card_primary;}
|
2014-10-21 01:15:58 +08:00
|
|
|
}
|
2017-11-24 05:38:11 +08:00
|
|
|
|
|
|
|
.metadata .email .btn {
|
|
|
|
padding: 2px 12px;
|
|
|
|
}
|
2014-04-14 13:58:36 +08:00
|
|
|
}
|