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);
|
2022-12-14 16:48:17 +03:00
|
|
|
/* overflow: 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-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);
|
|
|
|
}
|
|
|
|
|
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-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
|
|
|
}
|
|
|
|
|
|
|
|
.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-10 12:14:48 +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);
|
|
|
|
backdrop-filter: blur(12px);
|
|
|
|
border-bottom: 1px solid var(--divider-color);
|
|
|
|
z-index: 1;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
cursor: default;
|
2022-12-11 10:30:49 +03:00
|
|
|
z-index: 10;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
.deck header > *:not(button) {
|
|
|
|
flex-grow: 1;
|
|
|
|
min-width: 44px;
|
|
|
|
}
|
|
|
|
.deck header > .header-side:last-of-type {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
.deck header h1:first-child {
|
|
|
|
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;
|
|
|
|
}
|
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;
|
|
|
|
border-bottom: 1px solid var(--divider-color);
|
|
|
|
}
|
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-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 {
|
|
|
|
margin-left: calc(50px + 16px + 16px);
|
|
|
|
}
|
|
|
|
.timeline.contextual
|
|
|
|
> li.descendant.thread
|
|
|
|
> .status-link
|
|
|
|
+ .replies
|
|
|
|
.status-link {
|
|
|
|
padding-left: calc(50px + 16px + 16px);
|
|
|
|
}
|
|
|
|
.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-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-18 15:46:13 +03:00
|
|
|
.timeline.contextual > li .replies li .status {
|
|
|
|
--width: 3px;
|
|
|
|
--left: 0px;
|
|
|
|
--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;
|
|
|
|
}
|
|
|
|
.timeline.contextual > li .replies li:last-child .status {
|
|
|
|
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 {
|
|
|
|
left: calc(50px + 16px + 16px);
|
|
|
|
}
|
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);
|
|
|
|
}
|
|
|
|
|
|
|
|
.status-link {
|
|
|
|
display: block;
|
|
|
|
text-decoration-line: none;
|
|
|
|
color: inherit;
|
|
|
|
transition: background-color 0.2s ease-out;
|
|
|
|
}
|
|
|
|
.status-link:hover {
|
|
|
|
background-color: var(--link-bg-hover-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.ui-state {
|
|
|
|
padding: 16px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.deck-backdrop {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
z-index: 1000;
|
|
|
|
display: flex;
|
|
|
|
background-color: var(--backdrop-color);
|
|
|
|
}
|
|
|
|
.deck-backdrop > a {
|
|
|
|
flex-grow: 1;
|
2022-12-12 16:54:31 +03:00
|
|
|
backdrop-filter: saturate(0.75);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
@keyframes slide-in {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
transform: translateX(100%);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
transform: translateX(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.deck-backdrop .deck {
|
|
|
|
width: 40em;
|
|
|
|
max-width: 100vw;
|
|
|
|
border-left: 1px solid var(--divider-color);
|
|
|
|
background-color: var(--bg-color);
|
|
|
|
animation: slide-in 0.2s ease-out;
|
|
|
|
box-shadow: -1px 0 var(--bg-color);
|
|
|
|
}
|
|
|
|
.deck-backdrop .deck .status {
|
|
|
|
max-width: 40em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.decks {
|
|
|
|
flex-grow: 1;
|
|
|
|
transition: transform 0.2s ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.deck-close {
|
|
|
|
color: var(--text-insignificant-color) !important;
|
|
|
|
}
|
|
|
|
.deck-close:hover {
|
|
|
|
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% {
|
|
|
|
transform: translate(-50%, -100%);
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: translate(-50%, 0);
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.updates-button {
|
|
|
|
position: absolute;
|
|
|
|
animation: fade-from-top 2s ease-out;
|
|
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* BOX */
|
|
|
|
|
|
|
|
.box {
|
|
|
|
width: 40em;
|
|
|
|
max-width: 100vw;
|
|
|
|
padding: 16px;
|
|
|
|
background-color: var(--bg-color);
|
|
|
|
border-radius: 8px;
|
|
|
|
border: 1px solid var(--divider-color);
|
2022-12-11 16:22:22 +03:00
|
|
|
overflow: auto;
|
|
|
|
max-height: 90vh;
|
2022-12-15 07:38:30 +03:00
|
|
|
max-height: 90dvh;
|
2022-12-11 16:22:22 +03:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.box > :is(h1, h2, h3):first-of-type {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
.box .close-button {
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
float: right;
|
|
|
|
margin: -16px -8px 0 0;
|
|
|
|
transform: translate(0, -8px);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.box-shadow {
|
2022-12-12 16:54:31 +03:00
|
|
|
box-shadow: 0px 36px 89px rgb(0 0 0 / 4%),
|
|
|
|
0px 23.3333px 52.1227px rgb(0 0 0 / 3%),
|
|
|
|
0px 13.8667px 28.3481px rgb(0 0 0 / 2%), 0px 7.2px 14.4625px rgb(0 0 0 / 2%),
|
|
|
|
0px 2.93333px 7.25185px rgb(0 0 0 / 2%),
|
|
|
|
0px 0.666667px 3.50231px rgb(0 0 0 / 1%);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* 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-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
.carousel::-webkit-scrollbar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.carousel > * {
|
|
|
|
scroll-snap-align: center;
|
|
|
|
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;
|
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-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-10 17:27:00 +03:00
|
|
|
|
2022-12-11 09:35:57 +03:00
|
|
|
button.carousel-button,
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
button.carousel-button[hidden] {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
button.carousel-dot:hover,
|
2022-12-12 03:46:50 +03:00
|
|
|
button.carousel-dot.active,
|
|
|
|
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-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;
|
|
|
|
box-shadow: 0 0 32px var(--bg-color);
|
|
|
|
z-index: 1;
|
2022-12-10 19:52:04 +03:00
|
|
|
border: 1px solid var(--bg-color);
|
2022-12-12 16:54:31 +03:00
|
|
|
opacity: 0.75;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* SHEET */
|
|
|
|
|
|
|
|
@keyframes slide-up {
|
|
|
|
0% {
|
|
|
|
transform: translateY(100%);
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: translateY(0);
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.sheet {
|
|
|
|
align-self: flex-end;
|
|
|
|
max-height: 90vh;
|
2022-12-15 07:38:30 +03:00
|
|
|
max-height: 90dvh;
|
2022-12-10 12:14:48 +03:00
|
|
|
overflow: auto;
|
2022-12-11 03:01:53 +03:00
|
|
|
overflow-x: 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
|
|
|
padding: 16px;
|
2022-12-18 16:07:40 +03:00
|
|
|
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));
|
2022-12-10 12:14:48 +03:00
|
|
|
box-shadow: 0 -1px 32px var(--divider-color);
|
|
|
|
animation: slide-up 0.2s ease-out;
|
2022-12-10 19:52:04 +03:00
|
|
|
border: 1px solid var(--outline-color);
|
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-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;
|
|
|
|
}
|
|
|
|
.menu-container menu li {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
.menu-container > button:is(:active, :focus) + menu,
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
.menu-container menu button:hover {
|
|
|
|
color: var(--bg-color) !important;
|
|
|
|
background-color: var(--link-color);
|
|
|
|
}
|
|
|
|
|
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);
|
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
#app {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.decks:has(~ .deck-backdrop) {
|
|
|
|
transform: translateX(-5vw);
|
|
|
|
}
|
|
|
|
.deck-backdrop .deck {
|
|
|
|
width: 50%;
|
|
|
|
min-width: 40em;
|
|
|
|
}
|
|
|
|
.timeline-deck {
|
|
|
|
border: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
.timeline-deck header {
|
|
|
|
min-height: 6em;
|
|
|
|
border-bottom: 0;
|
|
|
|
background-color: var(--bg-faded-blur-color);
|
|
|
|
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
|
|
|
}
|
|
|
|
.deck header h1 {
|
|
|
|
font-size: 1.5em;
|
|
|
|
}
|
|
|
|
.timeline-deck .timeline:not(.flat) li {
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
.box {
|
|
|
|
padding: 32px;
|
|
|
|
}
|
2022-12-10 17:27:00 +03:00
|
|
|
:is(.carousel-top-controls, .carousel-controls) {
|
|
|
|
padding: 32px;
|
|
|
|
}
|
2022-12-12 16:54:31 +03:00
|
|
|
}
|