mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
520 lines
10 KiB
CSS
520 lines
10 KiB
CSS
/* SPDX-License-Identifier: AGPL-3.0-or-later */
|
|
|
|
a,
|
|
abbr,
|
|
acronym,
|
|
address,
|
|
applet,
|
|
big,
|
|
blockquote,
|
|
body,
|
|
caption,
|
|
cite,
|
|
code,
|
|
dd,
|
|
del,
|
|
dfn,
|
|
div,
|
|
dl,
|
|
dt,
|
|
em,
|
|
fieldset,
|
|
form,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6,
|
|
html,
|
|
iframe,
|
|
img,
|
|
ins,
|
|
kbd,
|
|
label,
|
|
legend,
|
|
li,
|
|
object,
|
|
ol,
|
|
p,
|
|
pre,
|
|
q,
|
|
s,
|
|
samp,
|
|
small,
|
|
span,
|
|
strike,
|
|
strong,
|
|
table,
|
|
tbody,
|
|
td,
|
|
tfoot,
|
|
th,
|
|
thead,
|
|
tr,
|
|
tt,
|
|
ul,
|
|
var {
|
|
border: 0;
|
|
font-family: inherit;
|
|
font-size: 100%;
|
|
font-style: inherit;
|
|
font-weight: inherit;
|
|
margin: 0;
|
|
padding: 0;
|
|
vertical-align: baseline;
|
|
}
|
|
|
|
:root {
|
|
--saturation-factor: 1;
|
|
--user-select: auto;
|
|
|
|
--font-keybind: -apple-system, BlinkMacSystemFont, var(--font-sans);
|
|
|
|
--z-index-base: 0;
|
|
--z-index-elevated-1: 10;
|
|
--z-index-elevated-2: 20;
|
|
--z-index-elevated-3: 30;
|
|
|
|
--z-index-modal: 10000;
|
|
--z-index-popout: 15000;
|
|
--z-index-modal-swap: 25000;
|
|
--z-index-popout-above-swap: 30000;
|
|
--z-index-overlay: 40000;
|
|
--z-index-contextmenu: 44000;
|
|
--z-index-tooltip: 45000;
|
|
--z-index-toast: 50000;
|
|
--z-index-titlebar: 100000;
|
|
--native-titlebar-height: 2rem;
|
|
--macos-traffic-light-inset: 78px;
|
|
|
|
--radius-sm: 0.25rem;
|
|
--radius-md: 0.375rem;
|
|
--radius-lg: 0.5rem;
|
|
--radius-xl: 0.75rem;
|
|
--radius-2xl: 1rem;
|
|
--radius-full: 624.9375rem;
|
|
|
|
--media-border-radius: 0.25rem;
|
|
|
|
--input-container-padding: 0.625rem;
|
|
--footer-row-height: 4.5rem;
|
|
--input-container-min-height: var(--footer-row-height);
|
|
--input-wrapper-padding-x: 0.5rem;
|
|
--input-wrapper-padding-bottom: 0.5rem;
|
|
--textarea-top-bar-height: 2.5rem;
|
|
--textarea-line-height: 1.375rem;
|
|
--textarea-content-offset: calc((var(--user-area-content-height) - var(--textarea-line-height)) / 2);
|
|
|
|
--typing-indicator-height: 1rem;
|
|
--typing-pill-height: 1rem;
|
|
--slowmode-indicator-height: 1rem;
|
|
--scroller-spacer-height: 1.75rem;
|
|
--typing-avatar-size: 0.75rem;
|
|
--typing-indicator-animation-size: 1rem;
|
|
--typing-indicator-gap: 0px;
|
|
--typing-upload-column-width: calc(
|
|
var(--user-area-content-height) +
|
|
(var(--textarea-side-button-padding, 0.34375rem) * 2)
|
|
);
|
|
|
|
--spoiler-border-radius: 0.375rem;
|
|
--markup-restricted-inline-icon-baseline-shift: -0.125em;
|
|
--markup-restricted-inline-emoji-size: 1.25em;
|
|
--markup-restricted-inline-emoji-baseline-shift: -0.18em;
|
|
|
|
--font-size-xs: 0.75rem;
|
|
--emoji-size-emoji: 1.5em;
|
|
--emoji-size-jumbo-emoji: 3rem;
|
|
|
|
--spacing-0: 0px;
|
|
--spacing-1: 0.25rem;
|
|
--spacing-1-5: 0.375rem;
|
|
--spacing-2: 0.5rem;
|
|
--spacing-3: 0.75rem;
|
|
--spacing-4: 1rem;
|
|
--spacing-5: 1.25rem;
|
|
--spacing-6: 1.5rem;
|
|
--spacing-8: 2rem;
|
|
--spacing-10: 2.5rem;
|
|
--spacing-12: 3rem;
|
|
--spacing-16: 4rem;
|
|
--spacing-20: 5rem;
|
|
--spacing-24: 6rem;
|
|
|
|
--layout-guild-list-width: 4.5rem;
|
|
--layout-sidebar-width: 20rem;
|
|
--layout-header-height: 3.5rem;
|
|
--layout-user-area-height: var(--input-container-min-height);
|
|
--layout-user-area-reserved-height: 0px;
|
|
--layout-mobile-bottom-nav-reserved-height: 0px;
|
|
--user-area-content-height: 2.25rem;
|
|
--user-area-padding-y: calc((var(--layout-user-area-height) - var(--user-area-content-height)) / 2);
|
|
--user-area-padding-x: var(--spacing-4);
|
|
--voice-connection-padding-y: var(--spacing-2);
|
|
--footer-row-padding-y: var(--user-area-padding-y);
|
|
--layout-header-popout-width: calc(var(--layout-sidebar-width) - (var(--spacing-4) * 2));
|
|
|
|
--layout-gap: var(--spacing-4);
|
|
--layout-gap-sm: var(--spacing-2);
|
|
--layout-gap-lg: var(--spacing-6);
|
|
|
|
--content-padding: var(--spacing-4);
|
|
--content-padding-sm: var(--spacing-3);
|
|
--content-padding-lg: var(--spacing-6);
|
|
|
|
--guild-icon-size: 2.75rem;
|
|
--guild-icon-gap: var(--spacing-2);
|
|
|
|
--mobile-bottom-nav-height: 3.75rem;
|
|
|
|
--form-surface-background: var(--background-tertiary);
|
|
--surface-interactive-hover-bg: var(--background-modifier-hover);
|
|
--surface-interactive-selected-bg: var(--background-modifier-selected);
|
|
--surface-interactive-selected-color: var(--text-primary);
|
|
--scrollbar-thumb-bg: color-mix(in srgb, var(--background-textarea) 35%, var(--text-tertiary) 65%);
|
|
--scrollbar-thumb-bg-hover: color-mix(in srgb, var(--background-textarea) 25%, var(--text-secondary) 75%);
|
|
--scrollbar-track-bg: color-mix(in srgb, var(--background-secondary) 80%, transparent);
|
|
|
|
--focus-primary: #00b0f4;
|
|
}
|
|
|
|
html.platform-native.platform-macos {
|
|
--layout-guild-list-width: 4.75rem;
|
|
}
|
|
|
|
.theme-light {
|
|
--form-surface-background: var(--background-primary);
|
|
--surface-interactive-hover-bg: var(--background-modifier-hover);
|
|
--surface-interactive-selected-bg: var(--background-modifier-selected);
|
|
--surface-interactive-selected-color: var(--text-primary);
|
|
--scrollbar-thumb-bg: color-mix(in srgb, var(--background-header-secondary) 40%, var(--text-secondary) 60%);
|
|
--scrollbar-thumb-bg-hover: color-mix(in srgb, var(--background-header-secondary) 30%, var(--text-primary) 70%);
|
|
--scrollbar-track-bg: color-mix(in srgb, var(--background-secondary) 50%, transparent);
|
|
}
|
|
|
|
html {
|
|
background-color: var(--background-secondary);
|
|
color: var(--text-primary);
|
|
overflow: hidden;
|
|
overscroll-behavior: none;
|
|
user-select: var(--user-select);
|
|
-webkit-user-select: var(--user-select);
|
|
font-family: var(--font-sans);
|
|
font-size: 16px;
|
|
line-height: 1.5;
|
|
font-optical-sizing: auto;
|
|
}
|
|
|
|
html.platform-native {
|
|
--custom-zoom: 100;
|
|
font-size: calc(var(--custom-zoom, 100) * 1%);
|
|
}
|
|
|
|
html.allow-transparency,
|
|
html.allow-transparency body {
|
|
background-color: transparent;
|
|
}
|
|
|
|
#fluxer-startup-native-titlebar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: var(--native-titlebar-height);
|
|
display: none;
|
|
background: var(--background-secondary);
|
|
-webkit-app-region: drag;
|
|
z-index: var(--z-index-titlebar);
|
|
}
|
|
|
|
html.platform-native:not(.native-system-titlebar) #fluxer-startup-native-titlebar {
|
|
display: block;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
touch-action: pan-y;
|
|
}
|
|
|
|
body {
|
|
scrollbar-color: var(--scrollbar-thumb-bg) var(--scrollbar-track-bg);
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
select,
|
|
textarea,
|
|
a {
|
|
touch-action: manipulation;
|
|
outline: none;
|
|
}
|
|
|
|
[role='button'],
|
|
[tabindex] {
|
|
outline: none;
|
|
}
|
|
|
|
input,
|
|
textarea,
|
|
select,
|
|
button {
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
}
|
|
|
|
input {
|
|
color-scheme: dark;
|
|
}
|
|
|
|
.theme-light input {
|
|
color-scheme: light;
|
|
}
|
|
|
|
b,
|
|
strong {
|
|
font-weight: 600;
|
|
}
|
|
|
|
a {
|
|
color: var(--text-link);
|
|
text-decoration: none;
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
a:hover {
|
|
color: var(--text-link);
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
@media (hover: none) {
|
|
a,
|
|
a:hover,
|
|
a:active {
|
|
text-decoration: none !important;
|
|
}
|
|
}
|
|
|
|
code {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.85em;
|
|
line-height: 1.5;
|
|
padding: 0.15em 0.3em;
|
|
margin: -0.15em 0;
|
|
border-radius: var(--radius-sm);
|
|
border: 0.0625rem solid var(--code-block-border);
|
|
color: var(--text-code);
|
|
background-color: var(--bg-code);
|
|
white-space: pre-wrap;
|
|
box-decoration-break: clone;
|
|
-webkit-box-decoration-break: clone;
|
|
}
|
|
|
|
pre {
|
|
padding: var(--pre-padding, 1em);
|
|
overflow: auto;
|
|
border-radius: var(--radius-md);
|
|
border: 0.0625rem solid var(--code-block-border);
|
|
background-color: var(--bg-code-block);
|
|
}
|
|
|
|
pre code {
|
|
padding: 0;
|
|
margin: 0;
|
|
border: 0;
|
|
background-color: transparent;
|
|
white-space: inherit;
|
|
}
|
|
|
|
blockquote {
|
|
margin: 1em 0;
|
|
padding: 0;
|
|
border: none;
|
|
background-color: transparent;
|
|
}
|
|
|
|
table {
|
|
border-collapse: collapse;
|
|
margin: 1em 0;
|
|
}
|
|
|
|
table th {
|
|
text-align: left;
|
|
font-weight: bold;
|
|
}
|
|
|
|
table td {
|
|
padding: 0.5em;
|
|
}
|
|
|
|
img[alt] {
|
|
text-indent: -624.9375rem;
|
|
}
|
|
|
|
img {
|
|
position: relative;
|
|
}
|
|
|
|
img::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background-color: var(--background-primary);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.text-smol {
|
|
font-size: 0.875rem;
|
|
font-weight: 400;
|
|
line-height: 1.2857142857;
|
|
}
|
|
|
|
.truncate {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
min-width: 0;
|
|
}
|
|
|
|
.clamp {
|
|
--clamp-lines: 3;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: var(--clamp-lines);
|
|
line-clamp: var(--clamp-lines);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.zalgo-contain {
|
|
--zalgo-line-height: 1.25em;
|
|
line-height: var(--zalgo-line-height);
|
|
max-height: var(--zalgo-line-height);
|
|
overflow: hidden;
|
|
display: block;
|
|
}
|
|
|
|
.zalgo-contain-inline {
|
|
--zalgo-line-height: 1.25em;
|
|
line-height: var(--zalgo-line-height);
|
|
overflow: clip;
|
|
overflow-clip-margin: 0;
|
|
display: inline-block;
|
|
vertical-align: bottom;
|
|
max-height: var(--zalgo-line-height);
|
|
}
|
|
|
|
.user-text {
|
|
--user-text-line-height: 1.25em;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
min-width: 0;
|
|
line-height: var(--user-text-line-height);
|
|
max-height: var(--user-text-line-height);
|
|
display: block;
|
|
}
|
|
|
|
.user-text-inline {
|
|
--user-text-line-height: 1.25em;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
line-height: var(--user-text-line-height);
|
|
max-height: var(--user-text-line-height);
|
|
display: inline-block;
|
|
vertical-align: bottom;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.user-text-flex {
|
|
--user-text-line-height: 1.25em;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
min-width: 0;
|
|
line-height: var(--user-text-line-height);
|
|
max-height: var(--user-text-line-height);
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.emoji {
|
|
display: inline-block;
|
|
width: var(--emoji-size-emoji);
|
|
height: var(--emoji-size-emoji);
|
|
object-fit: contain;
|
|
vertical-align: -0.4em;
|
|
}
|
|
|
|
.emoji img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.emoji.jumboable {
|
|
width: var(--emoji-size-jumbo-emoji);
|
|
height: var(--emoji-size-jumbo-emoji);
|
|
min-height: var(--emoji-size-jumbo-emoji);
|
|
}
|
|
|
|
.emoji:not(img) {
|
|
font-size: var(--emoji-size-emoji);
|
|
line-height: 1;
|
|
width: 1em;
|
|
height: 1em;
|
|
}
|
|
|
|
.emoji.jumboable:not(img) {
|
|
font-size: var(--emoji-size-jumbo-emoji);
|
|
width: 1em;
|
|
height: 1em;
|
|
min-height: 1em;
|
|
}
|
|
|
|
@media (prefers-contrast: more) {
|
|
:root {
|
|
--text-primary: hsl(0, 0%, 100%);
|
|
--text-secondary: hsl(0, 0%, 90%);
|
|
--text-tertiary: hsl(0, 0%, 80%);
|
|
--text-link: hsl(210, 100%, 70%);
|
|
--border-color: hsl(0, 0%, 50%);
|
|
}
|
|
.theme-light {
|
|
--text-primary: hsl(0, 0%, 0%);
|
|
--text-secondary: hsl(0, 0%, 10%);
|
|
--text-tertiary: hsl(0, 0%, 20%);
|
|
--text-link: hsl(210, 100%, 40%);
|
|
--border-color: hsl(0, 0%, 40%);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 840px) {
|
|
:root {
|
|
--user-select: none;
|
|
}
|
|
*,
|
|
.select-text {
|
|
user-select: none !important;
|
|
-webkit-user-select: none !important;
|
|
-moz-user-select: none !important;
|
|
-ms-user-select: none !important;
|
|
}
|
|
input,
|
|
textarea {
|
|
user-select: auto !important;
|
|
-webkit-user-select: auto !important;
|
|
-moz-user-select: auto !important;
|
|
-ms-user-select: auto !important;
|
|
}
|
|
}
|
|
|
|
html.reduced-motion * {
|
|
animation-duration: 0.01ms;
|
|
animation-iteration-count: 1;
|
|
transition-duration: 0.01ms;
|
|
scroll-behavior: auto;
|
|
}
|