2019-03-20 17:45:49 +08:00
|
|
|
$card_width: 580px;
|
|
|
|
$avatar_width: 120px;
|
|
|
|
$avatar_margin: -50px; // negative margin makes avatars extend above cards
|
2015-08-19 04:28:02 +08:00
|
|
|
|
2019-04-24 16:55:09 +08:00
|
|
|
.animated-placeholder {
|
|
|
|
height: 20px;
|
|
|
|
position: relative;
|
|
|
|
}
|
2019-04-27 00:29:48 +08:00
|
|
|
|
2019-04-24 16:55:09 +08:00
|
|
|
.card-avatar-placeholder {
|
|
|
|
width: $avatar_width;
|
|
|
|
height: $avatar_width;
|
|
|
|
border-radius: 100%;
|
2019-04-27 00:29:48 +08:00
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
&:before {
|
|
|
|
animation: placeHolderShimmer 4s linear infinite forwards;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
content: "";
|
|
|
|
background: linear-gradient(
|
|
|
|
to right,
|
2020-08-04 10:57:10 +08:00
|
|
|
var(--primary-very-low) 10%,
|
|
|
|
var(--primary-low) 18%,
|
|
|
|
var(--primary-very-low) 33%
|
2019-04-27 00:29:48 +08:00
|
|
|
);
|
|
|
|
height: $avatar_width;
|
|
|
|
width: $card_width;
|
|
|
|
}
|
2019-04-24 16:55:09 +08:00
|
|
|
}
|
|
|
|
|
2019-03-20 17:45:49 +08:00
|
|
|
// shared styles for user and group cards
|
2020-02-13 17:58:17 +08:00
|
|
|
.user-card,
|
|
|
|
.group-card {
|
2019-03-20 17:45:49 +08:00
|
|
|
width: $card_width;
|
2018-02-21 01:18:20 +08:00
|
|
|
box-shadow: shadow("card");
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
|
|
|
background: var(--secondary) center center;
|
2015-10-16 08:10:02 +08:00
|
|
|
background-size: cover;
|
2018-06-08 17:49:31 +08:00
|
|
|
transition: opacity 0.2s, transform 0.2s;
|
2015-03-03 01:12:25 +08:00
|
|
|
opacity: 0;
|
2018-06-08 17:49:31 +08:00
|
|
|
@include transform(scale(0.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-30 07:48:20 +08:00
|
|
|
.card-content {
|
2019-03-25 20:37:17 +08:00
|
|
|
padding: 10px;
|
2020-08-04 10:57:10 +08:00
|
|
|
background: rgba(var(--secondary-rgb), 0.85);
|
2014-10-30 07:48:20 +08:00
|
|
|
&:after {
|
2018-06-08 17:49:31 +08:00
|
|
|
content: "";
|
2014-10-30 07:48:20 +08:00
|
|
|
display: block;
|
|
|
|
clear: both;
|
|
|
|
}
|
2015-12-03 23:34:11 +08:00
|
|
|
a.card-huge-avatar {
|
|
|
|
outline: none;
|
|
|
|
}
|
2020-07-10 08:51:43 +08:00
|
|
|
.bio {
|
|
|
|
@include line-clamp(2);
|
|
|
|
}
|
2014-10-30 07:48:20 +08:00
|
|
|
}
|
2019-03-25 20:37:17 +08:00
|
|
|
.card-row:not(.first-row) {
|
|
|
|
margin-top: 0.5em;
|
|
|
|
}
|
|
|
|
// avatar - names - controls
|
|
|
|
.first-row {
|
|
|
|
.names {
|
|
|
|
padding-left: 1.25em;
|
2019-04-19 16:53:23 +08:00
|
|
|
|
|
|
|
.user-profile-link {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
margin: 0 0.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.name-username-wrapper {
|
|
|
|
margin-right: 0;
|
|
|
|
flex: 0 1 auto;
|
|
|
|
}
|
2019-03-25 20:37:17 +08:00
|
|
|
span {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.usercard-controls {
|
|
|
|
list-style-type: none;
|
|
|
|
margin: 0;
|
|
|
|
button {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2019-03-20 17:45:49 +08:00
|
|
|
}
|
2014-07-25 05:15:40 +08:00
|
|
|
}
|
2019-03-25 20:37:17 +08:00
|
|
|
.btn {
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
2013-10-04 00:51:30 +08:00
|
|
|
h1 {
|
2018-01-13 06:27:38 +08:00
|
|
|
line-height: $line-height-medium;
|
2018-11-27 05:49:57 +08:00
|
|
|
.d-icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2014-11-02 10:58:18 +08:00
|
|
|
}
|
2013-10-04 00:51:30 +08:00
|
|
|
}
|
2019-03-25 20:37:17 +08:00
|
|
|
h3 {
|
|
|
|
display: inline;
|
|
|
|
margin-right: 0.5em;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2019-04-12 19:55:01 +08:00
|
|
|
&.email,
|
2019-03-25 20:37:17 +08:00
|
|
|
.desc,
|
|
|
|
a {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2019-03-25 20:37:17 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3 {
|
2018-05-09 03:38:55 +08:00
|
|
|
margin: 0;
|
2019-11-07 03:00:29 +08:00
|
|
|
@include ellipsis;
|
2019-03-25 20:37:17 +08:00
|
|
|
}
|
|
|
|
h1,
|
|
|
|
h2 {
|
2013-10-08 23:28:32 +08:00
|
|
|
a {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2013-10-08 23:28:32 +08:00
|
|
|
}
|
2013-10-04 00:51:30 +08:00
|
|
|
}
|
2019-03-25 20:37:17 +08:00
|
|
|
h2,
|
2013-10-04 00:51:30 +08:00
|
|
|
h3 {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
2019-03-20 17:45:49 +08:00
|
|
|
p {
|
|
|
|
margin: 0 0 5px 0;
|
2014-02-11 01:30:36 +08:00
|
|
|
}
|
2019-03-20 17:45:49 +08:00
|
|
|
}
|
2013-10-04 00:51:30 +08:00
|
|
|
|
2019-03-25 20:37:17 +08:00
|
|
|
// styles for user cards only
|
2020-02-13 17:58:17 +08:00
|
|
|
.user-card {
|
2019-03-20 17:45:49 +08:00
|
|
|
// avatar - names - controls
|
|
|
|
.first-row {
|
|
|
|
display: flex;
|
|
|
|
.avatar-placeholder {
|
|
|
|
width: $avatar_width;
|
|
|
|
height: $avatar_width;
|
2014-07-02 20:56:09 +08:00
|
|
|
}
|
2019-03-20 17:45:49 +08:00
|
|
|
.user-card-avatar {
|
|
|
|
margin-top: $avatar_margin;
|
2021-12-30 04:58:10 +08:00
|
|
|
max-height: $avatar_width;
|
2014-11-05 03:25:35 +08:00
|
|
|
}
|
2019-03-20 17:45:49 +08:00
|
|
|
.new-user a {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-low-mid);
|
2014-11-04 00:59:29 +08:00
|
|
|
}
|
2014-07-01 05:41:38 +08:00
|
|
|
}
|
2019-03-20 17:45:49 +08:00
|
|
|
// user bio - suspension reason
|
|
|
|
.second-row {
|
|
|
|
max-height: 150px;
|
|
|
|
overflow: auto;
|
|
|
|
.bio {
|
|
|
|
a {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2019-03-20 17:45:49 +08:00
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
a.mention {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
.overflow {
|
|
|
|
max-height: 60px;
|
|
|
|
overflow: hidden;
|
2016-04-19 11:59:38 +08:00
|
|
|
}
|
2016-04-13 14:13:51 +08:00
|
|
|
}
|
2019-03-20 17:45:49 +08:00
|
|
|
.suspended {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--danger);
|
2019-03-20 17:45:49 +08:00
|
|
|
.suspension-reason-title,
|
|
|
|
.suspension-date {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2018-02-10 05:55:43 +08:00
|
|
|
}
|
2019-04-01 16:50:48 +08:00
|
|
|
.profile-hidden {
|
|
|
|
font-size: $font-up-1;
|
|
|
|
margin-top: 0.5em;
|
|
|
|
}
|
2016-04-13 14:13:51 +08:00
|
|
|
}
|
2019-12-10 03:15:47 +08:00
|
|
|
// featured topic
|
|
|
|
.featured-topic {
|
|
|
|
.desc {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2019-12-10 03:15:47 +08:00
|
|
|
}
|
|
|
|
a {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2019-12-10 03:15:47 +08:00
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-20 17:45:49 +08:00
|
|
|
// location and website
|
2019-12-10 03:15:47 +08:00
|
|
|
.location-and-website {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
width: 100%;
|
|
|
|
align-items: center;
|
|
|
|
.location,
|
|
|
|
.website-name {
|
2018-04-14 08:43:18 +08:00
|
|
|
display: flex;
|
2019-12-10 03:15:47 +08:00
|
|
|
overflow: hidden;
|
2018-04-14 08:43:18 +08:00
|
|
|
align-items: center;
|
2019-12-10 03:15:47 +08:00
|
|
|
.d-icon {
|
|
|
|
margin-right: 0.25em;
|
2019-03-20 17:45:49 +08:00
|
|
|
}
|
2018-04-14 08:43:18 +08:00
|
|
|
}
|
2019-12-10 03:15:47 +08:00
|
|
|
.website-name a,
|
|
|
|
.location span {
|
|
|
|
@include ellipsis;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2019-12-10 03:15:47 +08:00
|
|
|
}
|
2020-04-28 08:13:59 +08:00
|
|
|
.location,
|
|
|
|
.local-time,
|
|
|
|
.website-name {
|
2019-12-10 03:15:47 +08:00
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
|
|
|
.website-name a {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2018-04-14 08:43:18 +08:00
|
|
|
}
|
2019-03-20 17:45:49 +08:00
|
|
|
// custom user fields
|
2019-12-10 03:15:47 +08:00
|
|
|
.public-user-fields {
|
|
|
|
margin: 0;
|
2021-09-01 02:08:04 +08:00
|
|
|
.user-field-value-list-item:not(:last-of-type) {
|
|
|
|
&:after {
|
|
|
|
// create comma separated list
|
|
|
|
content: ",";
|
|
|
|
}
|
|
|
|
}
|
2013-10-04 00:51:30 +08:00
|
|
|
}
|
2019-12-10 03:15:47 +08:00
|
|
|
|
2019-03-20 17:45:49 +08:00
|
|
|
// badges
|
2019-12-10 03:15:47 +08:00
|
|
|
.badge-section {
|
2021-06-22 23:58:03 +08:00
|
|
|
line-height: 0;
|
2019-12-10 03:15:47 +08:00
|
|
|
.user-badge {
|
|
|
|
@include ellipsis;
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--primary-very-low);
|
|
|
|
border: 1px solid var(--primary-low);
|
|
|
|
color: var(--primary);
|
2019-12-10 03:15:47 +08:00
|
|
|
}
|
2021-02-12 02:41:58 +08:00
|
|
|
.user-card-badge-link {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2021-06-22 23:58:03 +08:00
|
|
|
.user-card-badge-link,
|
2019-12-10 03:15:47 +08:00
|
|
|
.more-user-badges {
|
2021-07-19 09:30:35 +08:00
|
|
|
vertical-align: top;
|
2021-06-22 23:58:03 +08:00
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.more-user-badges a {
|
|
|
|
@extend .user-badge;
|
2014-03-28 16:49:30 +08:00
|
|
|
}
|
2018-08-27 11:16:48 +08:00
|
|
|
}
|
2019-03-20 17:45:49 +08:00
|
|
|
}
|
2014-03-28 16:49:30 +08:00
|
|
|
|
2019-03-25 20:37:17 +08:00
|
|
|
// styles for group cards only
|
2020-02-13 17:58:17 +08:00
|
|
|
.group-card {
|
2019-03-20 17:45:49 +08:00
|
|
|
// avatar - names and controls
|
|
|
|
.first-row {
|
2018-12-15 11:16:18 +08:00
|
|
|
display: flex;
|
2019-03-20 17:45:49 +08:00
|
|
|
.group-card-avatar {
|
|
|
|
margin-top: $avatar_margin;
|
2014-03-28 16:49:30 +08:00
|
|
|
}
|
2019-03-25 20:37:17 +08:00
|
|
|
.avatar-flair {
|
|
|
|
display: flex;
|
|
|
|
background-size: contain;
|
2020-03-07 05:42:32 +08:00
|
|
|
background-repeat: no-repeat;
|
2019-03-25 20:37:17 +08:00
|
|
|
width: $avatar_width;
|
|
|
|
height: $avatar_width;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2019-03-25 20:37:17 +08:00
|
|
|
.d-icon {
|
|
|
|
margin: auto;
|
|
|
|
font-size: $avatar_width / 1.5;
|
|
|
|
}
|
|
|
|
&.rounded {
|
|
|
|
border-radius: 50%;
|
2019-03-20 17:45:49 +08:00
|
|
|
}
|
2014-04-16 18:02:57 +08:00
|
|
|
}
|
2014-04-14 13:58:36 +08:00
|
|
|
}
|
2019-03-20 17:45:49 +08:00
|
|
|
// group bio
|
|
|
|
.second-row {
|
|
|
|
max-height: 150px;
|
|
|
|
overflow: auto;
|
|
|
|
.bio {
|
|
|
|
a {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2019-03-20 17:45:49 +08:00
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
a.mention {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
.overflow {
|
|
|
|
max-height: 60px;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
2017-11-24 05:38:11 +08:00
|
|
|
}
|
2014-04-14 13:58:36 +08:00
|
|
|
}
|
2022-05-27 17:15:14 +08:00
|
|
|
|
|
|
|
h3.user-status {
|
2022-07-05 23:12:22 +08:00
|
|
|
display: flex;
|
|
|
|
|
2022-05-27 17:15:14 +08:00
|
|
|
img.emoji {
|
|
|
|
margin-bottom: 1px;
|
2022-07-05 23:12:22 +08:00
|
|
|
margin-right: 0.3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.relative-date {
|
|
|
|
text-align: left;
|
|
|
|
font-size: var(--font-down-3);
|
|
|
|
padding-top: 0.5em;
|
|
|
|
margin-left: 0.6em;
|
|
|
|
color: var(--primary-medium);
|
2022-05-27 17:15:14 +08:00
|
|
|
}
|
|
|
|
}
|