A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
/* SPDX-License-Identifier: AGPL-3.0-or-later */
.scroller {
--inbox-scroller-padding-x: 0.75rem;
--inbox-scroller-padding-bottom: 0.75rem;
--inbox-section-gap: 0.25rem;
--inbox-card-gap: 1rem;
--inbox-icon-button-size: 1.75rem;
--inbox-icon-button-radius: 0.375rem;
--inbox-collapse-button-size: 1.375rem;
--inbox-collapse-button-radius: 0.375rem;
--inbox-sticky-header-height: 3.5rem;
flex: 1;
min-height: 0;
min-width: 0;
padding: 0 var(--inbox-scroller-padding-x) var(--inbox-scroller-padding-bottom);
}
.stickyChannelHeader {
position: sticky;
top: 0;
z-index: 1;
background-color: var(--form-surface-background);
}
.guildGroup {
min-width: 0;
}
.list {
display: block;
min-width: 0;
}
.row {
display: block;
box-sizing: border-box;
padding-bottom: var(--inbox-card-gap);
}
.rowGroupEnd {
padding-bottom: calc(var(--inbox-card-gap) + var(--inbox-section-gap));
}
.channelCard {
min-width: 0;
outline: none;
}
.srOnly {
position: absolute;
width: 0.0625rem;
height: 0.0625rem;
padding: 0;
margin: -0.0625rem;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.channelHeadingButton {
appearance: none;
background: transparent;
border: 0;
padding: 0;
margin: 0;
color: inherit;
font: inherit;
cursor: pointer;
}
.collapseContainer {
overflow: hidden;
}
.messageStream {
min-width: 0;
}
.previewFooter {
display: flex;
justify-content: flex-start;
padding: 0.375rem 0.5rem 0.25rem;
}
.viewAllButton {
font-size: 0.75rem;
font-weight: 600;
color: var(--text-primary);
background-color: transparent;
border: 0.0625rem solid var(--background-header-secondary);
border-radius: 0.375rem;
padding: 0.25rem 0.625rem;
cursor: pointer;
transition: background-color 0.15s ease;
}
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.viewAllButton:hover {
background-color: var(--background-modifier-hover);
}
.viewAllButton:disabled {
cursor: not-allowed;
opacity: 0.6;
}
.messageRow {
position: relative;
isolation: isolate;
scroll-margin-top: var(--inbox-sticky-header-height);
}
.messageActions {
display: none;
position: absolute;
top: 0.375rem;
inset-inline-end: 0.5rem;
gap: 0.25rem;
}
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.messageRow:hover
.messageActions {
display: flex;
}
.jumpButton {
min-width: 2.625rem;
}
.collapseButton {
display: flex;
align-items: center;
justify-content: center;
width: var(--inbox-collapse-button-size);
height: var(--inbox-collapse-button-size);
border-radius: var(--inbox-collapse-button-radius);
background-color: transparent;
color: var(--text-primary-muted);
cursor: pointer;
transition:
color 0.15s ease,
background-color 0.15s ease,
transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.collapseButton:hover {
color: var(--text-primary);
background-color: var(--background-modifier-hover);
}
.collapseButtonCollapsed {
transform: rotate(-90deg);
}
.collapseIcon {
width: 0.875rem;
height: 0.875rem;
}
.headerIconButton {
display: flex;
align-items: center;
justify-content: center;
width: var(--inbox-icon-button-size);
height: var(--inbox-icon-button-size);
border-radius: var(--inbox-icon-button-radius);
background-color: var(--background-secondary);
color: var(--text-primary-muted);
cursor: pointer;
transition:
color 0.15s ease,
background-color 0.15s ease;
}
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.headerIconButton:hover,
.headerIconButton[data-context-menu-open='true'] {
color: var(--text-primary);
background-color: var(--background-modifier-hover);
}
.headerIcon {
width: 1rem;
height: 1rem;
}
.previewDateDivider :global(.text) {
background-color: var(--form-surface-background);
border-radius: 0.375rem;
padding: 0.125rem 0.625rem;
}
.cardPlaceholder {
display: flex;
align-items: center;
justify-content: center;
min-height: 6rem;
padding: 1rem;
}