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