2022-12-12 16:54:31 +03:00
|
|
|
html,
|
|
|
|
body {
|
2022-12-10 12:14:48 +03:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2022-12-12 05:08:55 +03:00
|
|
|
background-color: var(--bg-color);
|
2022-12-10 12:14:48 +03:00
|
|
|
color: var(--text-color);
|
2023-01-10 20:08:18 +03:00
|
|
|
overflow-x: hidden;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#app {
|
|
|
|
min-height: 100vh;
|
2022-12-11 03:14:14 +03:00
|
|
|
min-height: 100dvh;
|
2022-12-10 12:14:48 +03:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2022-12-10 14:16:43 +03:00
|
|
|
/* MENTIONS */
|
|
|
|
|
|
|
|
a.mention {
|
|
|
|
text-decoration-line: none;
|
|
|
|
}
|
|
|
|
a.mention span {
|
|
|
|
text-decoration-line: underline;
|
|
|
|
text-decoration-color: inherit;
|
2022-12-23 14:33:06 +03:00
|
|
|
text-decoration-thickness: 2px;
|
|
|
|
text-underline-offset: 2px;
|
2022-12-10 14:16:43 +03:00
|
|
|
}
|
2022-12-16 08:30:07 +03:00
|
|
|
/* a.mention:has(span).hashtag {
|
2022-12-10 14:16:43 +03:00
|
|
|
color: var(--link-light-color);
|
2022-12-16 08:30:07 +03:00
|
|
|
} */
|
2022-12-12 16:54:31 +03:00
|
|
|
a.mention span {
|
2022-12-10 14:16:43 +03:00
|
|
|
color: var(--text-color);
|
|
|
|
}
|
2023-01-17 08:37:48 +03:00
|
|
|
a[href^='http'][rel*='nofollow']:visited:not(:has(div)) {
|
|
|
|
color: var(--link-visited-color);
|
|
|
|
text-decoration-color: var(--link-visited-color);
|
|
|
|
}
|
2022-12-10 14:16:43 +03:00
|
|
|
|
2022-12-10 12:14:48 +03:00
|
|
|
.deck-container {
|
|
|
|
width: 100%;
|
|
|
|
height: 100vh;
|
2022-12-11 03:01:53 +03:00
|
|
|
height: 100dvh;
|
2022-12-10 12:14:48 +03:00
|
|
|
overflow: auto;
|
2022-12-11 03:01:53 +03:00
|
|
|
overflow-x: hidden;
|
2022-12-12 16:54:31 +03:00
|
|
|
transition: opacity 0.1s ease-in-out;
|
2022-12-23 03:00:11 +03:00
|
|
|
overscroll-behavior: contain;
|
2022-12-31 04:52:31 +03:00
|
|
|
scroll-behavior: smooth;
|
2023-01-20 19:23:59 +03:00
|
|
|
background-color: var(--bg-color);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
.deck-container[hidden] {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
user-select: none;
|
|
|
|
pointer-events: none;
|
|
|
|
opacity: 0;
|
|
|
|
content-visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.deck-container,
|
|
|
|
.deck.contained {
|
2022-12-15 20:44:51 +03:00
|
|
|
scroll-padding-top: 3em;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
|
2023-01-20 19:23:59 +03:00
|
|
|
.deck-container {
|
|
|
|
transition: transform 0.4s var(--timing-function);
|
|
|
|
}
|
|
|
|
.deck-container:has(~ .deck-backdrop) {
|
|
|
|
transition: transform 0.4s ease-out;
|
|
|
|
transform: translate3d(-5vw, 0, 0);
|
|
|
|
}
|
|
|
|
|
2022-12-10 12:14:48 +03:00
|
|
|
.deck {
|
|
|
|
min-height: 100vh;
|
2022-12-11 03:14:14 +03:00
|
|
|
min-height: 100dvh;
|
2022-12-10 12:14:48 +03:00
|
|
|
margin: auto;
|
|
|
|
width: 40em;
|
|
|
|
max-width: 100vw;
|
|
|
|
border-left: 1px solid rgba(0, 0, 0, 0.1);
|
|
|
|
border-right: 1px solid rgba(0, 0, 0, 0.1);
|
|
|
|
background-color: var(--bg-color);
|
|
|
|
}
|
|
|
|
.deck.contained {
|
|
|
|
overflow: auto;
|
2022-12-11 03:01:53 +03:00
|
|
|
overflow-x: hidden;
|
2022-12-10 12:14:48 +03:00
|
|
|
height: 100vh;
|
2022-12-11 03:14:14 +03:00
|
|
|
height: 100dvh;
|
2022-12-23 03:00:11 +03:00
|
|
|
overscroll-behavior: contain;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
|
2023-01-14 14:42:04 +03:00
|
|
|
.deck > header {
|
2022-12-15 19:57:21 +03:00
|
|
|
min-height: 3em;
|
2022-12-10 12:14:48 +03:00
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
background-color: var(--bg-blur-color);
|
2022-12-28 05:49:43 +03:00
|
|
|
background-image: linear-gradient(to bottom, var(--bg-color), transparent);
|
2022-12-24 12:54:58 +03:00
|
|
|
backdrop-filter: saturate(180%) blur(20px);
|
2023-01-14 17:27:02 +03:00
|
|
|
border-bottom: var(--hairline-width) solid var(--divider-color);
|
2022-12-10 12:14:48 +03:00
|
|
|
z-index: 1;
|
|
|
|
cursor: default;
|
2022-12-11 10:30:49 +03:00
|
|
|
z-index: 10;
|
2022-12-19 14:24:39 +03:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
|
|
align-items: center;
|
2022-12-23 16:28:16 +03:00
|
|
|
user-select: none;
|
2023-01-02 16:36:24 +03:00
|
|
|
transition: transform 0.5s ease-in-out;
|
2023-01-03 10:51:16 +03:00
|
|
|
user-select: none;
|
2023-01-02 16:36:24 +03:00
|
|
|
}
|
2023-01-14 14:42:04 +03:00
|
|
|
.deck > header[hidden] {
|
2023-01-02 16:36:24 +03:00
|
|
|
transform: translateY(-100%);
|
|
|
|
pointer-events: none;
|
|
|
|
user-select: none;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2023-01-14 14:42:04 +03:00
|
|
|
.deck > header > .header-side:last-of-type {
|
2022-12-10 12:14:48 +03:00
|
|
|
text-align: right;
|
2022-12-19 14:24:39 +03:00
|
|
|
grid-column: 3;
|
|
|
|
}
|
2023-01-14 14:42:04 +03:00
|
|
|
.deck > header :is(button, .button).plain {
|
2022-12-19 14:24:39 +03:00
|
|
|
backdrop-filter: none;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2023-01-14 14:42:04 +03:00
|
|
|
.deck > header h1 {
|
2022-12-19 11:25:57 +03:00
|
|
|
margin: 0 8px;
|
2022-12-10 12:14:48 +03:00
|
|
|
padding: 0;
|
|
|
|
font-size: 1.2em;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2023-01-14 14:42:04 +03:00
|
|
|
.deck > header h1:first-child {
|
2022-12-10 12:14:48 +03:00
|
|
|
text-align: left;
|
|
|
|
padding-left: 8px;
|
|
|
|
}
|
|
|
|
.deck h2 {
|
|
|
|
font-size: 1.45em;
|
|
|
|
}
|
2022-12-12 16:54:31 +03:00
|
|
|
.deck.padded-bottom .timeline > li:last-child {
|
2022-12-18 19:19:34 +03:00
|
|
|
padding-bottom: 80vh !important;
|
|
|
|
padding-bottom: 80dvh !important;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.timeline {
|
|
|
|
margin: 0 auto;
|
|
|
|
padding: 0;
|
2023-01-01 03:51:56 +03:00
|
|
|
}
|
|
|
|
.timeline.grow {
|
2023-01-07 06:46:30 +03:00
|
|
|
/* min-height: 100vh;
|
|
|
|
min-height: 100dvh; */
|
2023-01-01 07:01:39 +03:00
|
|
|
padding-bottom: calc(env(safe-area-inset-bottom) + 16px);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2022-12-12 16:54:31 +03:00
|
|
|
.timeline > li {
|
2022-12-10 12:14:48 +03:00
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2023-01-14 17:27:02 +03:00
|
|
|
border-bottom: var(--hairline-width) solid var(--divider-color);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2022-12-12 16:54:31 +03:00
|
|
|
.timeline.flat > li {
|
2022-12-10 12:14:48 +03:00
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
2022-12-12 16:54:31 +03:00
|
|
|
.timeline.contextual > li {
|
2022-12-10 12:14:48 +03:00
|
|
|
--width: 3px;
|
|
|
|
--left: 40px;
|
|
|
|
--right: calc(var(--left) + var(--width));
|
2022-12-12 16:54:31 +03:00
|
|
|
background-image: linear-gradient(
|
|
|
|
to right,
|
|
|
|
transparent,
|
|
|
|
transparent var(--left),
|
|
|
|
var(--comment-line-color) var(--left),
|
|
|
|
var(--comment-line-color) var(--right),
|
|
|
|
transparent var(--right),
|
|
|
|
transparent
|
|
|
|
);
|
2022-12-10 12:14:48 +03:00
|
|
|
background-repeat: no-repeat;
|
2022-12-21 13:02:13 +03:00
|
|
|
transition: opacity 0.3s ease-in-out;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2022-12-12 16:54:31 +03:00
|
|
|
.timeline.contextual > li:first-child {
|
2022-12-10 12:14:48 +03:00
|
|
|
background-position: 0 16px;
|
|
|
|
}
|
2022-12-12 16:54:31 +03:00
|
|
|
.timeline.contextual > li:last-child {
|
2022-12-10 12:14:48 +03:00
|
|
|
background-size: 100% 20px;
|
|
|
|
}
|
2022-12-12 16:54:31 +03:00
|
|
|
.timeline.contextual > li.descendant {
|
2022-12-10 12:14:48 +03:00
|
|
|
position: relative;
|
|
|
|
}
|
2022-12-19 05:05:50 +03:00
|
|
|
.timeline.contextual > li.descendant {
|
2022-12-18 15:46:13 +03:00
|
|
|
padding-bottom: 1em;
|
|
|
|
}
|
|
|
|
.timeline.contextual > li.descendant:not(.thread) > .status-link {
|
|
|
|
padding-left: 40px;
|
|
|
|
}
|
|
|
|
.timeline.contextual
|
|
|
|
> li.descendant.thread
|
|
|
|
> .status-link
|
|
|
|
+ .replies
|
|
|
|
> summary {
|
2022-12-23 20:11:11 +03:00
|
|
|
margin-left: calc(50px + 16px + 12px);
|
2022-12-18 15:46:13 +03:00
|
|
|
}
|
|
|
|
.timeline.contextual
|
|
|
|
> li.descendant.thread
|
|
|
|
> .status-link
|
|
|
|
+ .replies
|
|
|
|
.status-link {
|
2022-12-23 20:11:11 +03:00
|
|
|
padding-left: calc(50px + 16px + 12px);
|
2022-12-18 15:46:13 +03:00
|
|
|
}
|
|
|
|
.timeline.contextual
|
|
|
|
> li.descendant:not(.thread)
|
|
|
|
> .status-link
|
|
|
|
+ .replies
|
|
|
|
> summary {
|
|
|
|
margin-left: calc(40px + 16px);
|
|
|
|
}
|
|
|
|
.timeline.contextual
|
|
|
|
> li.descendant:not(.thread)
|
|
|
|
> .status-link
|
|
|
|
+ .replies
|
|
|
|
.status-link {
|
|
|
|
padding-left: calc(40px + 16px);
|
|
|
|
}
|
|
|
|
.timeline.contextual > li.descendant:not(.thread):before {
|
2022-12-10 12:14:48 +03:00
|
|
|
--radius: 10px;
|
|
|
|
--diameter: calc(var(--radius) * 2);
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 10px;
|
|
|
|
left: 40px;
|
|
|
|
width: var(--diameter);
|
|
|
|
height: var(--diameter);
|
|
|
|
border-radius: var(--radius);
|
|
|
|
border-style: solid;
|
|
|
|
border-width: var(--width);
|
|
|
|
border-color: transparent transparent var(--comment-line-color) transparent;
|
|
|
|
transform: rotate(45deg);
|
|
|
|
}
|
2022-12-22 19:30:55 +03:00
|
|
|
.timeline.contextual > li .replies-link {
|
|
|
|
color: var(--text-insignificant-color);
|
|
|
|
margin-left: 16px;
|
|
|
|
margin-top: -12px;
|
|
|
|
padding-bottom: 12px;
|
|
|
|
font-size: 90%;
|
|
|
|
}
|
2022-12-23 20:11:11 +03:00
|
|
|
.timeline.contextual > li.thread > .status-link .replies-link {
|
|
|
|
margin-left: calc(50px + 16px + 12px);
|
|
|
|
}
|
2022-12-22 19:30:55 +03:00
|
|
|
.timeline.contextual > li .replies-link * {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2022-12-18 15:46:13 +03:00
|
|
|
.timeline.contextual > li .replies {
|
2022-12-19 11:35:22 +03:00
|
|
|
margin-top: -12px;
|
2022-12-18 15:46:13 +03:00
|
|
|
}
|
|
|
|
.timeline.contextual > li .replies :is(ul, li) {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
.timeline.contextual > li .replies summary {
|
|
|
|
padding: 8px 16px;
|
|
|
|
background-color: var(--bg-faded-color);
|
|
|
|
display: inline-block;
|
|
|
|
border-radius: 8px;
|
|
|
|
cursor: pointer;
|
|
|
|
text-transform: uppercase;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 12px;
|
|
|
|
color: var(--text-insignificant-color);
|
|
|
|
user-select: none;
|
2022-12-18 19:19:44 +03:00
|
|
|
box-shadow: 0 0 0 2px var(--bg-color);
|
2022-12-19 11:35:09 +03:00
|
|
|
position: relative;
|
2022-12-18 15:46:13 +03:00
|
|
|
}
|
|
|
|
.timeline.contextual > li .replies summary:active,
|
|
|
|
.timeline.contextual > li .replies[open] summary {
|
|
|
|
color: var(--text-color);
|
|
|
|
background-color: var(--comment-line-color);
|
|
|
|
background-image: linear-gradient(
|
|
|
|
to top right,
|
|
|
|
var(--comment-line-color),
|
|
|
|
var(--bg-faded-color)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
.timeline.contextual > li .replies[open] summary {
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
}
|
2022-12-19 05:05:50 +03:00
|
|
|
.timeline.contextual > li .replies summary[hidden] {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-12-18 15:46:13 +03:00
|
|
|
.timeline.contextual > li .replies li {
|
2022-12-10 12:14:48 +03:00
|
|
|
position: relative;
|
|
|
|
}
|
2022-12-23 20:11:11 +03:00
|
|
|
.timeline.contextual > li .replies li {
|
2022-12-18 15:46:13 +03:00
|
|
|
--width: 3px;
|
2022-12-23 20:11:11 +03:00
|
|
|
--left: calc(40px + 16px);
|
2022-12-18 15:46:13 +03:00
|
|
|
--right: calc(var(--left) + var(--width));
|
|
|
|
background-image: linear-gradient(
|
|
|
|
to right,
|
|
|
|
transparent,
|
|
|
|
transparent var(--left),
|
|
|
|
var(--comment-line-color) var(--left),
|
|
|
|
var(--comment-line-color) var(--right),
|
|
|
|
transparent var(--right),
|
|
|
|
transparent
|
|
|
|
);
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
2022-12-23 20:11:11 +03:00
|
|
|
.timeline.contextual > li.thread .replies li {
|
|
|
|
--left: calc(50px + 16px + 12px);
|
|
|
|
}
|
|
|
|
.timeline.contextual > li .replies li:last-child {
|
2022-12-18 15:46:13 +03:00
|
|
|
background-size: 100% 20px;
|
|
|
|
}
|
|
|
|
.timeline.contextual > li .replies li:before {
|
|
|
|
--radius: 10px;
|
|
|
|
--diameter: calc(var(--radius) * 2);
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 10px;
|
|
|
|
left: calc(40px + 16px);
|
|
|
|
width: var(--diameter);
|
|
|
|
height: var(--diameter);
|
|
|
|
border-radius: var(--radius);
|
|
|
|
border-style: solid;
|
|
|
|
border-width: var(--width);
|
|
|
|
border-color: transparent transparent var(--comment-line-color) transparent;
|
|
|
|
transform: rotate(45deg);
|
|
|
|
}
|
|
|
|
.timeline.contextual > li.thread .replies li:before {
|
2022-12-23 20:11:11 +03:00
|
|
|
left: calc(50px + 16px + 12px);
|
2022-12-18 15:46:13 +03:00
|
|
|
}
|
2022-12-20 10:32:31 +03:00
|
|
|
.timeline.contextual.loading > li:not(.hero) {
|
2022-12-21 13:02:13 +03:00
|
|
|
opacity: 0.5;
|
2022-12-20 10:32:31 +03:00
|
|
|
pointer-events: none;
|
2022-12-21 13:02:13 +03:00
|
|
|
/* background-image: none !important; */
|
2022-12-20 10:32:31 +03:00
|
|
|
}
|
2022-12-21 13:02:13 +03:00
|
|
|
/* .timeline.contextual.loading > li:not(.hero):before {
|
2022-12-20 10:32:31 +03:00
|
|
|
content: none !important;
|
2022-12-21 13:02:13 +03:00
|
|
|
} */
|
2022-12-10 12:14:48 +03:00
|
|
|
|
|
|
|
.timeline-deck.compact .status {
|
|
|
|
max-height: max(25vh, 160px);
|
|
|
|
overflow: hidden;
|
2022-12-12 16:54:31 +03:00
|
|
|
mask-image: linear-gradient(
|
|
|
|
rgba(0, 0, 0, 1),
|
|
|
|
rgba(0, 0, 0, 1) 80%,
|
|
|
|
transparent 95%
|
|
|
|
);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
.timeline-deck.compact .status .meta ~ * {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.timeline-header {
|
|
|
|
padding: 0 16px;
|
|
|
|
opacity: 0.75;
|
|
|
|
}
|
|
|
|
|
|
|
|
.timeline-empty {
|
|
|
|
color: var(--text-insignificant-color);
|
|
|
|
padding: 0 16px;
|
|
|
|
margin-bottom: 3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.status-loading {
|
|
|
|
text-align: center;
|
|
|
|
color: var(--text-insignificant-color);
|
|
|
|
}
|
2023-01-01 07:02:06 +03:00
|
|
|
.status-error {
|
|
|
|
text-align: center;
|
|
|
|
color: var(--text-insignificant-color);
|
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
|
|
|
|
.status-link {
|
|
|
|
display: block;
|
|
|
|
text-decoration-line: none;
|
|
|
|
color: inherit;
|
2023-01-03 10:51:16 +03:00
|
|
|
user-select: none;
|
2022-12-10 12:14:48 +03:00
|
|
|
transition: background-color 0.2s ease-out;
|
2022-12-22 14:44:22 +03:00
|
|
|
-webkit-tap-highlight-color: transparent;
|
2023-01-02 16:36:24 +03:00
|
|
|
animation: appear 0.2s ease-out;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2023-01-20 19:23:59 +03:00
|
|
|
.status-link:is(:hover, :focus, .is-active) {
|
2022-12-10 12:14:48 +03:00
|
|
|
background-color: var(--link-bg-hover-color);
|
2022-12-30 18:09:25 +03:00
|
|
|
outline-offset: -2px;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2023-01-12 14:28:37 +03:00
|
|
|
.status-link:active:not(:has(:is(.media, button):active)) {
|
2022-12-30 06:03:03 +03:00
|
|
|
filter: brightness(0.95);
|
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
|
2023-01-14 14:42:04 +03:00
|
|
|
.boost-carousel {
|
|
|
|
background: linear-gradient(
|
|
|
|
to bottom right,
|
|
|
|
var(--reblog-faded-color),
|
2023-01-14 17:17:47 +03:00
|
|
|
transparent 150%
|
2023-01-14 14:42:04 +03:00
|
|
|
);
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.boost-carousel:after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
inset: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
background-image: radial-gradient(
|
|
|
|
ellipse 50% 32px at bottom center,
|
|
|
|
var(--reblog-faded-color),
|
|
|
|
transparent
|
|
|
|
),
|
|
|
|
linear-gradient(to top, var(--bg-color), transparent 64px);
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: bottom center;
|
|
|
|
}
|
|
|
|
.boost-carousel .status-reblog {
|
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
.boost-carousel header {
|
|
|
|
padding: 8px 16px 0;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
.boost-carousel h3 {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
font-size: 14px;
|
|
|
|
text-transform: uppercase;
|
|
|
|
color: var(--reblog-color);
|
|
|
|
text-shadow: 0 1px var(--bg-color);
|
|
|
|
}
|
|
|
|
.boost-carousel ul {
|
|
|
|
display: flex;
|
|
|
|
overflow-x: auto;
|
|
|
|
overflow-y: hidden;
|
|
|
|
scroll-snap-type: x mandatory;
|
|
|
|
scroll-behavior: smooth;
|
|
|
|
margin: 0;
|
|
|
|
padding: 8px 16px;
|
|
|
|
gap: 16px;
|
|
|
|
align-items: flex-start;
|
|
|
|
counter-reset: index;
|
|
|
|
}
|
|
|
|
.boost-carousel ul > li {
|
|
|
|
scroll-snap-align: center;
|
|
|
|
scroll-snap-stop: always;
|
|
|
|
flex-shrink: 0;
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
max-width: min(320px, calc(100% - 16px));
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2023-01-16 19:56:13 +03:00
|
|
|
max-height: 65vh;
|
|
|
|
max-height: 65dvh;
|
2023-01-14 14:42:04 +03:00
|
|
|
counter-increment: index;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.boost-carousel ul > li:before {
|
|
|
|
content: counter(index);
|
|
|
|
position: absolute;
|
2023-01-16 15:49:26 +03:00
|
|
|
left: 0;
|
2023-01-14 14:42:04 +03:00
|
|
|
font-size: 10px;
|
|
|
|
color: var(--reblog-color);
|
|
|
|
padding: 8px;
|
|
|
|
}
|
|
|
|
|
2022-12-10 12:14:48 +03:00
|
|
|
.ui-state {
|
|
|
|
padding: 16px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2023-01-14 14:42:04 +03:00
|
|
|
.status-boost-link {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
text-decoration-line: none;
|
|
|
|
color: inherit;
|
|
|
|
user-select: none;
|
|
|
|
transition: background-color 0.2s ease-out;
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
animation: appear 0.2s ease-out;
|
|
|
|
border: 1px solid var(--outline-color);
|
|
|
|
background-color: var(--bg-blur-color);
|
|
|
|
border-radius: 8px;
|
|
|
|
overflow: hidden;
|
|
|
|
box-shadow: 0 1px var(--bg-color);
|
|
|
|
}
|
|
|
|
.status-boost-link:is(:hover, :focus) {
|
|
|
|
background-color: var(--link-bg-hover-color);
|
|
|
|
}
|
|
|
|
.status-boost-link:active:not(:has(:is(.media, button):active)) {
|
|
|
|
filter: brightness(0.95);
|
|
|
|
}
|
|
|
|
|
2022-12-10 12:14:48 +03:00
|
|
|
.deck-backdrop {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
z-index: 1000;
|
|
|
|
display: flex;
|
|
|
|
background-color: var(--backdrop-color);
|
2023-01-02 10:00:13 +03:00
|
|
|
animation: appear 0.2s ease-out;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
.deck-backdrop > a {
|
|
|
|
flex-grow: 1;
|
2023-01-02 10:00:13 +03:00
|
|
|
/* backdrop-filter: saturate(0.75); */
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
@keyframes slide-in {
|
|
|
|
0% {
|
2022-12-20 10:13:49 +03:00
|
|
|
transform: translate3d(100%, 0, 0);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
100% {
|
2022-12-20 10:13:49 +03:00
|
|
|
transform: translate3d(0, 0, 0);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.deck-backdrop .deck {
|
|
|
|
width: 40em;
|
|
|
|
max-width: 100vw;
|
|
|
|
background-color: var(--bg-color);
|
2022-12-20 10:13:49 +03:00
|
|
|
animation: slide-in 0.5s var(--timing-function);
|
2022-12-10 12:14:48 +03:00
|
|
|
box-shadow: -1px 0 var(--bg-color);
|
|
|
|
}
|
|
|
|
.deck-backdrop .deck .status {
|
|
|
|
max-width: 40em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.deck-close {
|
|
|
|
color: var(--text-insignificant-color) !important;
|
|
|
|
}
|
2022-12-29 11:11:58 +03:00
|
|
|
.deck-close:is(:hover, :focus) {
|
2022-12-10 12:14:48 +03:00
|
|
|
color: var(--text-color) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
:is(button, .button).plain.has-badge:after {
|
2022-12-12 16:54:31 +03:00
|
|
|
content: '';
|
2022-12-10 12:14:48 +03:00
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
right: 10px;
|
|
|
|
width: 4px;
|
|
|
|
height: 4px;
|
|
|
|
border-radius: 50%;
|
|
|
|
background-color: var(--link-color);
|
2022-12-12 16:54:31 +03:00
|
|
|
opacity: 0.5;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes fade-from-top {
|
|
|
|
0% {
|
2023-01-07 16:03:01 +03:00
|
|
|
transform: translate(-50%, -200%);
|
2022-12-10 12:14:48 +03:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
100% {
|
2023-01-01 14:24:08 +03:00
|
|
|
transform: translate(-50%, 0);
|
2022-12-10 12:14:48 +03:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.updates-button {
|
|
|
|
position: absolute;
|
2023-01-04 14:41:35 +03:00
|
|
|
z-index: 2;
|
2023-01-07 16:03:01 +03:00
|
|
|
animation: fade-from-top 0.3s ease-out;
|
2022-12-10 12:14:48 +03:00
|
|
|
left: 50%;
|
2023-01-01 14:24:08 +03:00
|
|
|
margin-top: 8px;
|
|
|
|
transform: translate(-50%, 0);
|
2022-12-19 14:24:51 +03:00
|
|
|
font-size: 90%;
|
2022-12-26 09:02:05 +03:00
|
|
|
background: linear-gradient(
|
|
|
|
to bottom,
|
|
|
|
var(--button-bg-blur-color),
|
|
|
|
var(--button-bg-color)
|
|
|
|
);
|
|
|
|
backdrop-filter: blur(16px);
|
|
|
|
box-shadow: 0 3px 8px -1px var(--bg-faded-blur-color),
|
|
|
|
0 10px 36px -4px var(--button-bg-blur-color);
|
2022-12-19 14:24:51 +03:00
|
|
|
}
|
|
|
|
.updates-button .icon {
|
|
|
|
vertical-align: top;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* BOX */
|
|
|
|
|
|
|
|
.box {
|
|
|
|
width: 40em;
|
|
|
|
max-width: 100vw;
|
|
|
|
padding: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* CAROUSEL */
|
|
|
|
/* use snap, center children, max width viewport */
|
|
|
|
|
|
|
|
.carousel {
|
|
|
|
display: flex;
|
|
|
|
overflow-x: auto;
|
|
|
|
scroll-snap-type: x mandatory;
|
|
|
|
/* scroll-behavior: smooth; */
|
|
|
|
scrollbar-width: none;
|
2022-12-11 11:00:44 +03:00
|
|
|
overscroll-behavior: contain;
|
2022-12-28 15:38:16 +03:00
|
|
|
touch-action: pan-x;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
.carousel::-webkit-scrollbar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.carousel > * {
|
|
|
|
scroll-snap-align: center;
|
2022-12-23 04:17:41 +03:00
|
|
|
scroll-snap-stop: always;
|
2022-12-10 12:14:48 +03:00
|
|
|
flex-shrink: 0;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
width: 100vw;
|
|
|
|
height: 100vh;
|
2022-12-11 03:14:14 +03:00
|
|
|
height: 100dvh;
|
2023-01-07 15:38:05 +03:00
|
|
|
background-color: var(--average-color-alpha);
|
|
|
|
background-image: radial-gradient(
|
|
|
|
closest-side,
|
|
|
|
var(--average-color) 10%,
|
|
|
|
var(--average-color-alpha) 40%,
|
|
|
|
transparent 100%
|
|
|
|
);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
.carousel > * :is(img, video) {
|
|
|
|
width: auto;
|
|
|
|
max-width: 100vw;
|
|
|
|
height: auto;
|
|
|
|
max-height: 100vh;
|
2022-12-11 03:14:14 +03:00
|
|
|
max-height: 100dvh;
|
2022-12-28 09:43:58 +03:00
|
|
|
vertical-align: middle;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2022-12-20 08:21:53 +03:00
|
|
|
.carousel > * video {
|
|
|
|
min-height: 80px;
|
2022-12-28 09:43:58 +03:00
|
|
|
max-height: 80vh; /* prevent other UI elements from obscuring video */
|
2022-12-20 08:21:53 +03:00
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
|
2022-12-10 17:27:00 +03:00
|
|
|
.carousel-top-controls {
|
|
|
|
top: 0;
|
2022-12-18 16:07:40 +03:00
|
|
|
top: env(safe-area-inset-top, 0);
|
2022-12-10 17:27:00 +03:00
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
.carousel-controls {
|
2022-12-10 17:27:00 +03:00
|
|
|
bottom: 0;
|
2022-12-18 16:07:40 +03:00
|
|
|
bottom: env(safe-area-inset-bottom, 0);
|
2022-12-10 17:27:00 +03:00
|
|
|
}
|
|
|
|
:is(.carousel-top-controls, .carousel-controls) {
|
2022-12-10 12:14:48 +03:00
|
|
|
position: fixed;
|
2022-12-18 16:07:40 +03:00
|
|
|
left: 0;
|
|
|
|
left: env(safe-area-inset-left, 0);
|
|
|
|
right: 0;
|
|
|
|
right: env(safe-area-inset-right, 0);
|
2022-12-10 17:27:00 +03:00
|
|
|
padding: 16px;
|
2022-12-10 12:14:48 +03:00
|
|
|
display: flex;
|
|
|
|
gap: 8px;
|
|
|
|
justify-content: space-between;
|
2022-12-10 17:27:00 +03:00
|
|
|
text-align: center;
|
2022-12-10 18:39:12 +03:00
|
|
|
pointer-events: none;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2022-12-28 14:31:08 +03:00
|
|
|
:is(.carousel-top-controls, .carousel-controls)[hidden] {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2022-12-10 17:27:00 +03:00
|
|
|
|
2023-01-01 07:28:54 +03:00
|
|
|
:is(.button, button).carousel-button,
|
2022-12-11 09:35:57 +03:00
|
|
|
button.carousel-dot {
|
2022-12-10 18:39:12 +03:00
|
|
|
pointer-events: auto;
|
2022-12-10 12:14:48 +03:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
2023-01-01 07:28:54 +03:00
|
|
|
:is(.button, button).carousel-button[hidden] {
|
2022-12-10 12:14:48 +03:00
|
|
|
display: inline-block;
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
.carousel-dots {
|
|
|
|
border-radius: 999px;
|
2022-12-12 16:54:31 +03:00
|
|
|
backdrop-filter: blur(12px) invert(0.25) brightness(1.5);
|
2022-12-11 09:35:57 +03:00
|
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
.carousel-dots {
|
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
|
|
|
}
|
|
|
|
button.carousel-dot {
|
|
|
|
color: var(--text-insignificant-color) !important;
|
|
|
|
font-weight: bold;
|
|
|
|
backdrop-filter: none !important;
|
|
|
|
}
|
2022-12-29 11:11:58 +03:00
|
|
|
button.carousel-dot:is(:hover, :focus) button.carousel-dot.active,
|
2022-12-12 03:46:50 +03:00
|
|
|
button.carousel-dot[disabled].active {
|
2022-12-10 12:14:48 +03:00
|
|
|
color: var(--link-color) !important;
|
|
|
|
}
|
2022-12-12 03:46:50 +03:00
|
|
|
button.carousel-dot.active,
|
|
|
|
button.carousel-dot[disabled].active {
|
|
|
|
opacity: 1;
|
2022-12-12 16:54:31 +03:00
|
|
|
transform: scale(2) translateY(-0.5px);
|
2022-12-10 15:47:53 +03:00
|
|
|
}
|
2022-12-10 15:56:38 +03:00
|
|
|
@media (hover: hover) {
|
2022-12-10 18:39:12 +03:00
|
|
|
.carousel-top-controls {
|
|
|
|
transform: translateY(-100%);
|
|
|
|
transition: transform 0.2s ease-in-out;
|
|
|
|
}
|
2022-12-10 15:56:38 +03:00
|
|
|
.carousel-controls {
|
|
|
|
transform: translateY(100%);
|
|
|
|
transition: transform 0.2s ease-in-out;
|
|
|
|
}
|
2022-12-28 14:31:08 +03:00
|
|
|
:is(.carousel-top-controls, .carousel-controls)[hidden] {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2022-12-10 18:39:12 +03:00
|
|
|
.carousel:hover + .carousel-top-controls,
|
|
|
|
.carousel:hover + .carousel-top-controls + .carousel-controls,
|
|
|
|
.carousel-top-controls:hover,
|
2022-12-10 15:56:38 +03:00
|
|
|
.carousel-controls:hover,
|
2022-12-10 18:39:12 +03:00
|
|
|
.carousel-top-controls:focus-within,
|
2022-12-10 15:56:38 +03:00
|
|
|
.carousel-controls:focus-within {
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
|
|
|
}
|
2022-12-11 09:35:57 +03:00
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
.carousel :is(img, video) {
|
|
|
|
/* No need fade out if inside carousel */
|
|
|
|
filter: none;
|
|
|
|
}
|
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
|
|
|
|
/* COMPOSE BUTTON */
|
|
|
|
|
|
|
|
#compose-button {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 16px;
|
2022-12-18 16:07:40 +03:00
|
|
|
bottom: max(16px, env(safe-area-inset-bottom));
|
2022-12-10 12:14:48 +03:00
|
|
|
right: 16px;
|
2022-12-18 16:07:40 +03:00
|
|
|
right: max(16px, env(safe-area-inset-right));
|
2022-12-10 12:14:48 +03:00
|
|
|
padding: 16px;
|
2023-01-01 12:19:20 +03:00
|
|
|
background-color: var(--button-bg-blur-color);
|
|
|
|
backdrop-filter: blur(16px);
|
2022-12-10 12:14:48 +03:00
|
|
|
z-index: 1;
|
2023-01-01 12:19:20 +03:00
|
|
|
box-shadow: 0 3px 8px -1px var(--bg-faded-blur-color),
|
|
|
|
0 10px 36px -4px var(--button-bg-blur-color);
|
2023-01-02 16:36:24 +03:00
|
|
|
transition: all 0.3s ease-in-out;
|
|
|
|
}
|
|
|
|
#compose-button[hidden] {
|
2023-01-02 16:43:04 +03:00
|
|
|
transform: translateY(200%);
|
2023-01-02 16:36:24 +03:00
|
|
|
pointer-events: none;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
#compose-button .icon {
|
|
|
|
transition: transform 0.3s ease-in-out;
|
|
|
|
}
|
|
|
|
#compose-button[hidden] .icon {
|
2023-01-14 15:22:41 +03:00
|
|
|
transform: rotate3d(0, 1, 0, 180deg);
|
2023-01-01 12:19:20 +03:00
|
|
|
}
|
|
|
|
#compose-button:is(:hover, :focus) {
|
|
|
|
background-color: var(--button-bg-color);
|
|
|
|
filter: none;
|
|
|
|
}
|
|
|
|
#compose-button:active {
|
|
|
|
filter: brightness(0.75);
|
|
|
|
}
|
|
|
|
#compose-button .icon {
|
|
|
|
filter: drop-shadow(0 1px 2px var(--button-bg-color));
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* SHEET */
|
|
|
|
|
|
|
|
.sheet {
|
|
|
|
align-self: flex-end;
|
2022-12-25 13:01:01 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-12-10 12:14:48 +03:00
|
|
|
max-height: 90vh;
|
2022-12-15 07:38:30 +03:00
|
|
|
max-height: 90dvh;
|
2022-12-25 13:01:01 +03:00
|
|
|
overflow: hidden;
|
2022-12-10 12:14:48 +03:00
|
|
|
background-color: var(--bg-color);
|
|
|
|
width: 100%;
|
|
|
|
max-width: calc(40em - 50px - 16px);
|
2022-12-17 19:38:19 +03:00
|
|
|
border-radius: 16px 16px 0 0;
|
2022-12-10 12:14:48 +03:00
|
|
|
box-shadow: 0 -1px 32px var(--divider-color);
|
2022-12-30 08:55:46 +03:00
|
|
|
animation: slide-up 0.3s var(--timing-function);
|
2022-12-10 19:52:04 +03:00
|
|
|
border: 1px solid var(--outline-color);
|
2022-12-25 13:01:01 +03:00
|
|
|
}
|
2023-01-13 12:23:18 +03:00
|
|
|
.sheet-max {
|
|
|
|
width: 90vw;
|
|
|
|
width: 90dvw;
|
|
|
|
max-width: none;
|
|
|
|
height: 90vh;
|
|
|
|
height: 90dvh;
|
|
|
|
}
|
2022-12-25 13:01:01 +03:00
|
|
|
.sheet header {
|
|
|
|
padding: 16px 16px 8px;
|
|
|
|
padding-left: max(16px, env(safe-area-inset-left));
|
|
|
|
padding-right: max(16px, env(safe-area-inset-right));
|
2023-01-03 10:51:16 +03:00
|
|
|
user-select: none;
|
2022-12-25 13:01:01 +03:00
|
|
|
}
|
2023-01-05 20:51:39 +03:00
|
|
|
.sheet header :is(h1, h2, h3) {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2022-12-25 13:01:01 +03:00
|
|
|
.sheet main {
|
|
|
|
overflow: auto;
|
|
|
|
overflow-x: hidden;
|
2022-12-23 03:00:11 +03:00
|
|
|
overscroll-behavior: contain;
|
2022-12-25 13:01:01 +03:00
|
|
|
padding: 16px 16px;
|
|
|
|
padding-left: max(16px, env(safe-area-inset-left));
|
|
|
|
padding-right: max(16px, env(safe-area-inset-right));
|
|
|
|
padding-bottom: max(16px, env(safe-area-inset-bottom));
|
|
|
|
}
|
|
|
|
.sheet header + main {
|
|
|
|
padding-top: 0;
|
2022-12-27 14:12:36 +03:00
|
|
|
mask-image: linear-gradient(to bottom, transparent 0%, black 10px);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* TAG */
|
|
|
|
|
|
|
|
.tag {
|
|
|
|
font-size: smaller;
|
|
|
|
color: var(--bg-faded-color);
|
|
|
|
background-color: var(--text-insignificant-color);
|
|
|
|
padding: 2px 4px;
|
|
|
|
border-radius: 4px;
|
|
|
|
display: inline-block;
|
|
|
|
margin: 4px;
|
|
|
|
align-self: center;
|
|
|
|
}
|
2022-12-27 12:54:48 +03:00
|
|
|
.tag .icon {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
|
2022-12-12 16:54:31 +03:00
|
|
|
/* MENU POPUP */
|
|
|
|
|
|
|
|
.menu-container {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.menu-container button {
|
|
|
|
color: inherit !important;
|
|
|
|
}
|
|
|
|
.menu-container button:is(:hover, :active, :focus) {
|
|
|
|
background-color: var(--button-plain-bg-hover-color);
|
|
|
|
}
|
|
|
|
.menu-container menu {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
transform: translateY(-100%);
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
padding: 8px 0;
|
|
|
|
margin: 0;
|
|
|
|
font-size: 16px;
|
|
|
|
background-color: var(--bg-color);
|
|
|
|
width: 10em;
|
|
|
|
list-style: none;
|
|
|
|
z-index: 100;
|
|
|
|
border: 1px solid var(--outline-color);
|
|
|
|
border-radius: 8px;
|
|
|
|
transition: all 0.2s ease-in-out;
|
2022-12-20 04:28:12 +03:00
|
|
|
box-shadow: 0 0 8px var(--bg-faded-color), 0 4px 8px var(--bg-faded-color),
|
|
|
|
0 2px 4px var(--bg-faded-color);
|
2022-12-12 16:54:31 +03:00
|
|
|
}
|
|
|
|
.menu-container menu li {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
2022-12-20 04:27:59 +03:00
|
|
|
.menu-container > button:is(:hover, :active, :focus) + menu,
|
2022-12-12 16:54:31 +03:00
|
|
|
.menu-container menu:is(:hover, :active) {
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
.menu-container menu button {
|
|
|
|
width: 100%;
|
|
|
|
text-align: left;
|
|
|
|
color: var(--text-color) !important;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2022-12-29 11:11:58 +03:00
|
|
|
.menu-container menu button:is(:hover, :focus) {
|
2022-12-12 16:54:31 +03:00
|
|
|
color: var(--bg-color) !important;
|
|
|
|
background-color: var(--link-color);
|
|
|
|
}
|
|
|
|
|
2022-12-23 11:45:02 +03:00
|
|
|
/* DONUT METER */
|
|
|
|
|
|
|
|
meter.donut {
|
|
|
|
appearance: none;
|
|
|
|
}
|
|
|
|
|
2022-12-26 15:34:24 +03:00
|
|
|
meter.donut::-webkit-meter-inner-element,
|
|
|
|
meter.donut::-webkit-meter-bar,
|
|
|
|
meter.donut::-webkit-meter-optimum-value,
|
|
|
|
meter.donut::-webkit-meter-suboptimum-value,
|
|
|
|
meter.donut::-webkit-meter-even-less-good-value {
|
2022-12-23 11:45:02 +03:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-12-26 15:34:24 +03:00
|
|
|
meter.donut::-moz-meter-bar {
|
2022-12-23 11:45:02 +03:00
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
meter.donut {
|
|
|
|
position: relative;
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
border-radius: 50%;
|
|
|
|
--fill: calc(var(--percentage) * 1%);
|
|
|
|
--color: var(--link-color);
|
|
|
|
--middle-circle: radial-gradient(
|
|
|
|
circle at 50% 50%,
|
|
|
|
var(--bg-faded-color) 10px,
|
|
|
|
transparent 10px
|
|
|
|
);
|
|
|
|
background-image: var(--middle-circle),
|
|
|
|
conic-gradient(var(--color) var(--fill), var(--bg-faded-blur-color) 0);
|
|
|
|
}
|
|
|
|
meter.donut.warning {
|
|
|
|
--color: var(--orange-color);
|
|
|
|
}
|
|
|
|
meter.donut.danger {
|
|
|
|
--color: var(--red-color);
|
|
|
|
}
|
|
|
|
meter.donut.explode {
|
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
meter.donut:is(.warning, .danger, .explode):after {
|
|
|
|
content: attr(data-left);
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
font-size: 12px;
|
|
|
|
color: var(--text-insignificant-color);
|
|
|
|
}
|
|
|
|
meter.donut:is(.danger, .explode):after {
|
|
|
|
color: var(--red-color);
|
|
|
|
}
|
|
|
|
|
2022-12-26 09:02:05 +03:00
|
|
|
/* TOAST */
|
|
|
|
|
|
|
|
:root .toastify {
|
|
|
|
background-image: linear-gradient(
|
|
|
|
to bottom,
|
|
|
|
var(--button-bg-blur-color),
|
|
|
|
var(--button-bg-color)
|
|
|
|
);
|
|
|
|
backdrop-filter: blur(16px);
|
|
|
|
color: var(--button-text-color);
|
|
|
|
border-radius: 10em;
|
|
|
|
padding: 8px 16px;
|
|
|
|
box-shadow: 0 3px 8px -1px var(--bg-faded-blur-color),
|
|
|
|
0 10px 36px -4px var(--button-bg-blur-color);
|
|
|
|
}
|
2022-12-28 13:04:58 +03:00
|
|
|
.toastify-bottom {
|
|
|
|
margin-bottom: env(safe-area-inset-bottom);
|
|
|
|
}
|
2022-12-26 09:02:05 +03:00
|
|
|
:root .toastify:hover {
|
|
|
|
filter: brightness(1.2);
|
|
|
|
}
|
|
|
|
:root .toastify:active {
|
|
|
|
filter: brightness(0.8);
|
|
|
|
}
|
|
|
|
|
2023-01-06 07:51:53 +03:00
|
|
|
/* AVATARS STACK */
|
|
|
|
|
|
|
|
.avatars-stack {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
gap: 4px;
|
|
|
|
}
|
|
|
|
|
2023-01-20 19:23:59 +03:00
|
|
|
.deck-container {
|
|
|
|
width: 100%;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
#home-page ~ .deck-container {
|
|
|
|
z-index: 10;
|
|
|
|
position: fixed;
|
|
|
|
inset: 0;
|
|
|
|
}
|
|
|
|
#home-page:has(~ .deck-container) {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
user-select: none;
|
|
|
|
pointer-events: none;
|
|
|
|
opacity: 0;
|
|
|
|
content-visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* TAB BAR */
|
|
|
|
|
|
|
|
#tab-bar:not([hidden]) {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 16px;
|
|
|
|
bottom: max(16px, env(safe-area-inset-bottom));
|
|
|
|
width: calc(100% - 32px);
|
|
|
|
max-width: calc(40em - 32px);
|
|
|
|
z-index: 100;
|
|
|
|
display: flex;
|
|
|
|
background-color: var(--bg-blur-color);
|
|
|
|
backdrop-filter: blur(16px) saturate(3);
|
|
|
|
border: var(--hairline-width) solid var(--outline-color);
|
|
|
|
border-radius: 16px;
|
|
|
|
box-shadow: 0 8px 32px var(--outline-color);
|
|
|
|
}
|
|
|
|
#tab-bar li {
|
|
|
|
flex-grow: 1;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
#tab-bar li a {
|
|
|
|
text-align: center;
|
|
|
|
padding: 16px 0;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2022-12-10 12:14:48 +03:00
|
|
|
@media (min-width: 40em) {
|
2022-12-12 16:54:31 +03:00
|
|
|
html,
|
|
|
|
body {
|
2022-12-12 05:08:55 +03:00
|
|
|
background-color: var(--bg-faded-color);
|
|
|
|
}
|
2023-01-20 19:23:59 +03:00
|
|
|
.deck-container {
|
|
|
|
background-color: var(--bg-faded-color);
|
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
#app {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.deck-backdrop .deck {
|
|
|
|
width: 50%;
|
|
|
|
min-width: 40em;
|
2022-12-24 18:17:13 +03:00
|
|
|
border-left: 1px solid var(--divider-color);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
.timeline-deck {
|
|
|
|
border: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
2023-01-14 14:42:04 +03:00
|
|
|
.timeline-deck > header {
|
2022-12-10 12:14:48 +03:00
|
|
|
min-height: 6em;
|
|
|
|
border-bottom: 0;
|
|
|
|
background-color: var(--bg-faded-blur-color);
|
2022-12-28 05:49:43 +03:00
|
|
|
background-image: linear-gradient(
|
|
|
|
to bottom,
|
|
|
|
var(--bg-faded-color),
|
|
|
|
transparent 50%
|
|
|
|
);
|
2022-12-10 12:14:48 +03:00
|
|
|
border-bottom: 0;
|
2022-12-12 16:54:31 +03:00
|
|
|
mask-image: linear-gradient(
|
|
|
|
rgba(0, 0, 0, 1) 50%,
|
|
|
|
rgba(0, 0, 0, 0.7) 80%,
|
|
|
|
rgba(0, 0, 0, 0.5) 90%,
|
|
|
|
transparent
|
|
|
|
);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2023-01-14 14:42:04 +03:00
|
|
|
.deck > header h1 {
|
2022-12-10 12:14:48 +03:00
|
|
|
font-size: 1.5em;
|
|
|
|
}
|
2023-01-14 14:42:04 +03:00
|
|
|
.timeline-deck .timeline:not(.flat) > li {
|
2022-12-10 12:14:48 +03:00
|
|
|
border: 1px solid var(--divider-color);
|
|
|
|
margin: 16px 0;
|
|
|
|
background-color: var(--bg-color);
|
|
|
|
border-radius: 16px;
|
|
|
|
overflow: hidden;
|
|
|
|
box-shadow: 0px 1px var(--bg-blur-color);
|
2023-01-20 19:23:59 +03:00
|
|
|
transition: transform 0.4s var(--timing-function);
|
|
|
|
--back-transition: transform 0.4s ease-out;
|
|
|
|
}
|
|
|
|
.timeline-deck .timeline:not(.flat) > li:has(.status-link.is-active) {
|
|
|
|
transition: var(--back-transition);
|
|
|
|
transform: translate3d(-2.5vw, 0, 0);
|
|
|
|
}
|
|
|
|
.timeline-deck
|
|
|
|
.timeline:not(.flat)
|
|
|
|
> li:not(:has(.boost-carousel)):has(+ li .status-link.is-active),
|
|
|
|
.timeline-deck
|
|
|
|
.timeline:not(.flat)
|
|
|
|
> li:not(:has(.boost-carousel)):has(.status-link.is-active)
|
|
|
|
+ li {
|
|
|
|
transition: var(--back-transition);
|
|
|
|
transform: translate3d(-1.25vw, 0, 0);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
.box {
|
|
|
|
padding: 32px;
|
|
|
|
}
|
2022-12-10 17:27:00 +03:00
|
|
|
:is(.carousel-top-controls, .carousel-controls) {
|
|
|
|
padding: 32px;
|
|
|
|
}
|
2023-01-16 19:56:13 +03:00
|
|
|
li:has(.boost-carousel) {
|
|
|
|
width: 95vw;
|
2023-01-17 19:56:35 +03:00
|
|
|
max-width: calc(320px * 3.3);
|
2023-01-16 19:56:13 +03:00
|
|
|
transform: translateX(calc(-50% + 20em));
|
|
|
|
}
|
2022-12-12 16:54:31 +03:00
|
|
|
}
|