A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
refactor(app): remove the old account picker and switcher styles
Hampus21e8c5dc531a
diff --git a/fluxer_app/src/features/auth/components/accounts/AccountRow.module.css b/fluxer_app/src/features/auth/components/accounts/AccountRow.module.cssdeleted file mode 100644index dd1b4354c..000000000--- a/fluxer_app/src/features/auth/components/accounts/AccountRow.module.css+++ /dev/null@@ -1,99 +0,0 @@-/* SPDX-License-Identifier: AGPL-3.0-or-later */--.row {- display: flex;- align-items: center;- width: 100%;- gap: 0.5rem;- border-radius: 0.75rem;-}--.mainButton {- display: flex;- align-items: center;- gap: 0.75rem;- flex: 1;- min-width: 0;- padding: 0.5rem 0.75rem;- border-radius: 0.75rem;- text-align: start;- background-color: var(--background-secondary);- border: 0.0625rem solid var(--background-modifier-accent);-}--button.clickable {- cursor: pointer;- transition: background-color 0.15s ease;-}--button.clickable:hover {- background-color: var(--background-modifier-hover);-}--button.clickable:active {- background-color: var(--background-modifier-selected);-}--.disabled {- cursor: default;- opacity: 0.5;-}--.avatarWrap {- flex-shrink: 0;-}--.body {- display: flex;- flex-direction: column;- gap: 0.25rem;- flex: 1;- min-width: 0;-}--.titleRow {- display: flex;- align-items: center;- gap: 0.4rem;-}--.primaryLine {- font-weight: 600;- font-size: 0.9rem;-}--.currentName {- color: var(--accent-success);- font-weight: 700;-}--.discriminator {- color: var(--text-tertiary);- font-weight: 400;-}--.currentFlag {- font-size: 0.75rem;- color: var(--status-online);-}--.expired {- font-size: 0.75rem;- color: var(--status-danger);-}--.manage .mainButton {- padding: 0.65rem 0.75rem;-}--.manage .primaryLine {- font-size: 1rem;-}--.caretIndicator {- display: flex;- align-items: center;- justify-content: center;- flex-shrink: 0;- color: var(--text-secondary);-}diff --git a/fluxer_app/src/features/auth/components/accounts/AccountSwitcherModal.module.css b/fluxer_app/src/features/auth/components/accounts/AccountSwitcherModal.module.cssdeleted file mode 100644index 1a6633c8d..000000000--- a/fluxer_app/src/features/auth/components/accounts/AccountSwitcherModal.module.css+++ /dev/null@@ -1,23 +0,0 @@-/* SPDX-License-Identifier: AGPL-3.0-or-later */--.content {- padding: 0;-}--.footer {- padding: 0.75rem 0.75rem 0.5rem;-}--.confirmPanel {- display: flex;- flex-direction: column;- gap: 0.75rem;- padding: 0.75rem;-}--.confirmText {- margin: 0;- color: var(--text-secondary);- font-size: 0.875rem;- line-height: 1.4;-}diff --git a/fluxer_app/src/features/auth/components/accounts/account_switcher_modal/AccountProfilePicker.module.css b/fluxer_app/src/features/auth/components/accounts/account_switcher_modal/AccountProfilePicker.module.cssdeleted file mode 100644index ddf90cdcf..000000000--- a/fluxer_app/src/features/auth/components/accounts/account_switcher_modal/AccountProfilePicker.module.css+++ /dev/null@@ -1,409 +0,0 @@-/* SPDX-License-Identifier: AGPL-3.0-or-later */--.root {- --account-profile-frame-size: 12rem;- --account-profile-slot-gap: 0.625rem;- --account-profile-slot-width: 14.875rem;- --account-profile-instance-badge-size: 3rem;- --account-profile-state-badge-size: 2.25rem;- --account-profile-name-color: var(--text-on-dark);- --account-profile-domain-height: 0;- --account-profile-domain-gap: 0;- --account-profile-name-gap: 0.625rem;- --account-profile-name-height: 1.5rem;- --account-profile-more-size: 1.25rem;- width: 100%;- min-width: 0;-}--.scroller {- max-height: none;- padding: 0.5rem 1rem 1rem;-}--.list {- position: relative;- display: flex;- width: max-content;- min-width: 100%;- box-sizing: border-box;- flex: 0 0 auto;- align-items: flex-start;- justify-content: center;- gap: var(--account-profile-slot-gap);- margin: 0 auto;- padding: 0.75rem 0.25rem 0.5rem;- isolation: isolate;-}--.tileSlot {- position: relative;- width: var(--account-profile-slot-width);- flex: 0 0 var(--account-profile-slot-width);- min-width: 0;-}--.tileSlotWithDomain {- --account-profile-domain-height: 1.1rem;- --account-profile-domain-gap: 0.3rem;- --account-profile-name-gap: 0.125rem;-}--.tile {- position: relative;- z-index: 1;- display: grid;- width: 100%;- min-width: 0;- min-height: var(--account-profile-frame-size);- grid-template-rows: var(--account-profile-frame-size);- align-content: start;- justify-items: center;- padding: 0;- border: 0;- border-radius: var(--radius-lg);- background: transparent;- color: var(--text-secondary);- cursor: pointer;- outline: none;- text-align: center;- transition:- color 40ms ease,- opacity 40ms ease;- -webkit-tap-highlight-color: transparent;-}--.tile:not(.tileAdd)::after {- position: absolute;- top: 100%;- right: 0;- left: 0;- height: calc(- var(--account-profile-domain-gap) +- var(--account-profile-domain-height) +- var(--account-profile-name-gap) +- var(--account-profile-name-height)- );- content: '';-}--.tile:disabled {- cursor: default;-}--.tile:disabled:not(.tileCurrent):not(.tileExpired) {- opacity: 0.58;-}--.tilePrimaryDisabled {- cursor: default;-}--.avatarFrame {- position: relative;- display: inline-flex;- width: var(--account-profile-frame-size);- height: var(--account-profile-frame-size);- align-items: center;- justify-content: center;- border-radius: 50%;- background: var(--background-secondary);- box-shadow: 0 0 0 0.125rem var(--background-secondary);- color: var(--text-secondary);- transition:- background-color 40ms ease,- box-shadow 40ms ease,- transform 120ms ease-out;-}--.avatarFrame::before {- position: absolute;- inset: 0.25rem;- content: '';- border: 0.125rem solid transparent;- border-radius: inherit;- transition: border-color 40ms ease;-}--.avatarFrame::after {- content: '';- display: none;-}--:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))- .tile:not(:disabled):hover {- color: var(--text-primary);-}--:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))- .tile:not(:disabled):hover- .avatarFrame::before {- border-color: color-mix(in srgb, var(--text-primary) 34%, transparent);-}--:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))- .tile:not(:disabled):hover- .avatarFrame {- background: color-mix(in srgb, var(--background-modifier-hover) 66%, var(--background-secondary));- box-shadow: 0 0 0 0.125rem color-mix(in srgb, var(--background-modifier-hover) 66%, var(--background-secondary));-}--@media (prefers-reduced-motion: no-preference) {- :global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))- .tile:not(:disabled):hover- .avatarFrame {- transform: scale(1.03);- }-}--.tileCurrent .avatarFrame::before {- border-color: transparent;-}--.tileCurrent .avatarFrame {- background: var(--background-secondary);- box-shadow: 0 0 0 0.25rem var(--status-online);-}--:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))- .tileCurrent:not(:disabled):hover- .avatarFrame::before {- border-color: transparent;-}--:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))- .tileCurrent:not(:disabled):hover- .avatarFrame {- background: color-mix(in srgb, var(--background-modifier-hover) 46%, var(--background-secondary));- box-shadow:- 0 0 0 0.25rem var(--status-online),- 0 0 0 0.375rem color-mix(in srgb, var(--status-online) 20%, transparent);-}--.domainRow {- position: relative;- z-index: 2;- display: flex;- width: calc(100% - 0.5rem);- height: var(--account-profile-domain-height);- font-size: 0.85rem;- align-items: center;- justify-content: center;- color: var(--text-tertiary-muted);- gap: 0.1rem;- margin: var(--account-profile-domain-gap) auto 0;- pointer-events: none;-}--.domainRow > span {- min-width: 0;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;-}--.nameRow {- position: relative;- z-index: 2;- display: flex;- width: calc(100% - 0.5rem);- height: var(--account-profile-name-height);- align-items: center;- justify-content: center;- gap: 0.375rem;- margin: var(--account-profile-name-gap) auto 0;- pointer-events: none;-}--.name {- display: flex;- flex: 0 1 auto;- align-items: center;- gap: 0.375rem;- min-width: 0;- color: var(--account-profile-name-color);- font-size: 1rem;- font-weight: 600;- line-height: var(--account-profile-name-height);-}--.tileExpired .avatarFrame::before {- border-color: color-mix(in srgb, var(--status-danger) 78%, transparent);- box-shadow: 0 0 0 0.1875rem color-mix(in srgb, var(--status-danger) 15%, transparent);-}--.tileExpired .avatarFrame {- background: color-mix(in srgb, var(--status-danger) 8%, var(--background-secondary));- box-shadow: 0 0 0 0.125rem color-mix(in srgb, var(--status-danger) 8%, var(--background-secondary));-}--.tileExpired .avatarFrame::after {- display: none;-}--.tileSlotExpired .name {- color: color-mix(in srgb, var(--status-danger) 72%, var(--account-profile-name-color));-}--.stateBadge {- position: absolute;- right: 0.375rem;- bottom: 0.375rem;- display: inline-flex;- width: var(--account-profile-state-badge-size);- height: var(--account-profile-state-badge-size);- align-items: center;- justify-content: center;- box-sizing: border-box;- border: 0.1875rem solid var(--background-secondary);- border-radius: 50%;- background: var(--background-tertiary);- color: var(--text-tertiary);-}--.stateBadgeExpired {- background: var(--status-danger);- color: var(--button-danger-text);-}--.moreButton {- display: inline-flex;- flex: 0 0 auto;- width: var(--account-profile-more-size);- height: var(--account-profile-more-size);- align-items: center;- justify-content: center;- box-sizing: border-box;- padding: 0;- border: 0.0625rem solid color-mix(in srgb, var(--account-profile-name-color) 45%, transparent);- border-radius: 50%;- background: var(--background-tertiary);- color: var(--text-primary);- box-shadow: 0 0.125rem 0.5rem rgb(0 0 0 / 0.28);- cursor: pointer;- outline: none;- pointer-events: auto;- transition:- background-color 40ms ease,- border-color 40ms ease;-}--.moreButton:disabled {- cursor: default;- opacity: 0.58;-}--:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))- .moreButton:not(:disabled):hover {- border-color: color-mix(in srgb, var(--account-profile-name-color) 70%, transparent);- background: color-mix(in srgb, var(--text-primary) 14%, var(--background-tertiary));-}--.nameText {- min-width: 0;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;-}--.instanceBadge {- position: absolute;- top: 0.375rem;- right: 0.375rem;- z-index: 2;- display: inline-flex;- width: var(--account-profile-instance-badge-size);- height: var(--account-profile-instance-badge-size);- align-items: center;- justify-content: center;- box-sizing: border-box;- border: 0.1875rem solid var(--background-secondary);- border-radius: 50%;- background: var(--background-tertiary);- overflow: hidden;- color: var(--text-secondary);- box-shadow: 0 0.25rem 0.75rem rgb(0 0 0 / 0.28);-}--.instanceBadge svg {- display: block;- width: 72%;- height: 72%;- object-fit: cover;-}--.instanceBadge img {- display: block;- width: 100%;- height: 100%;- object-fit: cover;-}--.instanceTooltip {- display: inline-flex;- align-items: center;- gap: 0.25rem;-}--.instanceTooltipLabel {- min-width: 0;- color: var(--text-primary);- font-weight: 600;-}--.instanceTooltipOfficial {- display: inline-flex;- flex: 0 0 auto;- align-items: center;- justify-content: center;- color: var(--status-online);-}--.tileAddAvatar {- position: relative;- display: inline-flex;- width: var(--account-profile-frame-size);- height: var(--account-profile-frame-size);- align-items: center;- justify-content: center;- box-sizing: border-box;- border: 0.125rem dashed color-mix(in srgb, var(--text-primary) 32%, transparent);- border-radius: 50%;- background: var(--background-secondary);- box-shadow: 0 0 0 0.125rem var(--background-secondary);- color: var(--text-primary-muted);- transform: scale(1);- transition:- border-color 160ms ease,- background-color 160ms ease,- box-shadow 160ms ease,- color 160ms ease,- transform 160ms ease;-}--.tileAdd {- min-height: var(--account-profile-frame-size);- grid-template-rows: var(--account-profile-frame-size);- color: var(--text-secondary);-}--:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))- .tileAdd:not(:disabled):hover- .tileAddAvatar {- border-color: color-mix(in srgb, var(--text-primary) 56%, transparent);- background: color-mix(in srgb, var(--background-modifier-hover) 68%, var(--background-secondary));- box-shadow: 0 0 0 0.125rem color-mix(in srgb, var(--background-modifier-hover) 68%, var(--background-secondary));- color: var(--text-primary);- transform: scale(1.025);-}--@media (max-width: 30rem) {- .scroller {- max-height: none;- padding-inline: 0.25rem;- }-- .list {- justify-content: flex-start;- }-}diff --git a/fluxer_app/src/features/auth/components/accounts/account_switcher_modal/AccountSwitcherOverlay.module.css b/fluxer_app/src/features/auth/components/accounts/account_switcher_modal/AccountSwitcherOverlay.module.cssdeleted file mode 100644index 17a065b34..000000000--- a/fluxer_app/src/features/auth/components/accounts/account_switcher_modal/AccountSwitcherOverlay.module.css+++ /dev/null@@ -1,121 +0,0 @@-/* SPDX-License-Identifier: AGPL-3.0-or-later */--.root {- --account-switcher-overlay-max-height: 52rem;-- position: fixed;- inset: 0;- display: flex;- align-items: center;- justify-content: center;- isolation: isolate;- padding: calc(2rem + env(safe-area-inset-top, 0)) calc(1.25rem + env(safe-area-inset-right, 0))- calc(2rem + env(safe-area-inset-bottom, 0)) calc(1.25rem + env(safe-area-inset-left, 0));- box-sizing: border-box;-}--.backdrop {- position: fixed;- inset: 0;- z-index: 0;- display: block;- width: 100%;- height: 100%;- border: 0;- background: rgb(0 0 0 / 0.78);- cursor: default;-}--.shell {- position: relative;- z-index: 1;- display: flex;- width: min(100%, 74rem);- max-height: min(100%, var(--account-switcher-overlay-max-height));- min-height: 0;- flex-direction: column;- align-items: stretch;- justify-content: center;- outline: none;- pointer-events: none;-}--.viewHost {- position: relative;- width: 100%;- min-height: 0;- pointer-events: none;-}--.viewHost > * {- min-width: 0;-}--.viewHost > * + * {- position: absolute;- top: 0;- right: 0;- left: 0;-}--.accountsStage {- position: relative;- min-width: 0;- pointer-events: none;-}--.shortcutTitle {- position: absolute;- bottom: 100%;- left: 0;- display: flex;- width: 100%;- justify-content: center;- padding-bottom: 0.625rem;- pointer-events: none;-}--.authStage {- display: flex;- min-width: 0;- flex-direction: column;- align-items: center;- justify-content: center;- pointer-events: none;-}--.accountsStage > *,-.authStage > * {- pointer-events: auto;-}--.accountPicker {- width: 100%;-}--.accountScroller {- max-height: none;- padding: 0.5rem 0;-}--.noAccounts {- margin-bottom: 1rem;- color: var(--text-on-dark);- font-size: 0.9375rem;- font-weight: 600;- line-height: 1.25rem;- text-align: center;-}--@media (max-width: 42rem) {- .root {- align-items: stretch;- padding: calc(1.5rem + env(safe-area-inset-top, 0)) calc(1rem + env(safe-area-inset-right, 0))- calc(1.5rem + env(safe-area-inset-bottom, 0)) calc(1rem + env(safe-area-inset-left, 0));- }-- .shell {- justify-content: center;- max-height: 100%;- }-}