2019-03-25 08:37:17 -04:00
|
|
|
$avatar_width: 120px;
|
|
|
|
|
|
|
|
// shared styles for user and group cards
|
2020-02-13 04:58:17 -05:00
|
|
|
.user-card,
|
|
|
|
.group-card {
|
2019-03-25 08:37:17 -04:00
|
|
|
position: fixed;
|
|
|
|
// mobile cards should always be on top of everything - 1102
|
|
|
|
z-index: z("mobile-composer") + 2;
|
|
|
|
max-width: 95vw;
|
|
|
|
margin: 0 2.5vw;
|
2020-08-24 06:02:40 -04:00
|
|
|
max-height: 85vh; // 2.5vh margin-top and margin-bottom. 10vh top
|
2019-03-25 08:37:17 -04:00
|
|
|
// avatar - names - controls
|
|
|
|
.first-row {
|
|
|
|
flex-wrap: wrap;
|
|
|
|
.names {
|
|
|
|
flex: 1 1 calc(100% - #{$avatar_width});
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
.usercard-controls {
|
2021-04-20 18:34:33 -04:00
|
|
|
--usercard-control-margin: 0.25em;
|
2019-03-25 08:37:17 -04:00
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
2021-04-20 18:34:33 -04:00
|
|
|
flex-wrap: wrap;
|
|
|
|
margin: 1em calc(var(--usercard-control-margin) * -1) 0;
|
2019-03-25 08:37:17 -04:00
|
|
|
li {
|
2022-03-28 12:56:43 -04:00
|
|
|
flex: 1 0 calc(50% - (var(--usercard-control-margin) * 2));
|
2019-03-31 05:16:40 -04:00
|
|
|
min-width: 0;
|
2021-04-20 18:34:33 -04:00
|
|
|
margin: 0 var(--usercard-control-margin);
|
2020-06-12 16:24:25 -04:00
|
|
|
&:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-03-31 05:16:40 -04:00
|
|
|
button {
|
2019-11-06 14:00:29 -05:00
|
|
|
@include ellipsis;
|
2022-03-28 12:56:43 -04:00
|
|
|
margin-bottom: calc(var(--usercard-control-margin) * 2);
|
2019-03-25 08:37:17 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
h1 {
|
2022-10-12 09:31:59 -04:00
|
|
|
font-size: var(--font-up-3);
|
2019-03-25 08:37:17 -04:00
|
|
|
.d-icon {
|
2022-10-12 09:31:59 -04:00
|
|
|
font-size: var(--font-down-2);
|
2019-03-25 08:37:17 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
h2 {
|
2022-10-12 09:31:59 -04:00
|
|
|
font-size: var(--font-0);
|
2019-03-25 08:37:17 -04:00
|
|
|
}
|
|
|
|
h3 {
|
2022-10-12 09:31:59 -04:00
|
|
|
font-size: var(--font-down-1);
|
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-25 08:37:17 -04:00
|
|
|
// badges
|
2019-12-09 14:15:47 -05:00
|
|
|
.badge-section {
|
2021-06-22 11:58:03 -04:00
|
|
|
display: flex;
|
|
|
|
align-items: flex-start;
|
2019-12-09 14:15:47 -05:00
|
|
|
flex-wrap: wrap;
|
2021-02-11 13:41:58 -05:00
|
|
|
.user-card-badge-link,
|
|
|
|
.more-user-badges {
|
2019-12-09 14:15:47 -05:00
|
|
|
display: flex;
|
|
|
|
flex: 0 1 50%;
|
|
|
|
max-width: 50%; // for text ellipsis
|
|
|
|
padding: 2px 0;
|
|
|
|
box-sizing: border-box;
|
2021-06-22 11:58:03 -04:00
|
|
|
&:nth-child(odd) {
|
2019-12-09 14:15:47 -05:00
|
|
|
padding-right: 4px;
|
2019-03-25 08:37:17 -04:00
|
|
|
}
|
2019-12-09 14:15:47 -05:00
|
|
|
a {
|
2019-03-25 08:37:17 -04:00
|
|
|
width: 100%;
|
2019-12-09 14:15:47 -05:00
|
|
|
display: flex;
|
2019-03-25 08:37:17 -04:00
|
|
|
}
|
|
|
|
}
|
2019-12-09 14:15:47 -05:00
|
|
|
.user-badge {
|
|
|
|
display: flex;
|
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
2020-07-01 21:39:40 -04:00
|
|
|
.badge-display-name {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2019-12-09 14:15:47 -05:00
|
|
|
}
|
2019-03-25 08:37:17 -04:00
|
|
|
}
|
2020-02-14 16:19:11 -05:00
|
|
|
|
|
|
|
.public-user-fields {
|
|
|
|
@media screen and (max-height: 550px) {
|
|
|
|
max-height: 12vh;
|
|
|
|
}
|
|
|
|
max-height: 40vh;
|
|
|
|
overflow-y: auto;
|
|
|
|
.public-user-field {
|
|
|
|
@include line-clamp(3);
|
|
|
|
}
|
|
|
|
}
|
2019-03-25 08:37:17 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// mobile card cloak
|
|
|
|
.card-cloak {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: z("mobile-composer") + 1; // 1101
|
|
|
|
height: 100vh;
|
|
|
|
width: 100vw;
|
|
|
|
background-color: rgba(black, 0.5);
|
|
|
|
animation: fadein 0.2s;
|
|
|
|
}
|