mirror of
https://github.com/discourse/discourse.git
synced 2026-08-15 17:24:47 +08:00
…so that themes can use the color in other ways than just the border it's these borders: (on /chat/browse/all) <img width="76" height="255" alt="image" src="https://github.com/user-attachments/assets/2a635dff-ba4e-4283-a3dc-a3b6607da9e8" />
90 lines
1.6 KiB
SCSS
Vendored
90 lines
1.6 KiB
SCSS
Vendored
.chat-channel-card {
|
|
--chat-channel-card-border: transparent;
|
|
display: grid;
|
|
grid-template-areas:
|
|
"title cta"
|
|
"membercount ."
|
|
"description description";
|
|
grid-template-rows: auto auto 1fr;
|
|
align-items: center;
|
|
position: relative;
|
|
padding: 0.75rem 1rem;
|
|
background-color: var(--primary-very-low);
|
|
border-radius: var(--d-border-radius);
|
|
min-height: 0;
|
|
min-width: 0;
|
|
border-left: 5px solid transparent;
|
|
border-color: var(--chat-channel-card-border);
|
|
|
|
&.--closed,
|
|
&.--archived {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
&__header {
|
|
@include ellipsis;
|
|
align-items: center;
|
|
display: flex;
|
|
grid-area: title;
|
|
height: min-content;
|
|
}
|
|
|
|
&__read-restricted,
|
|
&__muted {
|
|
color: var(--primary-medium);
|
|
}
|
|
|
|
&__read-restricted {
|
|
font-size: var(--font-down-2-rem);
|
|
}
|
|
|
|
&__muted {
|
|
font-size: var(--font-down-1-rem);
|
|
}
|
|
|
|
&__description {
|
|
@include line-clamp(2);
|
|
align-self: flex-start;
|
|
color: var(--primary-medium);
|
|
padding-top: 0.5rem;
|
|
grid-area: description;
|
|
}
|
|
|
|
&__members {
|
|
font-size: var(--font-down-1-rem);
|
|
grid-area: membercount;
|
|
}
|
|
|
|
&__name {
|
|
@include ellipsis;
|
|
}
|
|
|
|
&__name-container {
|
|
display: flex;
|
|
gap: 0.25em;
|
|
align-items: center;
|
|
color: var(--primary);
|
|
font-size: var(--font-up-1-rem);
|
|
text-decoration: none;
|
|
min-width: 0;
|
|
|
|
&:visited,
|
|
&:hover {
|
|
color: var(--primary);
|
|
}
|
|
}
|
|
|
|
&__leave-btn {
|
|
padding-right: 0;
|
|
|
|
&:focus {
|
|
@include default-focus;
|
|
}
|
|
}
|
|
|
|
&__cta {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
}
|
|
}
|