2019-03-25 20:37:17 +08:00
|
|
|
$avatar_width: 120px;
|
|
|
|
|
|
|
|
// shared styles for user and group cards
|
2020-02-13 17:58:17 +08:00
|
|
|
.user-card,
|
|
|
|
.group-card {
|
2019-03-25 20:37:17 +08: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 18:02:40 +08:00
|
|
|
max-height: 85vh; // 2.5vh margin-top and margin-bottom. 10vh top
|
2019-03-25 20:37:17 +08: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-21 06:34:33 +08:00
|
|
|
--usercard-control-margin: 0.25em;
|
2019-03-25 20:37:17 +08:00
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
2021-04-21 06:34:33 +08:00
|
|
|
flex-wrap: wrap;
|
|
|
|
margin: 1em calc(var(--usercard-control-margin) * -1) 0;
|
2019-03-25 20:37:17 +08:00
|
|
|
li {
|
2022-03-29 00:56:43 +08:00
|
|
|
flex: 1 0 calc(50% - (var(--usercard-control-margin) * 2));
|
2019-03-31 17:16:40 +08:00
|
|
|
min-width: 0;
|
2021-04-21 06:34:33 +08:00
|
|
|
margin: 0 var(--usercard-control-margin);
|
2020-06-13 04:24:25 +08:00
|
|
|
&:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-03-31 17:16:40 +08:00
|
|
|
button {
|
2019-11-07 03:00:29 +08:00
|
|
|
@include ellipsis;
|
2022-03-29 00:56:43 +08:00
|
|
|
margin-bottom: calc(var(--usercard-control-margin) * 2);
|
2019-03-25 20:37:17 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
h1 {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-up-3);
|
2019-03-25 20:37:17 +08:00
|
|
|
.d-icon {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-down-2);
|
2019-03-25 20:37:17 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
h2 {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-0);
|
2019-03-25 20:37:17 +08:00
|
|
|
}
|
|
|
|
h3 {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-down-1);
|
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-25 20:37:17 +08:00
|
|
|
// badges
|
2019-12-10 03:15:47 +08:00
|
|
|
.badge-section {
|
2021-06-22 23:58:03 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: flex-start;
|
2019-12-10 03:15:47 +08:00
|
|
|
flex-wrap: wrap;
|
2021-02-12 02:41:58 +08:00
|
|
|
.user-card-badge-link,
|
|
|
|
.more-user-badges {
|
2019-12-10 03:15:47 +08:00
|
|
|
display: flex;
|
|
|
|
flex: 0 1 50%;
|
|
|
|
max-width: 50%; // for text ellipsis
|
|
|
|
padding: 2px 0;
|
|
|
|
box-sizing: border-box;
|
2021-06-22 23:58:03 +08:00
|
|
|
&:nth-child(odd) {
|
2019-12-10 03:15:47 +08:00
|
|
|
padding-right: 4px;
|
2019-03-25 20:37:17 +08:00
|
|
|
}
|
2019-12-10 03:15:47 +08:00
|
|
|
a {
|
2019-03-25 20:37:17 +08:00
|
|
|
width: 100%;
|
2019-12-10 03:15:47 +08:00
|
|
|
display: flex;
|
2019-03-25 20:37:17 +08:00
|
|
|
}
|
|
|
|
}
|
2019-12-10 03:15:47 +08:00
|
|
|
.user-badge {
|
|
|
|
display: flex;
|
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
2020-07-02 09:39:40 +08:00
|
|
|
.badge-display-name {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2019-12-10 03:15:47 +08:00
|
|
|
}
|
2019-03-25 20:37:17 +08:00
|
|
|
}
|
2020-02-15 05:19:11 +08: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 20:37:17 +08: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;
|
|
|
|
}
|