mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 02:53:45 +08:00
6e2fd7a451
* UX: add correct class * UX: prioritise name over user messages when truncating * UX: add missing overflows to enable ellipsis
108 lines
2.1 KiB
SCSS
108 lines
2.1 KiB
SCSS
@import "common/foundation/mixins";
|
|
|
|
.full-page-chat {
|
|
overflow: hidden; //prevents double scroll
|
|
|
|
.channels-list {
|
|
overflow-y: overlay;
|
|
padding-bottom: 6rem;
|
|
box-sizing: border-box;
|
|
|
|
.channels-list-container {
|
|
background: var(--secondary);
|
|
}
|
|
|
|
.chat-channel-row {
|
|
height: 4em;
|
|
margin: 0;
|
|
padding: 0 1.5rem;
|
|
border-radius: 0;
|
|
border-bottom: 1px solid var(--primary-low);
|
|
|
|
.chat-channel-metadata {
|
|
.chat-channel-unread-indicator {
|
|
font-size: var(--font-down-2);
|
|
margin-top: 0.25rem;
|
|
}
|
|
&__date {
|
|
font-size: var(--font-down-2);
|
|
}
|
|
}
|
|
}
|
|
|
|
.chat-channel-divider {
|
|
font-size: var(--font-up-1);
|
|
|
|
&:first-of-type {
|
|
padding-top: 1rem;
|
|
}
|
|
|
|
.channel-title {
|
|
color: var(--quaternary);
|
|
font-size: var(--font-down-1);
|
|
}
|
|
}
|
|
|
|
.chat-user-avatar {
|
|
+ .chat-channel-title__usernames {
|
|
margin-left: 1rem;
|
|
}
|
|
}
|
|
|
|
.chat-channel-title {
|
|
width: 100%;
|
|
overflow: hidden;
|
|
|
|
&__users-count {
|
|
font-size: var(--font-up-2);
|
|
& + .chat-channel-title__name {
|
|
margin-left: 1rem;
|
|
}
|
|
}
|
|
|
|
&__name {
|
|
margin-left: 0.75em;
|
|
font-size: var(--font-up-1);
|
|
}
|
|
|
|
&__category-badge {
|
|
font-size: var(--font-up-1);
|
|
}
|
|
|
|
&__user-status-message {
|
|
flex-shrink: 3;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
}
|
|
|
|
.btn-floating.open-draft-channel-page-btn {
|
|
position: absolute;
|
|
background: var(--tertiary);
|
|
bottom: 2.5rem;
|
|
right: 2.5rem;
|
|
border-radius: 50%;
|
|
font-size: var(--font-up-4);
|
|
padding: 1rem;
|
|
transition: transform 0.25s ease, box-shadow 0.25s ease;
|
|
z-index: z("usercard");
|
|
box-shadow: 0px 5px 5px -1px rgba(0, 0, 0, 0.25);
|
|
|
|
.d-icon {
|
|
color: var(--primary-very-low);
|
|
}
|
|
|
|
&:active {
|
|
box-shadow: 0px 0px 5px -1px rgba(0, 0, 0, 0.25);
|
|
transform: scale(0.9);
|
|
}
|
|
|
|
&:focus {
|
|
@include default-focus;
|
|
border-color: var(--quaternary);
|
|
outline-color: var(--quaternary);
|
|
}
|
|
}
|
|
}
|