A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
style(app): restyle the self-hosted setup wizard
Hampusf20a325cbe75
diff --git a/fluxer_app/src/features/app/components/setup/SelfHostedSetupWizardGate.module.css b/fluxer_app/src/features/app/components/setup/SelfHostedSetupWizardGate.module.cssindex 98d869789..06527adc3 100644--- a/fluxer_app/src/features/app/components/setup/SelfHostedSetupWizardGate.module.css+++ b/fluxer_app/src/features/app/components/setup/SelfHostedSetupWizardGate.module.css@@ -1,41 +1,64 @@/* SPDX-License-Identifier: AGPL-3.0-or-later */-.backdrop {- isolation: isolate;- min-height: 100vh;- background:- radial-gradient(ellipse at 50% 0%, rgba(75, 168, 255, 0.34), transparent 58%),- linear-gradient(135deg, #071125 0%, #0b3f96 36%, #092151 68%, #050913 100%);+:global(flx-auth-card-surface).card {+ --setup-card-gutter: clamp(1rem, 4vw, 3rem);+ flex-direction: column;+ max-width: 40rem;+ height: min(46rem, calc(100svh - 2 * var(--setup-card-gutter)));+ transition:+ max-width 220ms ease,+ box-shadow 180ms ease;}-.backdropVisual {- position: absolute;- inset: 0;- background:- linear-gradient(160deg, rgba(31, 147, 255, 0.24) 0%, transparent 42%),- linear-gradient(135deg, #071225 0%, #0a4cbd 40%, #0b1d45 72%, #050812 100%);+:global(flx-auth-card-surface).cardWide {+ max-width: none;+ height: calc(100svh - 2 * var(--setup-card-gutter));}-.modal {- width: min(34rem, calc(100vw - 2rem)) !important;- min-height: 0 !important;- border-color: rgba(148, 180, 255, 0.16) !important;- background: color-mix(in srgb, var(--background-secondary) 92%, #0b1830) !important;- box-shadow:- 0 1.5rem 4rem rgba(0, 0, 0, 0.36),- 0 0 0 0.0625rem rgba(160, 190, 255, 0.08) !important;+:global(flx-auth-card-form-side).cardBody {+ display: flex;+ flex: 1 1 auto;+ flex-direction: column;+ min-height: 0;+ padding: 0;}-.modal :global([data-flx='app.self-hosted-setup-wizard-gate.header']) {- background: transparent;- padding: 1.125rem 1.25rem 0.75rem;+.cardInner {+ display: flex;+ flex: 1 1 auto;+ flex-direction: column;+ min-height: 0;+}++.progressTrack {+ flex: 0 0 auto;+ height: 0.25rem;+ background: color-mix(in srgb, var(--background-modifier-accent) 60%, transparent);+ overflow: hidden;+}++.progressFill {+ height: 100%;+ background: var(--brand-primary, #4641d9);+ transition: width 200ms ease;}.contentScroller {- padding: 1.25rem;+ flex: 1 1 auto;+ min-height: 0;}-.contentScroller > .contentFrame {+.contentFrame {+ flex: 1 0 auto;+ padding: 2rem 1.5rem 1.5rem;+}++.wideScroller {+ container: setup-wide / size;+ padding: 1.75rem clamp(1.25rem, 2.5vw, 2.5rem) 0;+}++.wideFrame {flex: 1 0 auto;}@@ -44,21 +67,64 @@flex: 1 0 auto;flex-direction: column;justify-content: center;- min-height: min(33rem, calc(100svh - 12.5rem));}-.step {+.mobileWizard {+ display: flex;+ flex-direction: column;+ min-height: calc(100dvh - 4.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));+}++.mobileWizard .progressTrack {+ margin-bottom: 1.5rem;+ border-radius: 999px;+}++.mobileBody {+ display: flex;+ flex: 1 0 auto;+ flex-direction: column;+ padding-block-end: 8rem;+}++.mobileFooter {+ position: fixed;+ inset-inline: 0;+ bottom: 0;+ z-index: 20;+ padding-block-end: env(safe-area-inset-bottom, 0px);+ background: rgb(8 6 22);+}++.mobileFooter::before {+ content: '';+ position: absolute;+ inset-inline: 0;+ bottom: 100%;+ height: 1.5rem;+ background: linear-gradient(to bottom, rgb(8 6 22 / 0), rgb(8 6 22));+ pointer-events: none;+}++.mobileFooter .footer {+ border-top: 0;+ padding-inline: 1.5rem;+ padding-block-end: 0.5rem;+}++.step,+.welcomeStep {display: flex;flex-direction: column;- justify-content: center;gap: 1.125rem;width: 100%;- max-width: 30rem;+ max-width: 35rem;margin: 0 auto;}-.step:focus {- outline: none;+.welcomeStep {+ align-items: center;+ text-align: center;}.centeredStep {@@ -69,7 +135,7 @@gap: 1.125rem;width: 100%;min-height: 16rem;- max-width: 26rem;+ max-width: 30rem;margin: 0 auto;text-align: center;}@@ -77,17 +143,57 @@.stepHeader {display: flex;flex-direction: column;- align-items: flex-start;gap: 0.5rem;- text-align: left;}+.title {+ margin: 0;+ color: var(--text-primary);+ font-size: 1.5rem;+ font-weight: 800;+ line-height: 1.25;+ outline: none;+}++.body,+.welcomeBody {+ margin: 0;+ color: var(--text-secondary);+ font-size: 0.9375rem;+ line-height: 1.55;+}++.welcomeBody {+ max-width: 30rem;+}++.note {+ margin: 0;+ padding: 0.75rem 0.875rem;+ border-radius: 0.5rem;+ background: color-mix(in srgb, var(--background-modifier-accent) 40%, transparent);+ color: var(--text-primary);+ font-size: 0.875rem;+ line-height: 1.5;+}++.visuallyHidden {+ position: absolute;+ width: 1px;+ height: 1px;+ margin: -1px;+ padding: 0;+ overflow: hidden;+ clip: rect(0 0 0 0);+ white-space: nowrap;+ border: 0;+}++.welcomeHeroWrap,.welcomeHero {display: flex;- flex-direction: column;- align-items: center;- gap: 0.65rem;- text-align: center;+ justify-content: center;+ width: 100%;}.welcomeWordFrame {@@ -95,7 +201,7 @@display: grid;place-items: center;width: 100%;- height: 7.5rem;+ height: 7rem;overflow: hidden;}@@ -103,7 +209,7 @@.welcomeWordMeasure {display: inline-block;margin: 0;- font-size: 4.75rem;+ font-size: 4.5rem;font-weight: 850;line-height: 1;letter-spacing: 0;@@ -122,178 +228,183 @@pointer-events: none;}-.welcomeTitle {- margin: 0;- color: var(--text-primary);- font-size: 1.125rem;- font-weight: 750;- line-height: 1.25;-}-.localeBlock {display: flex;flex-direction: column;- gap: 0.625rem;- width: min(100%, 24rem);- margin: 1rem auto 0;+ gap: 0.5rem;+ width: min(100%, 22rem);+ margin-top: 0.5rem;+ text-align: start;}.localeSelector {width: 100%;}-.themeBlock {- display: flex;- justify-content: center;- width: 100%;- margin-top: 0.125rem;-}--.themeButtonGroup {- flex-wrap: wrap;- justify-content: center;-}--.title {- margin: 0;+.fieldLabel {color: var(--text-primary);- font-size: 1.5rem;- font-weight: 800;- line-height: 1.2;+ font-size: 0.875rem;+ font-weight: 700;}-.body {- margin: 0;+.fieldHelp {+ margin: 0.375rem 0 0;color: var(--text-secondary);- font-size: 0.9375rem;- line-height: 1.55;+ font-size: 0.8125rem;+ line-height: 1.45;}-.accountSetupForm {- width: 100%;+.fieldRow {+ display: grid;+ grid-template-columns: minmax(0, 1fr) 7rem;+ gap: 0.875rem;+ align-items: start;}-.accountSetupForm > form {- margin-top: 0;- gap: 0.875rem;+.monospaceInput {+ font-family: var(--font-code, ui-monospace, SFMono-Regular, Menlo, monospace);}-.fieldLabel {+.codeRow {+ display: flex;+ gap: 0.5rem;+ align-items: center;+ min-width: 0;+ padding-block: 0.375rem;+ padding-inline: 0.75rem 0.375rem;+ border-radius: 0.375rem;+ background: var(--background-tertiary);+}++.codeBlock {+ flex: 1 1 auto;+ min-width: 0;+ padding: 0;+ border: 0;+ background: none;color: var(--text-primary);- font-size: 0.875rem;- font-weight: 700;+ font-family: var(--font-code, ui-monospace, SFMono-Regular, Menlo, monospace);+ font-size: 0.8125rem;+ white-space: pre-wrap;+ overflow-wrap: anywhere;}-.assetSection {- display: flex;- flex-direction: column;- gap: 10px;+.codeRow > :last-child {+ flex: 0 0 auto;}-.assetRow {- display: grid;- grid-template-columns: 3rem 1fr auto;- gap: 0.75rem;- align-items: center;- border: 0.0625rem solid var(--background-modifier-accent);- border-radius: 0.5rem;- padding: 0.625rem 0.75rem;- background: var(--background-secondary);+:global(flx-auth-card-surface).card :where(h1, h2, h3, h4, p, span, label, code, li, dt, dd, strong, em, a) {+ user-select: text !important;+ -webkit-user-select: text !important;}-.assetPreview {- display: flex;- align-items: center;- justify-content: center;- width: 3rem;- height: 3rem;- overflow: hidden;- border-radius: 0.5rem;- background: var(--background-tertiary);- color: var(--text-tertiary);+:global(flx-auth-card-surface).card :where(button, [role='button'], [role='radio'], [role='tab']) :where(*) {+ user-select: none !important;+ -webkit-user-select: none !important;}-.assetImage {+.accountForm {width: 100%;- height: 100%;- object-fit: contain;}-.assetLabel {- color: var(--text-primary);- font-size: 0.875rem;+.accountForm > form {+ margin-top: 0;+ gap: 0.875rem;+}++.actionRow {+ display: flex;+ flex-wrap: wrap;+ gap: 0.75rem;+}++.success {+ display: inline-flex;+ gap: 0.375rem;+ align-items: center;+ margin: 0;+ color: var(--status-online, #23a55a);+ font-size: 0.9375rem;font-weight: 600;}-.assetActions {+.alertBlock {display: flex;+ flex-direction: column;gap: 0.5rem;- align-items: center;+ align-items: flex-start;}-.emptyNote {+.alert {margin: 0;- color: var(--text-secondary);+ color: var(--status-danger);font-size: 0.875rem;line-height: 1.45;- text-align: center;+ overflow-wrap: anywhere;}-.noticeLink {+.link {align-self: flex-start;border-radius: 0.25rem;color: var(--text-link);- font-size: 0.875rem;- line-height: 1.45;+ font-size: 0.9375rem;text-decoration: underline;}-.integrationFields {- display: flex;- flex-direction: column;- gap: 0.875rem;+.textButton {+ align-self: flex-start;+ padding: 0.25rem 0;+ border: 0;+ border-radius: 0.25rem;+ background: none;+ color: var(--text-link);+ font: inherit;+ font-size: 0.875rem;+ font-weight: 600;+ cursor: pointer;}-.integrationGrid {- display: flex;- flex-direction: column;- gap: 0.875rem;+.textButton:hover:not(:disabled) {+ text-decoration: underline;}-.collapsibleReveal {- overflow: hidden;+.textButton:disabled {+ cursor: not-allowed;+ opacity: 0.6;}-.integrationActionRow {+.storedKey {display: flex;gap: 0.75rem;align-items: center;justify-content: space-between;- min-width: 0;+ padding: 0.75rem 0.875rem;+ border: 0.0625rem solid var(--background-modifier-accent);+ border-radius: 0.5rem;}-.integrationStatus {+.storedKeyText {+ display: flex;+ flex-direction: column;+ gap: 0.25rem;min-width: 0;- color: var(--text-secondary);- font-size: 0.8125rem;- line-height: 1.35;- text-align: right;}.summary {display: flex;flex-direction: column;+ margin: 0;border: 0.0625rem solid var(--background-modifier-accent);border-radius: 0.5rem;overflow: hidden;}.summaryRow {- display: flex;+ display: grid;+ grid-template-columns: minmax(7rem, 2fr) minmax(0, 3fr);gap: 0.75rem;align-items: center;- justify-content: space-between;- padding: 0.625rem 0.75rem;+ padding: 0.625rem 0.875rem;}.summaryRow:not(:last-child) {@@ -306,100 +417,160 @@}.summaryValue {+ display: flex;+ gap: 0.75rem;+ align-items: center;+ justify-content: space-between;+ min-width: 0;+ margin: 0;color: var(--text-primary);font-size: 0.875rem;font-weight: 600;- text-align: right;}-.submitError {- margin: 0;- color: var(--status-danger);- font-size: 0.875rem;- line-height: 1.45;- text-align: center;+.summaryValueText {+ min-width: 0;+ overflow-wrap: anywhere;}-.footerReveal {+.summaryValue .textButton {flex: 0 0 auto;- overflow: hidden;+ align-self: center;+}++.lookSummary {+ display: inline-flex;+ gap: 0.5rem;+ align-items: center;+}++.colorSwatch {+ width: 1rem;+ height: 1rem;+ border-radius: 0.25rem;+}++.logoThumb {+ max-width: 2.5rem;+ max-height: 1.5rem;+ object-fit: contain;+}++.doneIcon {+ color: var(--status-online, #23a55a);+}++.doneActions {+ display: flex;+ flex-wrap: wrap;+ gap: 0.75rem;+ align-items: center;+ min-width: 0;+}++.doneActions > button {+ height: auto;+ text-align: center;+}++.doneActions > button * {+ min-width: 0;+ white-space: normal;+ overflow-wrap: anywhere;}.footer {- background: transparent;+ display: flex;+ flex: 0 0 auto;+ gap: 0.75rem;+ align-items: center;+ justify-content: space-between;+ padding: 0.875rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));border-top: 0.0625rem solid color-mix(in srgb, var(--background-modifier-accent) 72%, transparent);- padding: 0.875rem 1.25rem 1.125rem;}-.footerActions {+.footerStart {display: flex;+ gap: 0.875rem;align-items: center;- justify-content: space-between;- gap: 0.75rem;- width: 100%;min-width: 0;}+.stepCount {+ color: var(--text-secondary);+ font-size: 0.8125rem;+ white-space: nowrap;+}+.footerPrimary {display: flex;- margin-left: auto;+ margin-inline-start: auto;}-.footerActions button {- min-width: 7rem;- white-space: nowrap;+.primaryButton {+ min-width: 8rem;+}++.submitSlot {+ display: contents;+}++.backNarrow {+ display: none;}@media (max-width: 520px) {- .modal {- width: calc(100vw - 1rem) !important;+ .welcomeWord,+ .welcomeWordMeasure {+ font-size: 3.25rem;}- .contentScroller {- padding-right: 1rem;- padding-left: 1rem;+ .contentFrame {+ padding-inline: 1rem;}- .assetRow {- grid-template-columns: 3rem 1fr;+ .fieldRow {+ grid-template-columns: minmax(0, 1fr);}- .assetActions {- grid-column: 1 / -1;- justify-content: flex-end;+ .summaryRow {+ grid-template-columns: minmax(0, 1fr);+ gap: 0.25rem;}+}- .integrationActionRow {- align-items: flex-start;- flex-direction: column;+@media (max-width: 479px) {+ .footer {+ flex-direction: column-reverse;+ align-items: stretch;+ padding-inline: 1rem;}- .integrationStatus {- text-align: left;+ .footerStart {+ justify-content: space-between;}- .welcomeWord,- .welcomeWordMeasure {- font-size: 3.4rem;+ .footerPrimary {+ margin-inline-start: 0;}- .footer {- padding-right: 1rem;- padding-left: 1rem;+ .footerPrimary > *,+ .primaryButton {+ width: 100%;}-}-.usernameStyle {- display: flex;- flex-direction: column;- gap: 0.625rem;- padding-top: 0.875rem;- border-top: 1px solid var(--background-modifier-accent);+ .backWide {+ display: none;+ }++ .backNarrow {+ display: inline-flex;+ }}-.usernameStyleTitle {- margin: 0;- color: var(--text-primary);- font-size: 0.9375rem;- font-weight: 600;+@media (prefers-reduced-motion: reduce) {+ .progressFill,+ :global(flx-auth-card-surface).card {+ transition: none;+ }}