2022-11-02 21:41:30 +08:00
|
|
|
@import "common/foundation/mixins";
|
|
|
|
.full-page-chat {
|
|
|
|
overflow: hidden; //prevents double scroll
|
|
|
|
.channels-list {
|
|
|
|
overflow-y: overlay;
|
|
|
|
padding-bottom: 6rem;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
.direct-message-channels {
|
|
|
|
.chat-channel-title {
|
|
|
|
padding: 0.6rem 0; //minor adjustment for visual consistency with channels which dont have avatars
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (hover: none) {
|
|
|
|
.chat-channel-row:hover {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-channel-row:active {
|
|
|
|
background: var(--primary-low);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-channel-row {
|
|
|
|
margin: 0 1.5rem;
|
|
|
|
padding: 0;
|
|
|
|
border-radius: 0;
|
2022-11-07 19:26:46 +08:00
|
|
|
border-bottom: 1px solid var(--primary-low);
|
2022-11-02 21:41:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.chat-channel-divider {
|
|
|
|
background-color: var(--secondary);
|
2022-11-07 19:26:46 +08:00
|
|
|
padding: 2.5rem 1.5rem 0.5rem 1.5rem;
|
2022-11-02 21:41:30 +08:00
|
|
|
font-size: var(--font-up-1);
|
|
|
|
|
|
|
|
&:first-of-type {
|
2022-11-07 19:26:46 +08:00
|
|
|
padding-top: 1rem;
|
|
|
|
padding-bottom: 0; //visual compensation
|
2022-11-02 21:41:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.channel-title {
|
|
|
|
color: var(--quaternary);
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.channels-list-container {
|
|
|
|
background: var(--secondary);
|
|
|
|
}
|
|
|
|
|
2022-11-07 19:26:46 +08:00
|
|
|
.chat-user-avatar-container {
|
|
|
|
padding-left: 1px; //for is-online boxshadow effect
|
|
|
|
}
|
|
|
|
|
2022-11-02 21:41:30 +08:00
|
|
|
.chat-user-avatar {
|
|
|
|
img {
|
|
|
|
width: calc(var(--chat-mobile-avatar-size) - 2px);
|
|
|
|
height: calc(var(--chat-mobile-avatar-size) - 2px);
|
|
|
|
}
|
|
|
|
|
|
|
|
+ .chat-channel-title__usernames {
|
|
|
|
margin-left: 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-channel-title {
|
|
|
|
padding: 1rem 0;
|
|
|
|
width: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
&__users-count {
|
|
|
|
width: var(--chat-mobile-avatar-size);
|
|
|
|
height: var(--chat-mobile-avatar-size);
|
|
|
|
padding: 0;
|
|
|
|
font-size: var(--font-up-2);
|
2022-11-07 19:26:46 +08:00
|
|
|
font-weight: normal;
|
2022-11-02 21:41:30 +08:00
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
& + .chat-channel-title__name {
|
|
|
|
margin-left: 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__name {
|
|
|
|
font-size: var(--font-up-1);
|
|
|
|
}
|
|
|
|
|
|
|
|
&__category-badge {
|
|
|
|
font-size: var(--font-up-1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-floating.new-dm {
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|