0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-15 17:24:47 +08:00
discourse/plugins/chat/assets/stylesheets/common/chat-channel-title.scss
chapoi a11f86c8b0
UX: Chat channel icons v2 (#36634)
Followup:
* remove wrong size for emoji in chat sidebar
* add background styling for emoji/icon in DMs (mobile)
* fix avatar + thread icon positioning in threads index (mobile)

Current states of all screens:

#### Desktop Sidebar
Largely unchanged
<img width="530" height="1022" alt="CleanShot 2025-12-11 at 16 13 55@2x"
src="https://github.com/user-attachments/assets/2e323e22-6d56-48c7-8efc-d7ec6f316883"
/>

#### Desktop Drawer
<img width="3588" height="992" alt="image"
src="https://github.com/user-attachments/assets/0a4ad902-a3c4-4ea9-86dc-56f34ec88bf5"
/>

#### Mobile
<img width="3120" height="1508" alt="image"
src="https://github.com/user-attachments/assets/f7046c84-0272-44e6-8d01-c656b77c23c3"
/>
2025-12-11 16:44:49 +01:00

85 lines
1.6 KiB
SCSS
Vendored

.chat-channel-title {
@include ellipsis;
display: flex;
align-items: center;
gap: 0.5rem;
.chat-channel-preview-card & {
max-width: 100%;
}
&__user-info {
overflow: hidden;
}
.user-status-message {
display: none; // we only show when in channels list
}
&__user-status-message {
flex-shrink: 3;
overflow: hidden;
}
.topic-chat-icon {
color: var(--primary-medium);
display: flex;
}
.chat-unread-count {
display: inline-block;
color: var(--secondary);
background-color: var(--tertiary-med-or-tertiary);
font-size: var(--font-down-2);
border-radius: 100%;
min-width: 1.4em;
min-height: 1.4em;
height: 1.4em;
width: 1.4em;
padding: 1px;
margin-left: 0.5rem;
text-align: center;
}
}
.chat-channel-title__users-count {
display: flex;
border-radius: 50%;
background: rgb(var(--primary-rgb), 0.1);
width: 22px;
height: 22px;
box-sizing: border-box;
justify-content: center;
font-weight: 700;
font-size: var(--font-down-1);
align-items: center;
padding: 0.25rem 0.5rem;
color: var(--primary-high);
}
.chat-channel-title__category-badge {
color: var(--primary-medium);
display: flex;
font-size: var(--font-up-1);
position: relative;
}
.chat-channel-title__restricted-category-icon {
background-color: var(--secondary);
position: absolute;
border-radius: 50%;
padding: 2px 2px 3px;
color: var(--primary-high);
height: 0.5rem;
width: 0.5rem;
right: -0.5rem;
top: -0.1rem;
}
.chat-channel-title__category-title {
.emoji {
height: 1.2em;
vertical-align: text-bottom;
width: 1.2em;
}
}