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 */
.step {
--preview-stage-height: clamp(9rem, 24svh, 13rem);
display: grid;
grid-template-areas:
'header'
'preview'
'fields';
grid-template-columns: minmax(0, 1fr);
gap: 1.25rem;
width: 100%;
}
.header {
display: flex;
grid-area: header;
flex-direction: column;
gap: 0.375rem;
}
.title {
margin: 0;
outline: none;
color: var(--text-primary);
font-size: 1.5rem;
font-weight: 800;
line-height: 1.2;
}
.body {
margin: 0;
color: var(--text-secondary);
font-size: 0.9375rem;
line-height: 1.55;
}
.previewPane {
--preview-caption-display: none;
position: sticky;
top: 0;
z-index: 2;
grid-area: preview;
min-width: 0;
padding-block: 0.5rem;
background: var(--background-secondary);
}
:global(html.mobile-layout) .previewPane {
top: -2rem;
background: rgb(8 6 22);
}
.fieldsPane {
display: flex;
grid-area: fields;
min-width: 0;
margin-inline: -0.5rem;
}
.fields {
flex: 1 0 auto;
gap: 1.75rem;
padding-block: 0.25rem 1rem;
padding-inline: 0.5rem 1rem;
}
.fields :is(button, input) {
scroll-margin-block: calc(var(--preview-stage-height) + 5rem) 1rem;
}
:global(html.mobile-layout) .fields :is(button, input) {
scroll-margin-block-end: 8.5rem;
}
@container setup-wide (min-width: 46rem) {
.step {
grid-template-areas:
'header preview'
'fields preview';
grid-template-rows: auto minmax(0, 1fr);
grid-template-columns: clamp(20rem, 30cqw, 27rem) minmax(0, 1fr);
column-gap: clamp(1.5rem, 3cqw, 3rem);
height: 100cqh;
margin-block: -0.5rem;
}
.previewPane {
--preview-stage-height: auto;
--preview-caption-display: block;
position: static;
min-height: 0;
padding-block: 0 1.25rem;
background: none;
}
.fieldsPane {
min-height: 0;
}
.fields {
padding-block-end: 1.75rem;
}
.fields :is(button, input) {
scroll-margin-block: 0.5rem;
}
}
.group {
display: flex;
flex-direction: column;
gap: 0.625rem;
}
.groupHeader {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
min-height: 1.75rem;
}
.groupHeading {
margin: 0;
color: var(--text-primary);
font-size: 1rem;
font-weight: 700;
line-height: 1.3;
}
.presets {
display: grid;
grid-template-columns: repeat(10, minmax(0, 1.75rem));
gap: 0.375rem;
}
.preset {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
aspect-ratio: 1;
padding: 0;
border: 0.0625rem solid rgb(255 255 255 / 0.14);
border-radius: 0.5rem;
cursor: pointer;
transition: transform 120ms ease;
}
.preset:hover:not(:disabled) {
transform: scale(1.08);
}
.preset:disabled {
cursor: not-allowed;
opacity: 0.5;
}
.presetSelected {
box-shadow:
0 0 0 0.125rem var(--background-secondary),
0 0 0 0.25rem var(--text-primary);
}
.colorHelp {
color: var(--text-secondary);
font-size: 0.8125rem;
line-height: 1.45;
}
.note {
display: flex;
gap: 0.375rem;
align-items: flex-start;
margin: 0;
color: var(--text-secondary);
font-size: 0.8125rem;
line-height: 1.4;
}
.noteWarning {
color: var(--text-warning);
}
.note svg,
.assetError svg,
.assetWarning svg,
.stepError svg {
flex: 0 0 auto;
margin-top: 0.0625rem;
}
.assetRow {
position: relative;
display: flex;
gap: 0.875rem;
align-items: flex-start;
padding: 0.75rem;
border: 0.0625rem solid var(--background-modifier-accent);
border-radius: 0.625rem;
background: color-mix(in srgb, var(--background-tertiary) 40%, transparent);
transition:
border-color 120ms ease,
background-color 120ms ease;
}
.assetRowEmpty {
border-style: dashed;
}
.assetRow.assetRowError {
border-color: var(--status-danger);
}
.assetRow.assetRowDragging {
border-style: dashed;
border-color: var(--brand-primary-light, #a5a2ff);
background: color-mix(in srgb, var(--brand-primary, #4641d9) 14%, var(--background-tertiary));
}
.thumbnail {
display: flex;
flex: 0 0 auto;
align-items: center;
justify-content: center;
width: 5rem;
height: 3.5rem;
overflow: hidden;
border-radius: 0.5rem;
background-color: #2a2a31;
background-image:
linear-gradient(45deg, #34343c 25%, transparent 25%), linear-gradient(-45deg, #34343c 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #34343c 75%), linear-gradient(-45deg, transparent 75%, #34343c 75%);
background-position:
0 0,
0 0.375rem,
0.375rem -0.375rem,
-0.375rem 0;
background-size: 0.75rem 0.75rem;
}
.resetHidden {
visibility: hidden;
}
.thumbnail img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
.thumbnailCover img {
width: 100%;
height: 100%;
object-fit: cover;
}
.thumbnailEmpty {
border: 0.0625rem solid var(--background-modifier-accent);
background: var(--background-secondary);
color: var(--text-tertiary);
}
.assetBody {
display: flex;
flex: 1 1 auto;
flex-direction: column;
gap: 0.25rem;
min-width: 0;
}
.assetLabel {
margin: 0;
color: var(--text-primary);
font-size: 0.875rem;
font-weight: 700;
line-height: 1.3;
}
.assetHint {
margin: 0;
color: var(--text-secondary);
font-size: 0.8125rem;
line-height: 1.4;
}
.helpToggle {
display: flex;
margin-inline-start: -0.5rem;
}
.helpToggleIcon {
transition: transform 120ms ease;
}
[aria-expanded='true'] .helpToggleIcon {
transform: rotate(180deg);
}
.help {
display: none;
flex-direction: column;
gap: 0.25rem;
color: var(--text-secondary);
font-size: 0.8125rem;
line-height: 1.45;
}
.help p {
margin: 0;
}
.help p + p {
color: var(--text-tertiary);
}
.help.helpOpen {
display: flex;
}
@container setup-wide (min-width: 46rem) {
.helpToggle {
display: none;
}
.help,
.help.helpOpen {
position: absolute;
display: block;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
}
.assetMeta {
margin: 0;
color: var(--text-tertiary);
font-size: 0.75rem;
line-height: 1.4;
}
.assetStatus {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.assetError,
.assetWarning {
display: flex;
gap: 0.375rem;
align-items: flex-start;
margin: 0;
font-size: 0.8125rem;
line-height: 1.4;
}
.assetError {
color: color-mix(in srgb, var(--status-danger) 70%, var(--text-primary));
}
.assetWarning {
color: var(--text-warning);
}
.assetActions {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 0.25rem;
}
.stepError {
display: flex;
gap: 0.375rem;
align-items: flex-start;
margin: 0;
color: color-mix(in srgb, var(--status-danger) 70%, var(--text-primary));
font-size: 0.875rem;
line-height: 1.45;
}
@media (prefers-reduced-motion: reduce) {
.assetRow,
.preset,
.helpToggleIcon {
transition: none;
}
}