initial commit

This commit is contained in:
Hampus Kraft
2026-01-01 20:42:59 +00:00
commit 2f557eda8c
9029 changed files with 1490197 additions and 0 deletions

View File

@@ -0,0 +1,150 @@
/*
* Copyright (C) 2026 Fluxer Contributors
*
* This file is part of Fluxer.
*
* Fluxer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Fluxer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
*/
.container {
position: relative;
}
.deleteButton {
display: flex;
align-items: center;
justify-content: center;
right: -2rem;
position: absolute;
top: 0.25rem;
z-index: 10;
width: 1.5rem;
height: 1.5rem;
border-radius: 4px;
background-color: var(--background-tertiary);
color: var(--text-tertiary);
transition:
background-color 150ms ease,
color 150ms ease;
}
@media (hover: hover) {
.deleteButton:hover {
background-color: var(--status-danger);
color: white;
}
}
.attachmentContainer {
display: flex;
width: 100%;
min-width: 0;
align-items: center;
gap: 0.75rem;
overflow: hidden;
border-radius: 8px;
border: 1px solid var(--background-modifier-accent);
background-color: var(--background-secondary);
padding: 0.75rem;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.iconContainer {
display: flex;
align-items: center;
justify-content: center;
width: 3rem;
height: 3rem;
flex-shrink: 0;
border-radius: 8px;
background-color: var(--background-tertiary);
color: var(--text-tertiary);
}
.fileInfoContainer {
min-width: 0;
flex: 1;
overflow: hidden;
}
.fileName {
display: block;
overflow: hidden;
font-size: 0.875rem;
font-weight: 600;
color: var(--text-primary);
line-height: 1.25rem;
white-space: nowrap;
text-overflow: ellipsis;
}
.fileNameTruncate {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.fileExtension {
color: var(--text-tertiary);
}
.fileSize {
color: var(--text-tertiary);
font-size: 0.75rem;
line-height: 1rem;
}
.downloadButton {
display: flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
flex-shrink: 0;
border-radius: 8px;
background-color: var(--brand-primary);
color: white;
transition: background-color 150ms ease;
cursor: pointer;
}
@media (hover: hover) {
.downloadButton:hover {
background-color: var(--brand-secondary);
}
}
.downloadButtonDisabled {
opacity: 0.4;
pointer-events: none;
}
.statusBadge {
display: inline-flex;
align-items: center;
gap: 0.3rem;
padding: 0.25rem 0.45rem;
border-radius: 999px;
background: color-mix(in srgb, var(--background-secondary) 80%, transparent);
color: var(--text-secondary);
border: 1px solid var(--border-color);
font-size: 0.75rem;
backdrop-filter: blur(6px);
opacity: 0.92;
}
.statusIcon {
width: 14px;
height: 14px;
}

View File

@@ -0,0 +1,424 @@
/*
* Copyright (C) 2026 Fluxer Contributors
*
* This file is part of Fluxer.
*
* Fluxer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Fluxer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
*/
.oneByTwoGrid {
display: flex;
flex-direction: row;
gap: 4px;
max-height: 280px;
}
.oneByTwoGridItem {
flex: 1;
min-width: 0;
}
.oneByTwoLayoutThreeGrid {
max-height: 350px;
}
.oneByTwoSoloItem {
flex: 2;
}
.oneByTwoDuoItem {
flex: 1;
}
.twoByOneGrid {
display: flex;
flex-direction: column;
gap: 4px;
height: 100%;
}
.twoByOneGridItem {
flex: 1;
min-height: 0;
}
.twoByTwoGrid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-rows: repeat(2, minmax(0, 1fr));
gap: 4px;
max-height: 350px;
}
.threeByThreeGrid {
display: grid;
flex-direction: row;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 4px;
}
.fiveAttachmentContainer {
display: flex;
flex-direction: column;
gap: 4px;
max-height: 350px;
}
.fiveAttachmentContainer .oneByTwoGrid {
flex: 2;
margin-bottom: 0;
min-height: 0;
}
.mosaicItem {
position: relative;
background-color: var(--background-secondary);
border: none;
padding: 0;
margin: 0;
font: inherit;
color: inherit;
text-align: inherit;
line-height: inherit;
max-width: 100%;
width: 100%;
height: 100%;
overflow: hidden;
border-radius: var(--media-border-radius);
cursor: pointer;
}
.clickableWrapper {
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.clickableButton {
cursor: pointer;
}
.loadingOverlay {
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.mediaContainer {
position: relative;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.oneByOneGrid {
width: 100%;
max-width: 550px;
max-height: 400px;
overflow: visible;
position: relative;
display: flex;
}
.oneByOneGrid .mosaicItem {
width: 100%;
display: flex;
flex-direction: column;
}
.oneByOneGrid .mediaContainer,
.oneByOneGrid .clickableWrapper {
width: 100%;
flex: 1;
display: flex;
flex-direction: column;
}
.oneByOneGrid .loadingOverlay {
width: 100%;
flex: 1;
position: relative;
aspect-ratio: auto !important;
}
.oneByOneGrid .mosaicItem,
.oneByOneGrid .clickableWrapper {
overflow: hidden;
border-radius: var(--media-border-radius);
}
.oneByOneGridMosaic {
display: flex;
height: 280px;
}
.oneByOneGridMosaic .mosaicItem {
flex: 1;
height: 100%;
}
.oneByOneGridMosaic .mediaContainer,
.oneByOneGridMosaic .clickableWrapper,
.oneByOneGridMosaic .loadingOverlay {
height: 100%;
}
.oneByOneGridMosaic .loadingOverlay {
aspect-ratio: unset !important;
}
.mosaicContainer > .oneByOneGrid + .threeByThreeGrid,
.mosaicContainer > .oneByTwoGrid + .threeByThreeGrid {
margin-top: 4px;
}
.mosaicContainerWrapper {
position: relative;
overflow: visible;
display: block;
width: 100%;
max-width: 550px;
}
.mosaicExpiryBadge {
position: absolute;
bottom: 6px;
right: 6px;
display: flex;
flex-direction: row;
align-items: center;
z-index: 3;
opacity: 0;
visibility: hidden;
}
.mosaicExpiryBadgeContent {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.15rem 0.4rem;
border-radius: 12px;
background: color-mix(in srgb, var(--background-secondary) 86%, transparent);
color: var(--text-secondary);
border: 1px solid color-mix(in srgb, var(--border-color) 80%, transparent);
backdrop-filter: blur(6px);
font-size: 0.72rem;
}
.placeholderImage {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
display: block;
min-width: 100%;
min-height: 100%;
max-width: 100%;
}
.mediaImage {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
display: block;
min-width: 100%;
min-height: 100%;
max-width: 100%;
transition: opacity 0.2s;
opacity: 1;
}
.oneByOneGrid .mediaImage,
.oneByOneGrid .placeholderImage {
object-fit: cover;
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.oneByOneGridMosaic .mediaImage,
.oneByOneGridMosaic .placeholderImage {
object-fit: cover;
}
.oneByTwoGrid .mosaicItem,
.oneByTwoGrid .mediaContainer,
.oneByTwoGrid .clickableWrapper,
.oneByTwoGrid .loadingOverlay {
height: 100%;
}
.fiveAttachmentContainer .threeByThreeGrid {
flex: 1;
margin-top: 0;
}
.threeByThreeGrid .loadingOverlay {
aspect-ratio: 1 / 1 !important;
}
.mediaImageHidden {
opacity: 0;
}
.mediaBlurred {
filter: blur(12px);
opacity: 0.15;
}
.nsfwOverlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--spoiler-overlay-color);
backdrop-filter: blur(12px);
z-index: 3;
padding: 0.5rem;
text-align: center;
}
.playButtonOverlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
z-index: 2;
}
.playButton {
display: flex;
align-items: center;
justify-content: center;
width: 56px;
height: 56px;
border-radius: 50%;
background-color: rgba(0, 0, 0, 0.75);
}
.playButton svg {
color: white;
}
.audioPlaceholder {
width: 100%;
height: 100%;
max-width: 100%;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, var(--background-tertiary) 0%, var(--background-secondary-alt) 100%);
overflow: hidden;
position: relative;
}
.audioPlaceholder svg {
width: 40%;
height: 40%;
max-width: 80px;
max-height: 80px;
opacity: 0.6;
color: var(--text-tertiary);
flex-shrink: 0;
}
@media (max-width: 640px) {
.mosaicContainer {
max-width: 100%;
}
.oneByTwoGrid,
.oneByTwoDuoContainer,
.twoByTwoGrid {
max-height: 240px;
}
.oneByOneGrid {
max-height: 300px;
max-width: 100%;
}
.threeByThreeGrid .mosaicItem {
aspect-ratio: 1 / 1;
}
}
.mosaicItemLoading {
background: linear-gradient(
90deg,
var(--background-secondary) 0%,
var(--background-tertiary) 50%,
var(--background-secondary) 100%
);
background-size: 200% 100%;
animation: loading 1.5s ease-in-out infinite;
}
@keyframes loading {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
.mosaicContainer {
height: 100%;
max-width: 550px;
width: 100%;
}
.clickableButton {
height: 100%;
width: 100%;
border: 0;
background-color: transparent;
padding: 0;
}
.gifIndicator {
position: absolute;
top: 8px;
left: 8px;
z-index: 10;
border-radius: 4px;
background-color: rgba(0, 0, 0, 0.6);
padding: 4px 8px;
font-size: 0.875rem;
font-weight: 600;
color: white;
line-height: 1;
}
.relativeWrapper {
position: relative;
}

View File

@@ -0,0 +1,340 @@
/*
* Copyright (C) 2026 Fluxer Contributors
*
* This file is part of Fluxer.
*
* Fluxer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Fluxer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
*/
.container {
display: flex;
height: 100%;
flex-direction: column;
overflow: hidden;
}
.headerButton {
display: flex;
align-items: center;
color: var(--text-primary);
}
.searchContainer {
padding: 12px 16px;
}
.searchInputWrapper {
position: relative;
display: flex;
height: 2.75rem;
align-items: center;
padding: 0 14px;
background-color: var(--background-tertiary);
border-radius: 12px;
}
.searchIcon {
height: 1.25rem;
width: 1.25rem;
flex-shrink: 0;
color: var(--text-primary-muted);
}
.searchInput {
margin-left: 8px;
height: 100%;
flex: 1;
border: none;
background-color: transparent;
color: var(--text-primary);
font-size: 1rem;
outline: none;
}
.searchInput::placeholder {
color: var(--text-primary-muted);
}
.clearButton {
margin-left: 8px;
display: flex;
height: 2rem;
width: 2rem;
flex-shrink: 0;
align-items: center;
justify-content: center;
border: none;
background-color: transparent;
padding: 0;
color: var(--text-primary-muted);
transition: color 150ms ease;
touch-action: manipulation;
-webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
.clearButton:hover {
color: var(--text-primary);
}
}
.searchResults {
margin-top: 8px;
text-align: center;
font-size: 0.875rem;
color: var(--text-secondary);
}
.filterChipsRow {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}
.searchButton {
margin-top: 12px;
width: 100%;
}
.loadingContainer,
.idleContainer {
display: flex;
flex: 1;
align-items: center;
justify-content: center;
}
.loadingIcon {
height: 3rem;
width: 3rem;
animation: spin 1s linear infinite;
color: var(--text-primary-muted);
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.emptyStateContainer {
display: flex;
flex: 1;
align-items: center;
justify-content: center;
padding: 16px;
}
.emptyStateContent {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
text-align: center;
}
.emptyStateIcon {
height: 5rem;
width: 5rem;
color: var(--text-primary-muted);
}
.emptyStateTitle {
font-size: 1.125rem;
font-weight: 600;
color: var(--text-primary);
}
.emptyStateDescription {
font-size: 0.875rem;
color: var(--text-secondary);
}
.indexingContainer {
display: flex;
flex: 1;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 16px;
padding: 16px;
}
.indexingContent {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
text-align: center;
}
.indexingIcon {
height: 4rem;
width: 4rem;
animation: spin 1s linear infinite;
color: var(--text-primary-muted);
}
.indexingTitle {
font-size: 1.25rem;
font-weight: 600;
color: var(--text-primary);
}
.indexingDescription {
font-size: 0.875rem;
color: var(--text-primary-muted);
}
.errorContainer {
display: flex;
flex: 1;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 16px;
padding: 16px;
}
.errorContent {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
text-align: center;
}
.errorTitle {
font-size: 1.25rem;
font-weight: 600;
color: var(--text-primary);
}
.errorMessage {
max-width: 100%;
font-size: 0.875rem;
color: var(--text-primary-muted);
word-break: break-words;
}
.retryButton {
margin-top: 16px;
background-color: var(--background-modifier-accent);
border: none;
border-radius: 4px;
padding: 8px 16px;
font-size: 0.875rem;
color: var(--text-primary);
transition: background-color 150ms ease;
}
@media (hover: hover) {
.retryButton:hover {
background-color: var(--background-modifier-hover);
}
}
.resultsScroller {
flex: 1;
overflow-y: auto;
padding: 16px 16px 0;
}
.channelSection {
margin-top: 16px;
margin-bottom: 8px;
display: flex;
align-items: center;
gap: 8px;
}
.channelSection:first-child {
margin-top: 0;
}
.channelIcon {
height: 1.25rem;
width: 1.25rem;
flex-shrink: 0;
color: var(--text-primary-muted);
}
.channelName {
font-size: 0.875rem;
font-weight: 600;
color: var(--text-primary);
}
.searchResultItem {
position: relative;
margin-bottom: 12px;
cursor: pointer;
overflow: hidden;
user-select: none;
-webkit-user-select: none;
background-color: var(--background-modifier-hover);
border-radius: 14px;
padding: 10px 12px;
touch-action: manipulation;
-webkit-tap-highlight-color: transparent;
}
.paginationContainer {
display: flex;
height: 52px;
flex-shrink: 0;
align-items: center;
justify-content: space-between;
padding: 0 16px;
border-top: 1px solid var(--background-modifier-hover);
}
.paginationButton {
display: flex;
align-items: center;
gap: 8px;
border: none;
background-color: var(--background-modifier-accent);
border-radius: 8px;
padding: 10px 16px;
font-size: 0.875rem;
color: var(--text-primary);
transition: background-color 150ms ease;
touch-action: manipulation;
-webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
.paginationButton:hover {
background-color: var(--background-modifier-hover);
}
}
.paginationButton:disabled {
cursor: not-allowed;
opacity: 0.5;
}
.paginationButton:disabled:hover {
background-color: var(--background-modifier-accent);
}
.paginationText {
font-size: 0.875rem;
color: var(--text-primary-muted);
}

View File

@@ -0,0 +1,23 @@
/*
* Copyright (C) 2026 Fluxer Contributors
*
* This file is part of Fluxer.
*
* Fluxer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Fluxer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
*/
.icon {
height: 1rem;
width: 1rem;
}

View File

@@ -0,0 +1,942 @@
/*
* Copyright (C) 2026 Fluxer Contributors
*
* This file is part of Fluxer.
*
* Fluxer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Fluxer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
*/
.markup {
font-size: inherit;
line-height: 1.5;
color: var(--text-chat);
word-wrap: break-word;
overflow-wrap: break-word;
hyphens: none;
white-space: break-spaces;
user-select: text;
-webkit-user-select: text;
text-align: left;
}
.bio {
font-size: 14px;
line-height: 1.28571;
}
.markup *::selection {
background-color: var(--text-selection);
}
.markup p {
margin: 0 0 0.75rem;
}
.markup strong {
font-weight: 600;
}
.markup em {
font-style: italic;
}
.markup s,
.markup del {
text-decoration: line-through;
color: var(--text-tertiary);
}
.markup u {
text-decoration: underline;
text-decoration-thickness: from-font;
text-underline-offset: 0.15em;
}
.markup h1,
.markup h2,
.markup h3,
.markup h4,
.markup h5,
.markup h6 {
margin: 1.25rem 0 0.75rem;
line-height: 1.2;
font-weight: 600;
color: var(--text-primary);
scroll-margin-top: 1.25rem;
}
.markup h1:first-child,
.markup h2:first-child,
.markup h3:first-child,
.markup h4:first-child,
.markup h5:first-child,
.markup h6:first-child {
margin-top: 0.25rem;
}
.markup h1 {
font-size: 1.75rem;
letter-spacing: -0.02em;
padding-bottom: 0.25rem;
border-bottom: 1px solid var(--border-color);
}
.markup h2 {
font-size: 1.5rem;
letter-spacing: -0.015em;
padding-bottom: 0.25rem;
border-bottom: 1px solid var(--border-color);
}
.markup h3 {
font-size: 1.25rem;
letter-spacing: -0.01em;
}
.markup h4 {
font-size: 1.125rem;
}
.markup h5 {
font-size: 1rem;
}
.markup h6 {
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-secondary);
}
.markup .link {
color: var(--text-link);
text-decoration: var(--link-decoration, none);
transition:
color var(--transition-fast),
border-color var(--transition-fast);
font-weight: inherit;
word-break: break-word;
cursor: pointer;
}
.markup .link:hover {
color: var(--text-link);
text-decoration: underline;
}
.markup ul,
.markup ol {
margin: 0.25rem 0 0 0;
padding: 0;
list-style: none;
}
.markup li {
margin-bottom: 0.25rem;
}
.markup li:last-child {
margin-bottom: 0;
}
.markup ul > li {
position: relative;
padding-left: 1em;
}
.markup ul > li::before {
content: '•';
position: absolute;
left: 0;
font-weight: 900;
}
.markup ol {
counter-reset: list-counter;
}
.markup ol > li {
position: relative;
padding-left: 1.25em;
counter-increment: list-counter;
}
.markup ol > li::before {
content: counter(list-counter) '.';
position: absolute;
left: 0;
}
.markup li > ul,
.markup li > ol {
margin-top: 0.25rem;
margin-bottom: 0;
}
.markup ul ul > li::before,
.markup ol ul > li::before {
content: '◦';
}
.markup ul ul ul > li::before {
content: '▪';
}
.markup ol ol {
counter-reset: nested-counter;
}
.markup ol ol > li {
counter-increment: nested-counter;
}
.markup ol ol > li::before {
content: counter(nested-counter, lower-alpha) '.';
}
.markup ol ol ol {
counter-reset: deep-counter;
}
.markup ol ol ol > li {
counter-increment: deep-counter;
}
.markup ol ol ol > li::before {
content: counter(deep-counter, lower-roman) '.';
}
.markup code.inline {
font-family: var(--font-mono);
font-size: 0.85em;
background-color: var(--bg-code);
color: var(--text-code);
padding: 0.15em 0.3em;
margin: -0.15em 0;
border-radius: var(--radius-sm);
white-space: pre-wrap;
box-decoration-break: clone;
transition: background-color var(--transition-fast);
}
.markup .link code.inline {
color: inherit;
}
.markup .codeContainer {
position: relative;
border-radius: var(--radius-md);
background-color: var(--bg-code-block);
overflow-x: auto;
max-width: 50vw;
box-sizing: border-box;
border: 1px solid var(--border-color);
padding: 0.75rem;
}
.markup pre {
font-family: var(--font-mono);
font-size: 0.75rem;
line-height: 1rem;
white-space: pre-wrap;
background-clip: border-box;
margin: 0;
overflow-x: auto;
padding: 0;
}
.markup pre code {
display: block;
color: var(--text-primary);
background: none;
font-family: inherit;
font-size: inherit;
line-height: inherit;
white-space: inherit;
}
.markup .codeActions {
position: absolute;
top: 0.25rem;
right: 0.25rem;
display: flex;
gap: 0.125rem;
opacity: 0;
transition: opacity var(--transition-normal);
z-index: 10;
}
.markup .codeContainer:hover .codeActions,
.markup .codeContainer:focus-within .codeActions {
opacity: 1;
}
.markup .codeActionsVisible {
display: block;
opacity: 1;
}
.markup .codeActions > div,
.markup .codeActions > button {
background-color: var(--bg-secondary);
color: var(--text-secondary);
border: none;
border-radius: var(--radius-sm);
padding: 4px;
cursor: pointer;
transition:
background-color var(--transition-fast),
color var(--transition-fast);
}
.markup .codeActions > button:hover {
background-color: var(--bg-hover);
color: var(--text-primary);
}
.markup .no-webkit-scrollbar code {
scrollbar-width: thin;
scrollbar-color: var(--background-tertiary) var(--background-primary);
}
.markup .blockquoteContainer {
display: flex;
margin-top: 0.25rem;
margin-bottom: 0.25rem;
width: 100%;
}
.markup .blockquoteDivider {
width: 4px;
border-radius: 4px;
background-color: var(--interactive-muted);
flex-shrink: 0;
margin-right: 0.75rem;
}
.markup .blockquoteContent {
padding: 0.25rem 0;
width: 100%;
color: var(--text-chat-muted);
}
.markup blockquote {
margin: 0;
padding: 0;
border: none;
background: none;
}
.markup .blockquoteContent .blockquoteContainer {
margin-top: 0.25rem;
margin-bottom: 0.25rem;
}
.markup .blockquoteContent .blockquoteDivider {
opacity: 0.7;
}
.markup .tableContainer {
margin: 0 0 0.75rem 0;
overflow-x: auto;
display: inline-block;
max-width: 100%;
-webkit-overflow-scrolling: touch;
}
.markup .tableContainer + h1,
.markup .tableContainer + h2,
.markup .tableContainer + h3,
.markup .tableContainer + h4,
.markup .tableContainer + h5,
.markup .tableContainer + h6 {
margin-top: 0;
}
.markup .table {
border-collapse: separate;
border-spacing: 0;
margin: 0;
width: auto;
font-size: 0.875rem;
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
overflow: hidden;
}
.markup .tableHeader {
background: var(--bg-table-header);
font-weight: 600;
color: var(--text-primary);
border-bottom: 1px solid var(--border-color);
padding: 0.5rem 0.75rem;
white-space: normal;
word-wrap: break-word;
overflow-wrap: break-word;
text-align: left;
}
.markup .tableCell {
border-bottom: 1px solid var(--border-color);
padding: 0.5rem 0.75rem;
text-align: left;
background: var(--bg-table-row-odd);
vertical-align: middle;
line-height: 1.4;
white-space: normal;
word-wrap: break-word;
overflow-wrap: break-word;
hyphens: none;
}
.markup .table tbody tr:last-child .tableCell {
border-bottom: none;
}
.markup .table tbody tr:nth-child(odd) .tableCell {
background: var(--bg-table-row-odd);
}
.markup .table tbody tr:nth-child(even) .tableCell {
background: var(--bg-table-row-even);
}
.markup .alignLeft {
text-align: left;
}
.markup .alignCenter {
text-align: center;
}
.markup .alignRight {
text-align: right;
}
.markup .alert {
position: relative;
padding: 0.375rem 0.75rem 0.375rem 1rem;
margin-top: 0.25rem;
border-radius: var(--radius-md);
background: transparent;
}
.markup .alert::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 4px;
border-radius: 4px;
background-color: currentColor;
}
.markup .alertIcon {
display: inline-block;
width: 1em;
height: 1em;
margin-right: 0.25rem;
vertical-align: text-bottom;
}
.markup .alertTitle {
display: inline-flex;
align-items: center;
font-weight: 600;
margin-bottom: 0.25rem;
font-size: 0.9375rem;
}
.markup .alertContent {
margin-top: 0.25rem;
color: var(--text-chat);
}
.markup .alertContent > :first-child {
margin-top: 0;
}
.markup .alertContent > :last-child {
margin-bottom: 0;
}
.markup .alertNote {
color: var(--alert-note-color);
}
.markup .alertTip {
color: var(--alert-tip-color);
}
.markup .alertImportant {
color: var(--alert-important-color);
}
.markup .alertWarning {
color: var(--alert-warning-color);
}
.markup .alertCaution {
color: var(--alert-caution-color);
}
.markup .mention {
border-radius: var(--radius-md);
padding: 0 0.25rem;
font-weight: 500;
unicode-bidi: plaintext;
color: var(--markup-mention-text);
background-color: var(--markup-mention-fill);
border: 1px solid var(--markup-mention-border);
transition:
background-color var(--transition-fast),
color var(--transition-fast),
border-color var(--transition-fast);
display: inline;
align-items: center;
white-space: nowrap;
vertical-align: baseline;
line-height: inherit;
}
.markup .mention svg {
width: 1em;
height: 1em;
margin-right: 0.1em;
margin-top: -0.1em;
flex-shrink: 0;
display: inline-block;
vertical-align: middle;
}
.markup .mention.interactive {
cursor: pointer;
display: inline;
align-items: center;
}
.markup .mention.interactive:hover,
.markup .mention.interactive:focus-visible {
background-color: var(--markup-interactive-hover-fill);
color: var(--markup-interactive-hover-text);
}
.markup .timestamp {
background-color: var(--background-modifier-hover);
border-radius: 3px;
padding: 0 2px;
white-space: nowrap;
font-family: var(--font-mono);
font-size: 0.85em;
color: var(--text-secondary);
cursor: default;
transition: background-color var(--transition-fast);
}
.markup .timestamp:hover {
background-color: var(--bg-hover);
}
.markup .spoilerWrapper {
display: inline;
margin: 0;
max-width: 100%;
vertical-align: baseline;
}
.markup .blockSpoilerWrapper {
display: block;
margin: 0.25rem 0;
}
.markup .spoiler,
.markup .blockSpoiler {
position: relative;
cursor: pointer;
line-height: inherit;
white-space: inherit;
vertical-align: baseline;
box-sizing: border-box;
font-family: inherit;
color: inherit;
background: none;
border: none;
text-align: inherit;
appearance: none;
}
.markup .spoiler {
display: inline;
border-radius: var(--spoiler-border-radius);
padding: 0 2px;
margin: 0;
width: auto;
max-width: 100%;
}
.markup .spoiler:focus-visible {
outline: 2px solid var(--text-link);
outline-offset: 2px;
}
.markup .blockSpoiler {
padding: 0.5rem;
display: block;
width: 100%;
box-sizing: border-box;
background-color: var(--bg-tertiary);
border-radius: var(--radius-md);
}
.markup :is(.spoiler, .blockSpoiler):not([data-revealed='true']) {
background-color: var(--spoiler-overlay-color);
border-radius: inherit;
overflow: hidden;
}
.markup :is(.spoiler, .blockSpoiler):not([data-revealed='true']) .spoilerContent {
opacity: 0;
pointer-events: none;
user-select: none;
-webkit-user-select: none;
transition: opacity 0.2s ease;
color: transparent;
filter: blur(5px);
}
.markup :is(.spoiler, .blockSpoiler):not([data-revealed='true']):hover {
background-color: var(--spoiler-overlay-hover-color);
}
.markup .spoiler[data-revealed='true'] {
background-color: var(--background-modifier-accent);
border-radius: var(--spoiler-border-radius);
cursor: text;
user-select: text;
-webkit-user-select: text;
}
.markup .blockSpoiler[data-revealed='true'] {
background-color: var(--background-modifier-accent);
border-radius: var(--spoiler-border-radius);
cursor: text;
user-select: text;
-webkit-user-select: text;
}
.markup .spoiler[data-revealed='true'] .spoilerContent,
.markup .blockSpoiler[data-revealed='true'] .spoilerContent {
opacity: 1;
filter: none;
transition:
opacity 0.2s ease,
filter 0.2s ease;
}
.markup .blockSpoiler .spoilerContent > :first-child {
margin-top: 0;
}
.markup .blockSpoiler .spoilerContent > :last-child {
margin-bottom: 0;
}
.markup .latexCodeBlock {
width: 100%;
max-width: 100%;
margin: 0 0 0.75rem 0;
}
.markup .latexContent {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
padding: 0.75rem;
overflow-x: auto;
background: var(--bg-code-block);
border-radius: var(--radius-md);
font-size: 0.75rem;
line-height: 1rem;
}
.markup pre .latexContent {
font-family: var(--font-mono);
padding: 0.4em;
box-sizing: border-box;
}
.markup .latexCodeBlock .codeContainer {
position: relative;
width: 100%;
background: var(--bg-code-block);
border-radius: var(--radius-md);
}
.markup.inlineFormat,
.markup .inlineFormat {
display: inline;
white-space: normal;
}
.markup.inlineFormat h1,
.markup.inlineFormat h2,
.markup.inlineFormat h3,
.markup.inlineFormat h4,
.markup.inlineFormat h5,
.markup.inlineFormat h6,
.markup .inlineFormat h1,
.markup .inlineFormat h2,
.markup .inlineFormat h3,
.markup .inlineFormat h4,
.markup .inlineFormat h5,
.markup .inlineFormat h6 {
display: inline;
margin: 0;
font-weight: 600;
font-size: inherit;
white-space: normal;
padding-right: 0.75rem;
line-height: 1.25em;
color: inherit;
border: none;
}
.markup.inlineFormat p,
.markup .inlineFormat p {
display: inline;
margin: 0;
}
.markup.inlineFormat ul,
.markup.inlineFormat ol,
.markup .inlineFormat ul,
.markup .inlineFormat ol {
display: inline;
margin: 0;
padding: 0 0.5rem 0 0;
}
.markup.inlineFormat li,
.markup .inlineFormat li {
display: inline;
margin: 0;
padding-right: 0.5rem;
}
.markup.inlineFormat li:before,
.markup .inlineFormat li:before {
content: '•';
padding-right: 0.25rem;
}
.markup.inlineFormat li li:before,
.markup .inlineFormat li li:before {
content: '•';
font-size: 0.625rem;
padding: 0 0.25rem 0.25rem;
line-height: 1rem;
}
.markup.inlineFormat blockquote,
.markup .inlineFormat blockquote {
display: inline;
margin: 0;
border: none;
padding: 0;
}
.markup small.inlineFormat:after {
content: ' ';
}
.markup small:not(.inlineFormat) {
display: block;
color: var(--text-chat-muted);
font-size: 0.8125rem;
line-height: 1.11719rem;
}
.markup .interactive {
transition:
background-color 50ms ease-out,
color 50ms ease-out;
cursor: pointer;
}
.markup .interactive:hover {
color: var(--markup-interactive-hover-text);
background-color: var(--markup-interactive-hover-fill);
}
.markup .hljs {
display: block;
text-size-adjust: none;
background: transparent;
color: var(--text-code);
overflow-x: auto;
padding: 0;
}
:global(.theme-light) .markup .hljs {
box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 80%, transparent);
}
.markup .error {
color: var(--accent-danger);
padding: 0.25rem 0.5rem;
background-color: hsla(358, calc(85% * var(--saturation-factor)), 60%, 0.1);
border-radius: var(--radius-md);
margin: 0.25rem 0;
border-left: 3px solid var(--accent-danger);
font-family: var(--font-mono);
font-size: 0.9em;
}
.markup .forwardedMessage {
display: flex;
margin: 0.5rem 0;
padding: 0.5rem 0.75rem;
background-color: var(--background-modifier-hover);
border-left: 4px solid var(--interactive-muted);
border-radius: var(--radius-md);
}
.markup .forwardedContent {
flex: 1;
color: var(--text-chat);
}
.markup .forwardedJumpLink {
display: inline-block;
margin-top: 0.5rem;
font-size: 0.875rem;
color: var(--text-link);
text-decoration: none;
cursor: pointer;
transition: color var(--transition-fast);
}
.markup .forwardedJumpLink:hover {
color: var(--text-link);
text-decoration: underline;
}
@media (max-width: 768px) {
.markup h1 {
font-size: 1.5rem;
}
.markup h2 {
font-size: 1.35rem;
}
.markup h3 {
font-size: 1.2rem;
}
.markup h4 {
font-size: 1.05rem;
}
.markup pre {
padding: 0.25rem;
}
.markup .tableContainer {
max-width: 100%;
display: block;
width: 100%;
}
.markup .table {
width: 100%;
min-width: 100%;
}
.markup .alert {
padding: 0.375rem 0.5rem 0.375rem calc(0.5rem + 3px);
}
}
@media (max-width: 640px) {
.markup .tableContainer {
display: block;
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.markup .table {
width: 100%;
min-width: max-content;
table-layout: fixed;
}
.markup .tableCell,
.markup .tableHeader {
min-width: 80px;
white-space: normal;
}
}
@media print {
.markup {
color: #000;
}
.markup a {
color: #0077cc;
text-decoration: underline;
}
.markup code {
background-color: #f5f5f5;
border: 1px solid #ddd;
}
.markup pre {
background-color: #f5f5f5;
border: 1px solid #ddd;
}
.markup pre code {
background-color: #f5f5f5;
border: none;
}
.markup .tableContainer {
border: 1px solid #ddd;
}
.markup .tableHeader {
background-color: #f0f0f0;
}
.markup .alert {
border: 1px solid #ddd;
padding: 0.5em;
}
.markup .spoiler[data-revealed='true'] .spoilerContent {
opacity: 1;
filter: none;
}
.markup .spoiler:not([data-revealed='true']) {
background-color: #eee;
color: #666;
}
}

View File

@@ -0,0 +1,35 @@
/*
* Copyright (C) 2026 Fluxer Contributors
*
* This file is part of Fluxer.
*
* Fluxer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Fluxer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
*/
.everyoneMention {
background-color: var(--markup-everyone-fill);
color: var(--markup-everyone-text);
border: 1px solid var(--markup-everyone-border);
}
.hereMention {
background-color: var(--markup-here-fill);
color: var(--markup-here-text);
border: 1px solid var(--markup-here-border);
}
.channelIcon {
height: 1rem;
width: 1rem;
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,67 @@
/*
* Copyright (C) 2026 Fluxer Contributors
*
* This file is part of Fluxer.
*
* Fluxer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Fluxer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
*/
.scroller {
overflow: auto;
-webkit-overflow-scrolling: touch;
overscroll-behavior: contain;
scrollbar-color: var(--scrollbar-thumb-bg) var(--scrollbar-track-bg);
}
.scroller::-webkit-scrollbar {
width: 16px;
height: 16px;
}
.scroller:-webkit-scrollbar-corner {
background-color: transparent;
}
.scroller::-webkit-scrollbar-thumb {
background-color: var(--scrollbar-thumb-bg);
min-height: 40px;
}
.scroller::-webkit-scrollbar-thumb:hover {
background-color: var(--scrollbar-thumb-bg-hover);
}
.scrollerWithBottomGutter::-webkit-scrollbar-track {
margin-bottom: 8px;
}
.scrollerTextarea {
--scrollbar-track-bg: var(--form-surface-background);
}
.scrollerTextarea::-webkit-scrollbar-track {
margin-top: 2px;
margin-bottom: 2px;
}
.scroller::-webkit-scrollbar-thumb,
.scroller::-webkit-scrollbar-track {
border: 4px solid transparent;
background-clip: padding-box;
border-radius: 8px;
}
.scroller::-webkit-scrollbar-track {
background-color: var(--scrollbar-track-bg);
}

View File

@@ -0,0 +1,53 @@
/*
* Copyright (C) 2026 Fluxer Contributors
*
* This file is part of Fluxer.
*
* Fluxer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Fluxer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
*/
.tooltipContainer {
display: flex;
flex-direction: column;
}
.tooltipFullDateTime {
font-weight: 600;
}
.tooltipRelativeTime {
color: #d1d5db;
font-size: 0.875rem;
}
.timestampPast {
color: #9ca3af;
}
.timestampFuture {
color: #a5b4fc;
}
.timestampToday {
color: #86efac;
font-weight: 600;
}
.clockIcon {
margin-right: 0.25rem;
display: inline-block;
height: 0.875rem;
width: 0.875rem;
opacity: 0.7;
}

View File

@@ -0,0 +1,42 @@
/*
* Copyright (C) 2026 Fluxer Contributors
*
* This file is part of Fluxer.
*
* Fluxer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Fluxer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
*/
@keyframes blink {
50% {
opacity: 0;
}
}
.dot {
animation: 1s blink infinite;
color: var(--text-chat);
}
.dot:nth-child(2) {
animation-delay: 250ms;
}
.dot:nth-child(3) {
animation-delay: 500ms;
}
:global(html:not(.window-focused)) .dot {
animation-play-state: paused;
opacity: 1;
}

View File

@@ -0,0 +1,257 @@
/*
* Copyright (C) 2026 Fluxer Contributors
*
* This file is part of Fluxer.
*
* Fluxer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Fluxer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
*/
*,
::after,
::before,
::backdrop,
::file-selector-button {
box-sizing: border-box;
margin: 0;
padding: 0;
border: 0 solid;
}
html,
:host {
line-height: 1.5;
-webkit-text-size-adjust: 100%;
tab-size: 4;
font-family: --theme(
--default-font-family,
ui-sans-serif,
system-ui,
sans-serif,
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol',
'Noto Color Emoji'
);
font-feature-settings: --theme(--default-font-feature-settings, normal);
font-variation-settings: --theme(--default-font-variation-settings, normal);
-webkit-tap-highlight-color: transparent;
}
hr {
height: 0;
color: inherit;
border-top-width: 1px;
}
abbr:where([title]) {
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: inherit;
font-weight: inherit;
}
a {
color: inherit;
-webkit-text-decoration: inherit;
text-decoration: inherit;
}
b,
strong {
font-weight: bolder;
}
code,
kbd,
samp,
pre {
font-family: --theme(
--default-mono-font-family,
ui-monospace,
SFMono-Regular,
Menlo,
Monaco,
Consolas,
'Liberation Mono',
'Courier New',
monospace
);
font-feature-settings: --theme(--default-mono-font-feature-settings, normal);
font-variation-settings: --theme(--default-mono-font-variation-settings, normal);
font-size: 1em;
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
table {
text-indent: 0;
border-color: inherit;
border-collapse: collapse;
}
:-moz-focusring {
outline: auto;
}
progress {
vertical-align: baseline;
}
summary {
display: list-item;
}
ol,
ul,
menu {
list-style: none;
}
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
display: block;
vertical-align: middle;
}
img,
video {
max-width: 100%;
height: auto;
}
button,
input,
select,
optgroup,
textarea,
::file-selector-button {
font: inherit;
font-feature-settings: inherit;
font-variation-settings: inherit;
letter-spacing: inherit;
color: inherit;
border-radius: 0;
background-color: transparent;
opacity: 1;
}
:where(select:is([multiple], [size])) optgroup {
font-weight: bolder;
}
:where(select:is([multiple], [size])) optgroup option {
padding-inline-start: 20px;
}
::file-selector-button {
margin-inline-end: 4px;
}
::placeholder {
opacity: 1;
}
@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
::placeholder {
color: color-mix(in oklab, currentcolor 50%, transparent);
}
}
textarea {
resize: vertical;
}
::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-date-and-time-value {
min-height: 1lh;
text-align: inherit;
}
::-webkit-datetime-edit {
display: inline-flex;
}
::-webkit-datetime-edit-fields-wrapper {
padding: 0;
}
::-webkit-datetime-edit,
::-webkit-datetime-edit-year-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute-field,
::-webkit-datetime-edit-second-field,
::-webkit-datetime-edit-millisecond-field,
::-webkit-datetime-edit-meridiem-field {
padding-block: 0;
}
::-webkit-calendar-picker-indicator {
line-height: 1;
}
:-moz-ui-invalid {
box-shadow: none;
}
button,
input:where([type='button'], [type='reset'], [type='submit']),
::file-selector-button {
appearance: button;
}
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
height: auto;
}
[hidden]:where(:not([hidden='until-found'])) {
display: none !important;
}