2023-02-17 15:48:15 +03:00
|
|
|
/* Can't use this yet because custom-media doesn't propagate to other CSS files yet, in Vite */
|
|
|
|
@custom-media --viewport-medium (min-width: 40em);
|
|
|
|
|
2022-12-10 12:14:48 +03:00
|
|
|
:root {
|
2023-03-14 14:02:54 +03:00
|
|
|
--sai-top: env(safe-area-inset-top);
|
|
|
|
--sai-right: env(safe-area-inset-right);
|
|
|
|
--sai-bottom: env(safe-area-inset-bottom);
|
|
|
|
--sai-left: env(safe-area-inset-left);
|
|
|
|
|
2023-03-08 12:17:23 +03:00
|
|
|
--text-size: 16px;
|
2023-02-17 15:47:09 +03:00
|
|
|
--main-width: 40em;
|
2022-12-22 06:24:17 +03:00
|
|
|
text-size-adjust: none;
|
2023-01-14 17:27:02 +03:00
|
|
|
--hairline-width: 1px;
|
2022-12-22 06:24:17 +03:00
|
|
|
|
2022-12-10 12:14:48 +03:00
|
|
|
--blue-color: royalblue;
|
|
|
|
--purple-color: blueviolet;
|
2023-01-02 19:49:05 +03:00
|
|
|
--green-color: darkgreen;
|
2022-12-22 05:35:39 +03:00
|
|
|
--orange-color: darkorange;
|
2022-12-10 12:14:48 +03:00
|
|
|
--red-color: orangered;
|
|
|
|
--bg-color: #fff;
|
|
|
|
--bg-faded-color: #f0f2f5;
|
|
|
|
--bg-blur-color: #fff9;
|
|
|
|
--bg-faded-blur-color: #f0f2f599;
|
|
|
|
--text-color: #1c1e21;
|
|
|
|
--text-insignificant-color: #1c1e2199;
|
|
|
|
--link-color: var(--blue-color);
|
|
|
|
--link-light-color: #4169e199;
|
2022-12-29 11:11:58 +03:00
|
|
|
--link-faded-color: #4169e155;
|
2022-12-10 12:14:48 +03:00
|
|
|
--link-bg-hover-color: #f0f2f599;
|
2023-01-17 08:37:48 +03:00
|
|
|
--link-visited-color: mediumslateblue;
|
2022-12-30 18:09:25 +03:00
|
|
|
--focus-ring-color: var(--link-color);
|
2022-12-10 12:14:48 +03:00
|
|
|
--button-bg-color: var(--blue-color);
|
|
|
|
--button-bg-blur-color: #4169e1aa;
|
|
|
|
--button-text-color: white;
|
|
|
|
--button-plain-bg-hover-color: rgba(128, 128, 128, 0.1);
|
|
|
|
--reblog-color: var(--purple-color);
|
|
|
|
--reblog-faded-color: #892be220;
|
|
|
|
--reply-to-color: var(--orange-color);
|
2023-01-10 14:59:02 +03:00
|
|
|
--reply-to-text-color: #b36200;
|
2022-12-10 12:14:48 +03:00
|
|
|
--favourite-color: var(--red-color);
|
2023-01-24 20:01:04 +03:00
|
|
|
--reply-to-faded-color: #ffa60030;
|
2022-12-12 16:54:31 +03:00
|
|
|
--outline-color: rgba(128, 128, 128, 0.2);
|
|
|
|
--outline-hover-color: rgba(128, 128, 128, 0.7);
|
2022-12-10 12:14:48 +03:00
|
|
|
--divider-color: rgba(0, 0, 0, 0.1);
|
2023-01-31 18:43:24 +03:00
|
|
|
--backdrop-color: rgba(0, 0, 0, 0.05);
|
2022-12-10 12:14:48 +03:00
|
|
|
--img-bg-color: rgba(128, 128, 128, 0.2);
|
|
|
|
--loader-color: #1c1e2199;
|
|
|
|
--comment-line-color: #e5e5e5;
|
2023-01-27 09:35:44 +03:00
|
|
|
--drop-shadow-color: rgba(0, 0, 0, 0.15);
|
2022-12-20 10:13:49 +03:00
|
|
|
|
|
|
|
--timing-function: cubic-bezier(0.3, 0.5, 0, 1);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
|
2023-01-14 18:03:56 +03:00
|
|
|
@media (min-resolution: 2dppx) {
|
2023-01-14 17:27:02 +03:00
|
|
|
:root {
|
|
|
|
--hairline-width: 0.5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-10 12:14:48 +03:00
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
:root {
|
|
|
|
--blue-color: CornflowerBlue;
|
2023-01-22 11:32:45 +03:00
|
|
|
--purple-color: #b190f1;
|
2023-01-02 19:49:05 +03:00
|
|
|
--green-color: lightgreen;
|
2022-12-22 05:35:39 +03:00
|
|
|
--orange-color: orange;
|
2022-12-10 12:14:48 +03:00
|
|
|
--bg-color: #242526;
|
|
|
|
--bg-faded-color: #18191a;
|
|
|
|
--bg-blur-color: #0009;
|
|
|
|
--bg-faded-blur-color: #18191a99;
|
|
|
|
--text-color: #f0f2f5;
|
|
|
|
--text-insignificant-color: #f0f2f599;
|
2022-12-12 16:54:31 +03:00
|
|
|
--link-light-color: #6494ed99;
|
2022-12-29 11:11:58 +03:00
|
|
|
--link-faded-color: #6494ed88;
|
2022-12-10 12:14:48 +03:00
|
|
|
--link-bg-hover-color: #34353799;
|
2023-01-24 20:01:04 +03:00
|
|
|
--reblog-faded-color: #b190f141;
|
2023-01-20 20:04:40 +03:00
|
|
|
--reply-to-text-color: var(--reply-to-color);
|
2023-01-24 20:01:04 +03:00
|
|
|
--reply-to-faded-color: #ffa60027;
|
2022-12-10 12:14:48 +03:00
|
|
|
--divider-color: rgba(255, 255, 255, 0.1);
|
|
|
|
--bg-blur-color: #24252699;
|
|
|
|
--backdrop-color: rgba(0, 0, 0, 0.5);
|
2022-12-11 05:30:32 +03:00
|
|
|
--loader-color: #f0f2f599;
|
2022-12-10 12:14:48 +03:00
|
|
|
--comment-line-color: #565656;
|
2023-01-27 09:35:44 +03:00
|
|
|
--drop-shadow-color: rgba(0, 0, 0, 0.5);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-12 16:54:31 +03:00
|
|
|
*,
|
|
|
|
*::before,
|
|
|
|
*::after {
|
2022-12-10 12:14:48 +03:00
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
2023-04-10 15:23:40 +03:00
|
|
|
[dir] {
|
|
|
|
text-align: start;
|
|
|
|
}
|
|
|
|
|
2023-02-28 02:59:48 +03:00
|
|
|
html {
|
|
|
|
text-size-adjust: 100%;
|
|
|
|
}
|
|
|
|
|
2022-12-10 12:14:48 +03:00
|
|
|
body {
|
2023-02-22 18:40:16 +03:00
|
|
|
font-family: ui-rounded, system-ui;
|
2023-03-08 12:17:23 +03:00
|
|
|
font-size: var(--text-size);
|
2022-12-10 12:14:48 +03:00
|
|
|
word-wrap: break-word;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: var(--link-color);
|
|
|
|
text-decoration-color: var(--link-faded-color);
|
|
|
|
text-decoration-thickness: 2px;
|
|
|
|
text-underline-offset: 2px;
|
|
|
|
overflow-wrap: anywhere;
|
|
|
|
}
|
2022-12-29 11:11:58 +03:00
|
|
|
a:is(:hover, :focus) {
|
2022-12-10 12:14:48 +03:00
|
|
|
text-decoration-color: var(--link-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
hr {
|
|
|
|
height: 2px;
|
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
|
|
|
margin: 16px 0;
|
2022-12-12 16:54:31 +03:00
|
|
|
background-image: linear-gradient(
|
|
|
|
to right,
|
|
|
|
transparent,
|
|
|
|
var(--divider-color),
|
|
|
|
transparent
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
button,
|
|
|
|
input,
|
|
|
|
select,
|
|
|
|
textarea {
|
2022-12-10 12:14:48 +03:00
|
|
|
font-family: inherit;
|
|
|
|
font-size: inherit;
|
|
|
|
line-height: inherit;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2022-12-12 16:54:31 +03:00
|
|
|
button,
|
|
|
|
.button {
|
2022-12-10 12:14:48 +03:00
|
|
|
display: inline-block;
|
|
|
|
padding: 8px 12px;
|
|
|
|
border-radius: 2.5em;
|
|
|
|
border: 0;
|
|
|
|
background-color: var(--button-bg-color);
|
|
|
|
color: var(--button-text-color);
|
|
|
|
line-height: 1;
|
|
|
|
vertical-align: middle;
|
|
|
|
text-decoration: none;
|
2023-01-03 10:51:16 +03:00
|
|
|
user-select: none;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2022-12-20 04:22:26 +03:00
|
|
|
:is(button, .button) > * {
|
2022-12-10 12:14:48 +03:00
|
|
|
vertical-align: middle;
|
2022-12-20 04:22:26 +03:00
|
|
|
pointer-events: none;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2022-12-29 11:11:58 +03:00
|
|
|
:is(button, .button):not(:disabled, .disabled):is(:hover, :focus) {
|
2022-12-14 16:48:17 +03:00
|
|
|
cursor: pointer;
|
2022-12-10 12:14:48 +03:00
|
|
|
filter: brightness(1.2);
|
|
|
|
}
|
2022-12-14 16:48:17 +03:00
|
|
|
:is(button, .button):not(:disabled, .disabled):active {
|
2022-12-10 12:14:48 +03:00
|
|
|
filter: brightness(0.8);
|
|
|
|
}
|
2022-12-14 16:48:17 +03:00
|
|
|
:is(button:disabled, .button.disabled) {
|
2022-12-10 12:14:48 +03:00
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
:is(button, .button).plain {
|
2022-12-11 10:00:51 +03:00
|
|
|
background-color: transparent;
|
|
|
|
color: var(--link-color);
|
|
|
|
backdrop-filter: blur(12px);
|
|
|
|
}
|
|
|
|
:is(button, .button).plain2 {
|
2022-12-10 12:14:48 +03:00
|
|
|
background-color: transparent;
|
|
|
|
color: var(--link-color);
|
2023-04-06 11:15:01 +03:00
|
|
|
backdrop-filter: blur(12px) invert(0.1);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2023-01-24 06:32:33 +03:00
|
|
|
:is(button, .button).plain3 {
|
|
|
|
background-color: transparent;
|
|
|
|
color: var(--button-text-color);
|
|
|
|
backdrop-filter: blur(12px) invert(0.25);
|
|
|
|
}
|
2023-01-28 17:34:36 +03:00
|
|
|
:is(button, .button).plain4 {
|
|
|
|
background-color: transparent;
|
|
|
|
color: var(--text-insignificant-color);
|
|
|
|
}
|
|
|
|
:is(button, .button).plain4:not(:disabled, .disabled):is(:hover, :focus) {
|
|
|
|
color: var(--text-color);
|
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
:is(button, .button).light {
|
|
|
|
background-color: var(--bg-faded-color);
|
|
|
|
color: var(--text-color);
|
2022-12-10 19:52:04 +03:00
|
|
|
border: 1px solid var(--outline-color);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2023-04-05 18:30:26 +03:00
|
|
|
:is(button, .button).light:not(:disabled, .disabled):is(:hover, :focus) {
|
|
|
|
border-color: var(--outline-hover-color);
|
|
|
|
}
|
2022-12-24 05:05:01 +03:00
|
|
|
:is(button, .button).light.danger:not(:disabled, .disabled) {
|
|
|
|
color: var(--red-color);
|
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
|
|
|
|
:is(button, .button).block {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
padding: 12px;
|
|
|
|
}
|
|
|
|
|
2022-12-21 14:46:38 +03:00
|
|
|
:is(button, .button).textual {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
vertical-align: baseline;
|
|
|
|
color: var(--link-color);
|
|
|
|
background-color: transparent;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
2022-12-26 09:29:57 +03:00
|
|
|
:is(button, .button).swap {
|
|
|
|
display: grid;
|
|
|
|
/* 1 column, 1 row */
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
grid-template-rows: 1fr;
|
|
|
|
}
|
|
|
|
:is(button, .button).swap > * {
|
|
|
|
grid-column: 1;
|
|
|
|
grid-row: 1;
|
|
|
|
transition: opacity 0.3s;
|
|
|
|
}
|
|
|
|
:is(button, .button).swap > *:nth-child(2) {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2022-12-29 11:11:58 +03:00
|
|
|
:is(button, .button).swap:is(:hover, :focus) > *:nth-child(2) {
|
2022-12-26 09:29:57 +03:00
|
|
|
opacity: 1;
|
|
|
|
}
|
2022-12-29 11:11:58 +03:00
|
|
|
:is(button, .button).swap[data-swap-state='danger']:is(:hover, :focus) {
|
2022-12-26 09:29:57 +03:00
|
|
|
color: var(--red-color);
|
|
|
|
border-color: var(--red-color);
|
|
|
|
}
|
2022-12-29 11:11:58 +03:00
|
|
|
:is(button, .button).swap:is(:hover, :focus) > *:nth-child(1) {
|
2022-12-26 09:29:57 +03:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2022-12-12 16:54:31 +03:00
|
|
|
input[type='text'],
|
|
|
|
textarea,
|
|
|
|
select {
|
2022-12-10 12:14:48 +03:00
|
|
|
color: var(--text-color);
|
|
|
|
background-color: var(--bg-color);
|
|
|
|
border: 2px solid var(--divider-color);
|
|
|
|
padding: 8px;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
2022-12-12 16:54:31 +03:00
|
|
|
input[type='text']:focus,
|
|
|
|
textarea:focus,
|
|
|
|
select:focus {
|
2022-12-10 12:14:48 +03:00
|
|
|
border-color: var(--outline-color);
|
|
|
|
}
|
2022-12-12 16:54:31 +03:00
|
|
|
input[type='text'].large,
|
|
|
|
textarea.large,
|
|
|
|
select.large,
|
|
|
|
button.large {
|
2022-12-10 12:14:48 +03:00
|
|
|
font-size: 125%;
|
|
|
|
padding: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
button.small {
|
|
|
|
font-size: 90%;
|
|
|
|
padding: 4px 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
select.plain {
|
|
|
|
border: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
2023-01-12 14:28:50 +03:00
|
|
|
pre {
|
|
|
|
tab-size: 2;
|
|
|
|
}
|
2022-12-13 15:15:02 +03:00
|
|
|
pre code,
|
|
|
|
code {
|
2022-12-17 12:23:31 +03:00
|
|
|
font-size: 90%;
|
2023-02-22 18:40:16 +03:00
|
|
|
font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono',
|
|
|
|
Menlo, Courier, monospace;
|
2022-12-13 15:15:02 +03:00
|
|
|
}
|
|
|
|
|
2022-12-10 12:14:48 +03:00
|
|
|
@media (prefers-color-scheme: dark) {
|
2022-12-11 10:00:51 +03:00
|
|
|
:is(button, .button).plain2 {
|
2022-12-12 16:54:31 +03:00
|
|
|
backdrop-filter: blur(12px) brightness(0.5);
|
2022-12-11 09:35:57 +03:00
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
|
2022-12-30 15:37:57 +03:00
|
|
|
[tabindex='-1'] {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
2022-12-31 04:51:59 +03:00
|
|
|
:not([tabindex='-1']):focus-visible {
|
2022-12-30 18:09:25 +03:00
|
|
|
outline: 2px solid var(--focus-ring-color);
|
|
|
|
}
|
|
|
|
|
2022-12-10 12:14:48 +03:00
|
|
|
/* UTILS */
|
|
|
|
|
|
|
|
.ib {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2022-12-14 16:48:17 +03:00
|
|
|
.spacer {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
2022-12-17 20:04:26 +03:00
|
|
|
.insignificant {
|
|
|
|
color: var(--text-insignificant-color);
|
|
|
|
}
|
2023-02-26 19:55:04 +03:00
|
|
|
.more-insignificant {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
2022-12-17 20:04:26 +03:00
|
|
|
|
2023-02-19 17:07:46 +03:00
|
|
|
.hide-until-focus-visible {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
:has(:focus-visible) .hide-until-focus-visible {
|
|
|
|
display: initial;
|
|
|
|
}
|
|
|
|
|
2022-12-10 12:14:48 +03:00
|
|
|
/* KEYFRAMES */
|
|
|
|
|
2022-12-26 20:44:41 +03:00
|
|
|
@keyframes appear {
|
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-17 14:39:33 +03:00
|
|
|
@keyframes appear-smooth {
|
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
transform: scale(0.98);
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-10 12:14:48 +03:00
|
|
|
@keyframes fade-in {
|
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
transform: translateY(10px);
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
2022-12-12 16:54:31 +03:00
|
|
|
}
|
2022-12-30 08:55:46 +03:00
|
|
|
|
|
|
|
@keyframes slide-up {
|
|
|
|
0% {
|
|
|
|
transform: translateY(100%);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
|
|
|
}
|
2023-03-10 14:00:48 +03:00
|
|
|
|
|
|
|
@keyframes position-object {
|
|
|
|
0% {
|
|
|
|
object-position: 50% 50%;
|
|
|
|
}
|
|
|
|
25% {
|
|
|
|
object-position: 0% 0%;
|
|
|
|
}
|
|
|
|
75% {
|
|
|
|
object-position: 100% 100%;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
object-position: 50% 50%;
|
|
|
|
}
|
|
|
|
}
|