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 */
.backdrop {
position: fixed;
inset: 0;
background: transparent;
pointer-events: auto;
z-index: calc(var(--z-index-contextmenu) - 1);
user-select: none;
-webkit-user-select: none;
}
.contextMenuPositioner {
z-index: var(--z-index-contextmenu);
outline: none;
}
.contextMenu {
--context-menu-viewport-max-width: calc(100vw - 1.5rem);
--context-menu-danger-text: color-mix(in srgb, var(--status-danger) 78%, var(--text-primary) 22%);
--context-menu-danger-background: color-mix(in srgb, var(--status-danger) 6%, var(--surface-interactive-hover-bg));
--context-menu-danger-control-border: color-mix(in srgb, var(--status-danger) 46%, transparent);
pointer-events: auto;
min-width: min(13rem, var(--context-menu-viewport-max-width));
max-width: min(21.5rem, var(--context-menu-viewport-max-width), var(--available-width, 21.5rem));
width: max-content;
max-height: min(calc(100vh - 1.5rem), var(--available-height, calc(100vh - 1.5rem)));
padding: 0.375rem;
background-color: var(--form-surface-background);
border: 0.0625rem solid var(--background-modifier-accent);
border-radius: 0.5rem;
box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 0.24);
outline: none;
box-sizing: border-box;
-webkit-app-region: no-drag;
display: flex;
flex-direction: column;
overflow: hidden;
}
:global(.theme-light) .contextMenu {
box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 0.14);
}
.menuScroller {
--scroller-thumb-inline-end: 0px;
max-height: inherit;
min-height: 0;
}
.menuScrollerContent[data-scroller-has-track='true'] {
padding-inline-end: var(--scroller-track-size, 0.5rem);
}
.item {
all: unset;
display: grid;
grid-template-columns: 1fr auto;
align-items: center;
gap: 0.5rem;
padding: 0.3125rem 0.5rem;
margin: 0;
border: 0.0625rem solid transparent;
border-radius: 0.375rem;
background-color: transparent;
font-size: 0.8125rem;
font-weight: 500;
line-height: 1.125rem;
color: var(--text-primary);
cursor: pointer;
box-sizing: border-box;
min-height: 2rem;
width: 100%;
transition: none;
}
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.item:is(:hover, [data-hovered], [data-focus-visible], [data-highlighted]):not(.disabled):not([data-disabled]) {
background-color: var(--surface-interactive-hover-bg);
color: var(--text-primary);
}
.item.disabled {
color: var(--interactive-muted);
cursor: not-allowed;
opacity: 0.5;
}
.item.danger {
color: var(--context-menu-danger-text);
}
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.item.danger:is(:hover, [data-hovered], [data-focus-visible], [data-highlighted]):not(.disabled):not(
[data-disabled]
) {
background-color: var(--context-menu-danger-background);
color: var(--context-menu-danger-text);
}
.itemIcon {
width: 1.125rem;
height: 1.125rem;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
grid-column: 2;
}
.itemIcon > svg {
width: 1.125rem;
height: 1.125rem;
display: block;
flex-shrink: 0;
}
.itemLabel {
grid-column: 1;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
min-height: 1.125rem;
min-width: 0;
overflow: hidden;
}
.itemWithShortcut {
grid-template-columns: 1fr;
gap: 0;
}
.itemWithShortcut .itemLabel {
grid-column: 1;
}
.itemShortcut {
color: var(--text-primary-muted);
font-size: 0.75rem;
font-family: var(--font-keybind);
white-space: nowrap;
flex-shrink: 0;
}
.itemShortcutHidden {
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;
pointer-events: none;
}
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.item.danger:is(:hover, [data-hovered], [data-focus-visible], [data-open], [data-popup-open]):not(.disabled):not(
[data-disabled]
)
.itemShortcut {
color: var(--context-menu-danger-text);
}
.itemLabelContainer {
grid-column: 1;
display: flex;
flex-direction: column;
min-width: 0;
}
.itemLabelText {
display: flex;
align-items: center;
min-height: 1.125rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.itemHint {
color: var(--text-tertiary-muted);
font-size: 0.75rem;
line-height: 1rem;
margin-top: 0.0625rem;
white-space: normal;
overflow-wrap: anywhere;
max-width: 20rem;
}
.submenuCaret {
width: 0.875rem;
height: 0.875rem;
flex-shrink: 0;
color: var(--text-tertiary);
grid-column: 2;
display: flex;
align-items: center;
justify-content: center;
}
:global(html[dir='rtl']) .submenuCaret {
scale: -1 1;
}
.item:is([data-open], [data-popup-open]):not(.disabled):not([data-disabled]) {
background-color: var(--surface-interactive-hover-bg);
color: var(--text-primary);
}
.item.danger:is([data-open], [data-popup-open]):not(.disabled):not([data-disabled]) {
background-color: var(--context-menu-danger-background);
color: var(--context-menu-danger-text);
}
.separator {
height: 0.0625rem;
margin: 0.25rem 0.125rem;
background-color: var(--background-modifier-accent);
opacity: 0.55;
flex: none;
}
@supports (-moz-appearance: none) {
.separator {
height: 0.125rem;
background-color: transparent;
opacity: 1;
}
.separator::before {
content: '';
display: block;
width: 100%;
height: 100%;
background-color: var(--background-modifier-accent);
opacity: 0.18;
border-radius: 62.4375rem;
}
}
.separator:last-child,
.separator:first-child,
.separator + .separator,
.group:empty + .separator {
display: none;
}
.group:empty {
display: none;
}
.selectableSection {
display: contents;
}
.checkboxItem {
display: grid !important;
grid-template-columns: 1fr auto !important;
align-items: center;
gap: 0.5rem;
}
.checkboxItem .itemLabel {
grid-column: 1;
}
.checkboxItem .checkboxIndicator {
grid-column: 2;
}
.checkboxIndicator {
width: 1.125rem;
height: 1.125rem;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
grid-column: 2;
}
.checkbox {
width: 1rem;
height: 1rem;
border: 0.0625rem solid var(--background-modifier-accent);
border-radius: 0.25rem;
background-color: var(--form-surface-background);
display: flex;
align-items: center;
justify-content: center;
position: relative;
box-sizing: border-box;
transition: none;
}
.checkboxChecked {
background-color: var(--brand-primary);
border-color: var(--brand-primary-foreground);
}
.checkboxChecked::after {
content: '';
position: absolute;
left: 50%;
top: 50%;
width: 0.25rem;
height: 0.5625rem;
border: solid var(--brand-primary-fill);
border-width: 0 0.15625rem 0.15625rem 0;
transform: translate(-50%, -60%) rotate(45deg);
}
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.item.danger:hover
.checkbox {
border-color: var(--context-menu-danger-control-border);
background-color: var(--form-surface-background);
}
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.item.danger:hover
.checkboxChecked {
background-color: var(--status-danger);
border-color: var(--status-danger);
}
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.item.danger:hover
.checkboxChecked::after {
border-color: white;
}
.group {
display: flex;
flex-direction: column;
}
.groupLabel {
padding: 0.25rem 0.5rem 0.125rem;
margin-top: 0.125rem;
font-size: 0.6875rem;
font-weight: 600;
line-height: 1rem;
text-transform: uppercase;
letter-spacing: 0.02em;
color: var(--text-tertiary);
}
.submenuPopover {
--context-menu-danger-text: color-mix(in srgb, var(--status-danger) 78%, var(--text-primary) 22%);
--context-menu-danger-background: color-mix(in srgb, var(--status-danger) 6%, var(--surface-interactive-hover-bg));
--context-menu-danger-control-border: color-mix(in srgb, var(--status-danger) 46%, transparent);
pointer-events: auto !important;
min-width: 13rem;
max-width: min(21.5rem, var(--available-width, 21.5rem));
width: max-content;
padding: 0.375rem;
background-color: var(--form-surface-background);
border: 0.0625rem solid var(--background-modifier-accent);
border-radius: 0.5rem;
box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 0.24);
outline: none;
box-sizing: border-box;
-webkit-app-region: no-drag;
display: flex;
flex-direction: column;
max-height: min(calc(100vh - 1.5rem), var(--available-height, calc(100vh - 1.5rem)));
overflow: hidden;
}
:global(.theme-light) .submenuPopover {
box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 0.14);
}
.submenuScroller {
--scroller-thumb-inline-end: 0px;
max-height: inherit;
min-height: 0;
}
.quickReactionsGroup {
display: flex !important;
flex-direction: row;
align-items: center;
gap: 0.25rem;
padding: 0.25rem 0.375rem 0.375rem;
}
.quickReactionItem {
all: unset;
position: relative;
display: flex;
align-items: center;
justify-content: center;
flex: 1;
aspect-ratio: 1;
border-radius: 0.375rem;
cursor: pointer;
background-color: var(--background-modifier-selected);
box-sizing: border-box;
transition: background-color 0.15s ease;
}
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.quickReactionItem:hover,
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.quickReactionItem:is([data-highlighted], [data-focused], [data-focus-visible]) {
background-color: var(--background-modifier-accent);
}
.quickReactionShortcut {
position: absolute;
inset-inline-end: 0.3125rem;
top: 0.25rem;
color: var(--text-primary-muted);
font-size: 0.625rem;
line-height: 1;
font-family: var(--font-keybind);
pointer-events: none;
}
.quickReactionTooltipContent {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.125rem;
}
.quickReactionTooltipHint {
color: var(--text-secondary);
font-size: 0.75rem;
line-height: 1rem;
}
.emojiSubmenuIcon {
width: 1.375rem;
height: 1.375rem;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.emojiSubmenuImg {
width: 1.375rem;
height: 1.375rem;
object-fit: contain;
}