discourse/plugins/chat/assets/stylesheets/mobile/base-mobile.scss
David Battersby 6b3a68e562
FEATURE: Mobile Chat Notification Badges (#25438)
This change adds notification badges to the new footer tabs on mobile chat, to help users easily find areas where there’s new activity to review.

When on mobile chat:
- Show a badge on the DMs footer when there is unread activity in DMs.
- Show a badge on the Channels footer tab when there is unread channel activity.
- Show a badge on the Threads footer tab when there is unread activity in a followed thread.
- Notification badges should be removed once the unread activity is viewed.

Additionally this change will:
- Show green notification badges for channel mentions or DMs
- Show blue notification badges for unread messages in channels or threads

Co-authored-by: chapoi <101828855+chapoi@users.noreply.github.com>
2024-01-29 10:38:14 +08:00

84 lines
1.3 KiB
SCSS

:root {
--channel-list-avatar-size: 38px;
--chat-header-offset: 56px;
}
.chat-message-container:not(.-user-info-hidden) {
.chat-message {
padding-top: 0.75em;
}
}
html.has-full-page-chat {
.footer-nav {
display: none !important;
}
body #main-outlet {
padding: 0;
.main-chat-outlet {
.chat-channel {
min-width: 0;
}
&.has-side-panel-expanded {
grid-template-columns: 1fr;
.c-routes-channel {
display: none;
}
}
}
}
}
.full-page-chat {
grid-template-columns: 100%;
width: 100%;
.btn:active,
.btn:hover {
.d-icon {
color: var(--primary-medium);
}
}
.chat-channel {
border-radius: 0;
padding: 0;
}
.chat-drawer {
width: 100%;
}
}
.sidebar-container .channels-list .chat-channel-divider {
padding-left: 1em;
}
.sidebar-container .channels-list .chat-channel-row {
padding: 0.5em;
}
.create-channel-modal {
.modal-inner-container {
width: 95%;
}
}
.chat-message-separator {
margin-left: 0;
}
.header-dropdown-toggle.chat-header-icon .icon,
.c-footer .c-footer__item {
&.active .d-icon {
color: var(--primary-medium);
}
.chat-channel-unread-indicator {
border-color: var(--primary-very-low);
}
}