2022-11-02 21:41:30 +08:00
|
|
|
.chat-channel-card {
|
2024-02-16 01:00:22 +08:00
|
|
|
display: grid;
|
|
|
|
grid-template-areas:
|
|
|
|
"title cta"
|
|
|
|
"membercount ."
|
|
|
|
"description description";
|
|
|
|
grid-template-rows: auto auto 1fr;
|
|
|
|
align-items: center;
|
2022-11-02 21:41:30 +08:00
|
|
|
position: relative;
|
2024-02-16 01:00:22 +08:00
|
|
|
padding: 0.75rem 1rem;
|
2022-11-02 21:41:30 +08:00
|
|
|
background-color: var(--primary-very-low);
|
2023-07-11 01:07:01 +08:00
|
|
|
border-radius: var(--d-border-radius);
|
2022-11-02 21:41:30 +08:00
|
|
|
min-height: 0;
|
|
|
|
min-width: 0;
|
|
|
|
border-left: 5px solid transparent;
|
|
|
|
|
2024-02-16 01:00:22 +08:00
|
|
|
&.--closed,
|
|
|
|
&.--archived {
|
|
|
|
opacity: 0.6;
|
2022-11-02 21:41:30 +08:00
|
|
|
}
|
|
|
|
|
2024-02-16 01:00:22 +08:00
|
|
|
&__header {
|
|
|
|
@include ellipsis;
|
2022-11-02 21:41:30 +08:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
2024-02-16 01:00:22 +08:00
|
|
|
grid-area: title;
|
|
|
|
height: min-content;
|
2022-11-02 21:41:30 +08:00
|
|
|
}
|
|
|
|
|
2024-02-16 01:00:22 +08:00
|
|
|
&__read-restricted,
|
|
|
|
&__muted {
|
2022-11-02 21:41:30 +08:00
|
|
|
color: var(--primary-medium);
|
2024-02-16 01:00:22 +08:00
|
|
|
}
|
|
|
|
&__read-restricted {
|
|
|
|
font-size: var(--font-down-2-rem);
|
|
|
|
}
|
|
|
|
&__muted {
|
|
|
|
font-size: var(--font-down-1-rem);
|
2022-11-02 21:41:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&__description {
|
|
|
|
@include line-clamp(2);
|
2024-02-16 23:00:55 +08:00
|
|
|
align-self: flex-start;
|
2022-11-02 21:41:30 +08:00
|
|
|
color: var(--primary-medium);
|
2024-02-16 01:00:22 +08:00
|
|
|
padding-top: 0.5rem;
|
|
|
|
grid-area: description;
|
2022-11-02 21:41:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&__members {
|
2024-02-16 01:00:22 +08:00
|
|
|
font-size: var(--font-down-1-rem);
|
|
|
|
grid-area: membercount;
|
2022-11-02 21:41:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&__name {
|
|
|
|
@include ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__name-container {
|
|
|
|
display: flex;
|
2024-02-16 01:00:22 +08:00
|
|
|
gap: 0.25em;
|
2022-11-02 21:41:30 +08:00
|
|
|
align-items: center;
|
|
|
|
color: var(--primary);
|
2024-02-16 01:00:22 +08:00
|
|
|
font-size: var(--font-up-1-rem);
|
2022-11-02 21:41:30 +08:00
|
|
|
text-decoration: none;
|
|
|
|
min-width: 0;
|
|
|
|
|
|
|
|
&:visited,
|
|
|
|
&:hover {
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-16 01:00:22 +08:00
|
|
|
&__leave-btn {
|
|
|
|
padding-right: 0;
|
2022-11-02 21:41:30 +08:00
|
|
|
|
2024-02-16 01:00:22 +08:00
|
|
|
&:focus {
|
|
|
|
@include default-focus;
|
2022-11-02 21:41:30 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__cta {
|
|
|
|
display: flex;
|
2024-02-16 01:00:22 +08:00
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-end;
|
2022-11-02 21:41:30 +08:00
|
|
|
}
|
|
|
|
}
|