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 */
.modalBackdrop {
background: hsl(0deg 0% 0%);
inset: 0;
pointer-events: none;
position: fixed;
will-change: opacity;
}
.layer {
position: fixed;
inset: 0;
left: var(--quick-css-dock-left, 0px);
right: var(--quick-css-dock-right, 0px);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
pointer-events: none;
}
:global(html.platform-native:not(.platform-macos)) .layer {
top: var(--native-titlebar-height);
}
.backdropSlot {
position: absolute;
inset: 0;
pointer-events: none;
overflow: hidden;
}
.positionAbsoluteInsetZero {
position: absolute;
inset: 0;
pointer-events: none;
}
.backdropCentered {
background: rgba(0, 0, 0, 0.35);
backdrop-filter: blur(0.5rem);
-webkit-backdrop-filter: blur(0.5rem);
}
.focusLock {
display: flex;
flex-direction: column;
min-height: 0;
}
.surface {
position: relative;
display: flex;
flex-direction: column;
min-height: 0;
}
.layer.layerFullscreen {
position: absolute;
inset: 0;
left: var(--quick-css-dock-left, 0px);
right: var(--quick-css-dock-right, 0px);
--fullscreen-pad-y: clamp(0.5rem, 1.5vh, 1rem);
--fullscreen-pad-x: clamp(0.75rem, 2vw, 1.5rem);
--fullscreen-view-height: min(100dvh, 100svh, 100vh);
--fullscreen-available-height: calc(var(--fullscreen-view-height) - 2 * var(--fullscreen-pad-y));
display: flex;
align-items: stretch;
justify-content: stretch;
padding: var(--fullscreen-pad-y) var(--fullscreen-pad-x);
margin: 0;
}
.layer.layerFullscreenMobile {
--fullscreen-pad-y: 0px;
--fullscreen-pad-x: 0px;
padding: 0 !important;
}
.layer.layerFullscreenMobile .focusLock,
.layer.layerFullscreenMobile .surface {
contain: layout style paint;
}
.layer.layerFullscreen .focusLock {
position: relative;
padding: 0;
margin: 0;
width: 100%;
flex: 1 1 auto;
max-height: var(--fullscreen-available-height);
height: 100%;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.layer.layerFullscreen .surface {
position: relative;
display: flex;
flex-direction: column;
flex: 1 1 auto;
width: 100%;
max-height: var(--fullscreen-available-height);
height: 100%;
min-height: 0;
overflow: hidden;
}
.layer.layerCentered {
padding: calc(1.5rem + env(safe-area-inset-top, 0px)) calc(1rem + env(safe-area-inset-right, 0px))
calc(1.5rem + env(safe-area-inset-bottom, 0px)) calc(1rem + env(safe-area-inset-left, 0px));
}
.root.centeredOnMobile {
width: 100%;
max-width: min(25rem, calc(100vw - 2rem));
max-height: 100%;
border-radius: 1rem;
box-sizing: border-box;
}
.root {
position: relative;
margin: 0 auto;
max-height: calc(100svh - 3rem);
display: flex;
flex-direction: column;
background-color: var(--background-secondary);
border: 0.0625rem solid var(--background-header-secondary);
border-radius: 0.5rem;
box-shadow:
0 0 0 0.0625rem hsla(223, 7%, 20%, 0.08),
0 0.5rem 1.5rem -0.25rem rgba(0, 0, 0, 0.25),
0 1.25rem 3rem -0.5rem rgba(0, 0, 0, 0.2);
overflow: hidden;
pointer-events: all;
}
.rootAnimating {
will-change: transform, opacity;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
:global(html.platform-native.platform-macos) .root {
max-height: calc(100svh - 3rem - var(--native-titlebar-height, 2rem));
}
.root.medium {
min-height: 25rem;
width: 37.5rem;
}
.root.small {
width: 27.5rem;
}
.root.small:has(.footer, .formFooter) {
min-height: 12.5rem;
}
.root.large {
min-height: 25rem;
width: 50rem;
}
.root.xlarge {
height: min(60rem, calc(100svh - 2.5rem));
width: min(92rem, calc(100vw - 2.5rem));
}
.root.fullscreen {
position: relative;
flex: 1 1 auto;
height: calc(100% - 0.125rem);
min-height: 0;
max-height: calc(var(--fullscreen-available-height) - 0.125rem);
width: calc(100% - 0.125rem);
max-width: calc(clamp(60rem, 96vw, 87.5rem) - 0.125rem);
border: 0.0625rem solid var(--background-header-secondary);
border-radius: clamp(0.5rem, 1vw, 0.75rem);
box-sizing: border-box;
padding: 0;
background: var(--background-secondary);
box-shadow:
0 0 0 0.0625rem hsla(223, 7%, 20%, 0.08),
0 0.5rem 1.5rem -0.25rem rgba(0, 0, 0, 0.25),
0 1.25rem 3rem -0.5rem rgba(0, 0, 0, 0.2);
overflow: hidden;
display: flex;
flex-direction: column;
margin: auto;
}
.layerFullscreenMobile .root.fullscreen {
border-radius: 0 !important;
border: none !important;
box-shadow: none !important;
max-height: 100%;
isolation: isolate;
}
@media screen and (min-width: 768px) {
.layer.layerFullscreen {
--fullscreen-pad-y: clamp(0.75rem, 2vh, 1.5rem);
--fullscreen-pad-x: clamp(1.5rem, 4vw, 4rem);
padding: var(--fullscreen-pad-y) var(--fullscreen-pad-x);
}
}
@media screen and (min-width: 1024px) {
.layer.layerFullscreen {
--fullscreen-pad-y: clamp(1rem, 2.5vh, 2rem);
--fullscreen-pad-x: clamp(2rem, 6vw, 6rem);
padding: var(--fullscreen-pad-y) var(--fullscreen-pad-x);
}
}
@media screen and (min-width: 1440px) {
.layer.layerFullscreen {
--fullscreen-pad-y: clamp(1.25rem, 3vh, 2.5rem);
--fullscreen-pad-x: clamp(3rem, 8vw, 8rem);
padding: var(--fullscreen-pad-y) var(--fullscreen-pad-x);
}
}
@media screen and (min-width: 1920px) {
.layer.layerFullscreen {
--fullscreen-pad-y: clamp(1.5rem, 3.5vh, 3rem);
--fullscreen-pad-x: clamp(4rem, 10vw, 12.5rem);
padding: var(--fullscreen-pad-y) var(--fullscreen-pad-x);
}
}
@media screen and (min-width: 2560px) {
.layer.layerFullscreen {
--fullscreen-pad-y: clamp(1.75rem, 4vh, 3.5rem);
--fullscreen-pad-x: clamp(6rem, 12vw, 20rem);
padding: var(--fullscreen-pad-y) var(--fullscreen-pad-x);
}
}
.layout {
flex: 0 0 auto;
position: relative;
z-index: 1;
overflow-x: hidden;
padding: 1rem;
}
.layout.header {
display: flex;
flex-direction: column;
gap: 0.875rem;
background-color: var(--background-secondary);
}
.layout.header.light {
background-color: var(--background-secondary);
}
.layout.header.dark {
background-color: var(--background-secondary);
}
.layout.footer {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: flex-end;
gap: 0.5rem;
background-color: var(--background-secondary);
}
.layout.footer > * {
flex: 0 0 auto;
min-width: fit-content;
}
.layout.footer.stretchButtons {
align-items: stretch;
flex-direction: column;
justify-content: flex-start;
}
.layout.footer.stretchButtons > * {
min-width: 0;
width: 100%;
}
.layout.footer.stretchButtons button {
width: 100% !important;
}
.centeredOnMobile .layout.footer {
align-items: stretch;
flex-direction: column-reverse;
justify-content: flex-start;
}
:global(html.mobile-layout) .layout.footer {
align-items: stretch !important;
flex-direction: column-reverse !important;
justify-content: flex-start !important;
}
:global(html.mobile-layout) .layout.footer > * {
width: 100% !important;
}
:global(html.mobile-layout) .layout.footer button {
width: 100% !important;
}
.headerInner {
display: flex;
align-items: center;
justify-content: space-between;
}
.headerText {
display: flex;
align-items: center;
gap: 0.5rem;
}
.headerText h3 {
color: var(--text-primary);
font-size: 1.125rem;
font-weight: 600;
line-height: 1.25rem;
margin: 0;
}
.headerInner button {
display: flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
background: transparent;
color: var(--text-primary-muted);
cursor: pointer;
opacity: 0.5;
transition:
background-color 0.12s ease,
color 0.12s ease,
opacity 0.2s ease-in-out;
border: none;
padding: 0.25rem;
border-radius: 0.25rem;
-webkit-tap-highlight-color: transparent;
-webkit-app-region: no-drag;
}
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.headerInner
button:hover {
background: var(--background-modifier-hover);
color: var(--text-primary);
opacity: 1;
}
.headerInner button:active {
opacity: 0.8;
}
.content {
flex: 1 1 auto;
height: 100%;
padding: 0 1rem 1rem;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
overscroll-behavior: contain;
}
.contentNoPadding {
padding: 0;
}
.screenReaderLabel {
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;
}
.insetCloseButtonContainer {
position: absolute;
top: calc(0.75rem + env(safe-area-inset-top, 0px));
right: calc(0.75rem + env(safe-area-inset-right, 0px));
z-index: 10;
pointer-events: auto;
}
.insetCloseButton {
display: flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
border-radius: 624.9375rem;
border: 0.0625rem solid color-mix(in srgb, var(--background-modifier-accent) 70%, transparent);
background: color-mix(in srgb, var(--background-secondary) 55%, transparent);
backdrop-filter: blur(0.625rem);
color: var(--text-primary);
cursor: pointer;
transition:
opacity 0.12s ease,
background-color 0.12s ease,
border-color 0.12s ease;
-webkit-tap-highlight-color: transparent;
-webkit-app-region: no-drag;
}
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.insetCloseButton:hover {
background: color-mix(in srgb, var(--background-secondary) 75%, transparent);
border-color: color-mix(in srgb, var(--background-modifier-accent) 95%, transparent);
}
.insetCloseButton:disabled {
opacity: 0.55;
cursor: default;
}
.contentLayout {
display: flex;
flex-direction: column;
gap: 1rem;
}
.description {
display: block;
color: var(--text-primary-muted);
font-size: 0.875rem;
line-height: 1.4;
}
.inputGroup {
display: flex;
flex-direction: column;
gap: var(--spacing-4);
}
.formFooter {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: flex-end;
gap: 0.5rem;
}
.formFooter > * {
flex: 0 0 auto;
min-width: fit-content;
}
.formFooter.stretchButtons {
align-items: stretch;
flex-direction: column;
justify-content: flex-start;
}
.formFooter.stretchButtons > * {
min-width: 0;
width: 100%;
}
.formFooter.stretchButtons button {
width: 100% !important;
}
.centeredOnMobile .formFooter {
align-items: stretch;
flex-direction: column-reverse;
justify-content: flex-start;
}
:global(html.mobile-layout) .formFooter {
align-items: stretch !important;
flex-direction: column-reverse !important;
justify-content: flex-start !important;
}
:global(html.mobile-layout) .formFooter > * {
width: 100% !important;
}
:global(html.mobile-layout) .formFooter button {
width: 100% !important;
}