2023-03-23 11:13:22 +03:00
|
|
|
#compose-container-outer {
|
|
|
|
width: 100%;
|
|
|
|
height: 100vh;
|
|
|
|
height: 100dvh;
|
|
|
|
overflow: auto;
|
|
|
|
align-self: flex-start;
|
|
|
|
padding: env(safe-area-inset-top) env(safe-area-inset-right)
|
|
|
|
env(safe-area-inset-bottom) env(safe-area-inset-left);
|
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
#compose-container {
|
2023-03-23 11:13:22 +03:00
|
|
|
margin: auto;
|
2023-02-17 15:47:09 +03:00
|
|
|
width: var(--main-width);
|
2022-12-10 12:14:48 +03:00
|
|
|
max-width: 100vw;
|
|
|
|
align-self: stretch;
|
|
|
|
animation: fade-in 0.2s ease-out;
|
2022-12-14 16:48:17 +03:00
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
|
|
|
|
#compose-container .compose-top {
|
|
|
|
text-align: right;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
gap: 8px;
|
|
|
|
align-items: center;
|
|
|
|
padding: 16px;
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
z-index: 100;
|
|
|
|
}
|
|
|
|
|
2022-12-12 11:27:44 +03:00
|
|
|
#compose-container textarea {
|
2022-12-10 12:14:48 +03:00
|
|
|
width: 100%;
|
|
|
|
max-width: 100%;
|
2023-03-23 20:26:49 +03:00
|
|
|
height: 5em;
|
|
|
|
min-height: 5em;
|
2023-01-04 14:16:43 +03:00
|
|
|
max-height: 50vh;
|
2022-12-10 12:14:48 +03:00
|
|
|
resize: vertical;
|
2022-12-23 16:25:01 +03:00
|
|
|
line-height: 1.4;
|
2023-03-14 15:24:36 +03:00
|
|
|
border-color: transparent;
|
|
|
|
}
|
|
|
|
#compose-container textarea:hover {
|
|
|
|
border-color: var(--divider-color);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2022-12-23 16:25:01 +03:00
|
|
|
|
|
|
|
@media (min-width: 40em) {
|
|
|
|
#compose-container textarea {
|
|
|
|
font-size: 150%;
|
|
|
|
font-size: calc(100% + 50% / var(--text-weight));
|
2023-03-23 11:13:22 +03:00
|
|
|
max-height: 65vh;
|
2022-12-23 16:25:01 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-10 12:14:48 +03:00
|
|
|
@keyframes appear-up {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
transform: translateY(10px);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
|
|
|
}
|
2022-12-13 15:42:09 +03:00
|
|
|
#compose-container .status-preview {
|
2023-03-14 15:24:36 +03:00
|
|
|
border-radius: 16px 16px 0 0;
|
2022-12-10 12:14:48 +03:00
|
|
|
max-height: 160px;
|
2022-12-13 15:42:09 +03:00
|
|
|
background-color: var(--bg-color);
|
2022-12-10 12:14:48 +03:00
|
|
|
margin: 0 12px;
|
|
|
|
border: 1px solid var(--outline-color);
|
|
|
|
border-bottom: 0;
|
|
|
|
animation: appear-up 1s ease-in-out;
|
2022-12-13 15:42:09 +03:00
|
|
|
overflow: auto;
|
2023-03-14 15:24:36 +03:00
|
|
|
box-shadow: 0 -3px 12px -3px var(--drop-shadow-color);
|
2022-12-13 15:42:09 +03:00
|
|
|
}
|
2023-04-17 06:46:34 +03:00
|
|
|
#compose-container .status-preview:has(.status-badge:not(:empty)) {
|
2023-03-29 16:17:44 +03:00
|
|
|
border-top-right-radius: 8px;
|
|
|
|
}
|
2023-04-14 10:30:04 +03:00
|
|
|
#compose-container .status-preview :is(.content-container, .time) {
|
2023-02-18 16:44:19 +03:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
2022-12-13 15:42:09 +03:00
|
|
|
#compose-container.standalone .status-preview * {
|
|
|
|
/*
|
|
|
|
For standalone mode (new window), prevent interacting with the status preview for now
|
|
|
|
*/
|
|
|
|
pointer-events: none;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2022-12-13 15:42:09 +03:00
|
|
|
|
|
|
|
#compose-container .status-preview-legend {
|
|
|
|
pointer-events: none;
|
|
|
|
position: sticky;
|
|
|
|
bottom: 0;
|
|
|
|
padding: 8px;
|
|
|
|
font-size: 80%;
|
|
|
|
font-weight: bold;
|
|
|
|
text-align: center;
|
|
|
|
color: var(--text-insignificant-color);
|
|
|
|
background-color: var(--bg-blur-color);
|
|
|
|
/* background-image: linear-gradient(
|
|
|
|
to bottom,
|
|
|
|
transparent,
|
|
|
|
var(--bg-faded-color)
|
|
|
|
); */
|
2023-03-14 15:24:36 +03:00
|
|
|
border-top: var(--hairline-width) solid var(--outline-color);
|
2022-12-13 15:42:09 +03:00
|
|
|
backdrop-filter: blur(8px);
|
|
|
|
text-shadow: 0 1px 10px var(--bg-color), 0 1px 10px var(--bg-color),
|
|
|
|
0 1px 10px var(--bg-color), 0 1px 10px var(--bg-color),
|
|
|
|
0 1px 10px var(--bg-color);
|
2022-12-20 20:03:07 +03:00
|
|
|
z-index: 2;
|
2022-12-13 15:42:09 +03:00
|
|
|
}
|
|
|
|
#_compose-container .status-preview-legend.reply-to {
|
|
|
|
color: var(--reply-to-color);
|
|
|
|
background-color: var(--reply-to-faded-color);
|
|
|
|
/* background-image: linear-gradient(
|
|
|
|
to bottom,
|
|
|
|
transparent,
|
|
|
|
var(--reply-to-faded-color)
|
|
|
|
); */
|
|
|
|
}
|
|
|
|
|
2022-12-10 12:14:48 +03:00
|
|
|
#compose-container form {
|
2023-03-14 15:24:36 +03:00
|
|
|
border-radius: 16px;
|
2022-12-10 12:14:48 +03:00
|
|
|
padding: 4px 12px;
|
2023-03-14 15:24:36 +03:00
|
|
|
background-color: var(--bg-blur-color);
|
|
|
|
/* background-image: linear-gradient(var(--bg-color) 85%, transparent); */
|
2022-12-10 12:14:48 +03:00
|
|
|
position: relative;
|
2023-03-14 15:24:36 +03:00
|
|
|
z-index: 2;
|
|
|
|
--drop-shadow: 0 3px 6px -3px var(--drop-shadow-color);
|
|
|
|
box-shadow: var(--drop-shadow);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2022-12-13 15:42:09 +03:00
|
|
|
#compose-container .status-preview ~ form {
|
2023-03-14 15:24:36 +03:00
|
|
|
box-shadow: var(--drop-shadow), 0 -3px 6px -3px var(--drop-shadow-color);
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#compose-container .toolbar {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2022-12-15 16:31:44 +03:00
|
|
|
align-items: center;
|
2022-12-10 12:14:48 +03:00
|
|
|
padding: 8px 0;
|
|
|
|
gap: 8px;
|
|
|
|
}
|
2023-03-23 20:26:49 +03:00
|
|
|
#compose-container .toolbar.wrap {
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
#compose-container .toolbar.stretch {
|
|
|
|
justify-content: stretch;
|
|
|
|
}
|
|
|
|
#compose-container .toolbar .spoiler-text-field {
|
|
|
|
flex: 1;
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
#compose-container .toolbar-button {
|
|
|
|
display: inline-block;
|
2023-03-14 15:24:36 +03:00
|
|
|
color: var(--link-color);
|
2023-03-23 20:26:49 +03:00
|
|
|
background-color: transparent;
|
2022-12-10 12:14:48 +03:00
|
|
|
padding: 0 8px;
|
|
|
|
border-radius: 8px;
|
2022-12-10 19:52:04 +03:00
|
|
|
min-height: 2.4em;
|
|
|
|
line-height: 2.4em;
|
|
|
|
min-width: 2.6em;
|
2022-12-10 12:14:48 +03:00
|
|
|
text-align: center;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
white-space: nowrap;
|
2022-12-10 19:52:04 +03:00
|
|
|
border: 2px solid transparent;
|
2022-12-14 16:48:17 +03:00
|
|
|
vertical-align: middle;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
#compose-container .toolbar-button > * {
|
|
|
|
vertical-align: middle;
|
|
|
|
cursor: inherit;
|
2022-12-11 05:37:43 +03:00
|
|
|
outline: 0;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2023-03-14 15:24:36 +03:00
|
|
|
#compose-container .toolbar-button:has([disabled]),
|
|
|
|
#compose-container .toolbar-button[disabled] {
|
2022-12-13 17:34:23 +03:00
|
|
|
pointer-events: none;
|
2023-03-14 15:24:36 +03:00
|
|
|
background-color: transparent;
|
2022-12-14 16:48:17 +03:00
|
|
|
opacity: 0.5;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2022-12-12 11:27:44 +03:00
|
|
|
#compose-container
|
|
|
|
.toolbar-button:not(.show-field)
|
|
|
|
:is(input[type='checkbox'], select, input[type='file']) {
|
2022-12-10 12:14:48 +03:00
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
height: 100%;
|
2022-12-10 19:52:04 +03:00
|
|
|
margin: 0;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2022-12-12 11:27:44 +03:00
|
|
|
#compose-container .toolbar-button input[type='file'] {
|
2022-12-10 12:14:48 +03:00
|
|
|
/* Move this out of the way, to fix cursor: pointer bug */
|
|
|
|
left: -100vw !important;
|
|
|
|
}
|
|
|
|
#compose-container .toolbar-button select {
|
2023-02-05 19:05:43 +03:00
|
|
|
background-color: inherit;
|
2022-12-10 12:14:48 +03:00
|
|
|
border: 0;
|
|
|
|
padding: 0 0 0 8px;
|
2023-04-17 19:40:21 +03:00
|
|
|
margin: 0;
|
|
|
|
appearance: none;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
#compose-container .toolbar-button:not(.show-field) select {
|
|
|
|
right: 0;
|
|
|
|
left: auto !important;
|
|
|
|
}
|
2022-12-29 11:11:58 +03:00
|
|
|
#compose-container
|
|
|
|
.toolbar-button:not(:disabled):is(
|
|
|
|
:hover,
|
|
|
|
:focus,
|
|
|
|
:focus-within,
|
|
|
|
:focus-visible
|
|
|
|
) {
|
2022-12-14 16:48:17 +03:00
|
|
|
cursor: pointer;
|
|
|
|
filter: none;
|
2023-03-14 15:24:36 +03:00
|
|
|
background-color: var(--bg-color);
|
|
|
|
border-color: var(--link-faded-color);
|
2022-12-29 11:11:58 +03:00
|
|
|
outline: 0;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2023-03-14 15:24:36 +03:00
|
|
|
#compose-container .toolbar-button:not(:disabled).highlight {
|
|
|
|
border-color: var(--link-color);
|
|
|
|
box-shadow: inset 0 0 8px var(--link-faded-color);
|
|
|
|
}
|
2022-12-14 16:48:17 +03:00
|
|
|
#compose-container .toolbar-button:not(:disabled):active {
|
2022-12-10 12:14:48 +03:00
|
|
|
filter: brightness(0.8);
|
|
|
|
}
|
|
|
|
|
2022-12-27 13:09:23 +03:00
|
|
|
#compose-container .toolbar-button .icon-text {
|
|
|
|
display: inline-block;
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: 500;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2022-12-10 12:14:48 +03:00
|
|
|
#compose-container text-expander {
|
|
|
|
position: relative;
|
2023-01-29 16:45:59 +03:00
|
|
|
display: block;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
#compose-container .text-expander-menu {
|
|
|
|
color: var(--text-color);
|
|
|
|
background-color: var(--bg-color);
|
|
|
|
position: absolute;
|
2023-01-29 16:45:59 +03:00
|
|
|
margin-top: 2em;
|
2022-12-10 12:14:48 +03:00
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
2022-12-10 19:52:04 +03:00
|
|
|
border: 1px solid var(--outline-color);
|
2023-01-29 16:45:59 +03:00
|
|
|
box-shadow: 0 4px 24px var(--drop-shadow-color);
|
2022-12-10 12:14:48 +03:00
|
|
|
border-radius: 8px;
|
|
|
|
overflow: hidden;
|
|
|
|
z-index: 100;
|
2023-01-29 16:45:59 +03:00
|
|
|
min-width: 10em;
|
|
|
|
max-width: 90vw;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
#compose-container .text-expander-menu li {
|
|
|
|
white-space: nowrap;
|
|
|
|
padding: 8px;
|
|
|
|
cursor: pointer;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
display: flex;
|
|
|
|
gap: 8px;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 90%;
|
|
|
|
}
|
2022-12-13 13:44:35 +03:00
|
|
|
#compose-container .text-expander-menu li b img {
|
2022-12-10 12:14:48 +03:00
|
|
|
/* The shortcode emojis */
|
2022-12-13 13:44:35 +03:00
|
|
|
width: 0.9em;
|
|
|
|
height: 0.9em;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
#compose-container .text-expander-menu li .avatar {
|
|
|
|
width: 2.2em;
|
|
|
|
height: 2.2em;
|
|
|
|
}
|
2023-01-29 16:45:59 +03:00
|
|
|
#compose-container .text-expander-menu li:is(:hover, :focus, [aria-selected]) {
|
2022-12-10 12:14:48 +03:00
|
|
|
color: var(--bg-color);
|
|
|
|
background-color: var(--link-color);
|
|
|
|
}
|
2023-01-29 16:45:59 +03:00
|
|
|
#compose-container
|
|
|
|
.text-expander-menu:hover
|
|
|
|
li[aria-selected]:not(:hover, :focus) {
|
|
|
|
color: var(--text-color);
|
|
|
|
background-color: var(--bg-color);
|
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
|
2023-03-23 20:26:49 +03:00
|
|
|
#compose-container .form-visibility-direct {
|
|
|
|
--yellow-stripes: repeating-linear-gradient(
|
|
|
|
-45deg,
|
|
|
|
var(--reply-to-faded-color),
|
|
|
|
var(--reply-to-faded-color) 10px,
|
|
|
|
var(--reply-to-faded-color) 10px,
|
|
|
|
transparent 10px,
|
|
|
|
transparent 20px
|
|
|
|
);
|
|
|
|
/* diagonal stripes of yellow */
|
|
|
|
background-image: var(--yellow-stripes);
|
|
|
|
}
|
|
|
|
|
2022-12-10 12:14:48 +03:00
|
|
|
#compose-container .media-attachments {
|
|
|
|
background-color: var(--bg-faded-color);
|
|
|
|
padding: 8px;
|
|
|
|
border-radius: 8px;
|
|
|
|
margin: 8px 0 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 8px;
|
|
|
|
}
|
|
|
|
#compose-container .media-attachment {
|
|
|
|
display: flex;
|
|
|
|
gap: 8px;
|
|
|
|
align-items: stretch;
|
|
|
|
}
|
|
|
|
#compose-container .media-preview {
|
2023-01-05 20:51:39 +03:00
|
|
|
flex-shrink: 0;
|
|
|
|
border: 1px solid var(--outline-color);
|
|
|
|
border-radius: 4px;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 80px;
|
|
|
|
height: 80px;
|
|
|
|
/* checkerboard background */
|
|
|
|
background-image: linear-gradient(
|
|
|
|
45deg,
|
|
|
|
var(--img-bg-color) 25%,
|
|
|
|
transparent 25%
|
|
|
|
),
|
|
|
|
linear-gradient(-45deg, var(--img-bg-color) 25%, transparent 25%),
|
|
|
|
linear-gradient(45deg, transparent 75%, var(--img-bg-color) 75%),
|
|
|
|
linear-gradient(-45deg, transparent 75%, var(--img-bg-color) 75%);
|
|
|
|
background-size: 10px 10px;
|
|
|
|
background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
2022-12-12 11:27:44 +03:00
|
|
|
#compose-container .media-preview > * {
|
2023-01-05 20:51:39 +03:00
|
|
|
width: 80px;
|
2022-12-10 12:14:48 +03:00
|
|
|
height: 80px;
|
|
|
|
object-fit: contain;
|
2023-01-05 20:51:39 +03:00
|
|
|
vertical-align: middle;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
#compose-container .media-preview:hover {
|
|
|
|
box-shadow: 0 0 0 2px var(--link-light-color);
|
|
|
|
cursor: pointer;
|
2022-12-10 12:14:48 +03:00
|
|
|
}
|
|
|
|
#compose-container .media-attachment textarea {
|
|
|
|
height: 80px;
|
|
|
|
flex-grow: 1;
|
|
|
|
resize: none;
|
|
|
|
}
|
2022-12-12 11:27:44 +03:00
|
|
|
#compose-container .media-attachments .media-desc {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
#compose-container .media-attachments .media-desc p {
|
|
|
|
font-size: 90%;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
/* clamp 2 lines */
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
#compose-container .media-attachments .media-desc p i {
|
|
|
|
color: var(--text-insignificant-color);
|
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
#compose-container .media-aside {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
#compose-container .media-aside .close-button {
|
|
|
|
padding: 4px;
|
|
|
|
align-self: flex-start;
|
|
|
|
color: var(--text-insignificant-color);
|
|
|
|
}
|
2022-12-29 11:11:58 +03:00
|
|
|
#compose-container .media-aside .close-button:is(:hover, :focus) {
|
2022-12-12 11:27:44 +03:00
|
|
|
color: var(--text-color);
|
|
|
|
}
|
2022-12-10 12:14:48 +03:00
|
|
|
#compose-container .media-aside .uploaded {
|
|
|
|
color: var(--green-color);
|
|
|
|
margin-bottom: 4px;
|
2022-12-12 11:27:44 +03:00
|
|
|
}
|
2022-12-14 16:48:17 +03:00
|
|
|
|
2023-01-22 14:33:45 +03:00
|
|
|
#compose-container .media-sensitive {
|
|
|
|
padding: 8px;
|
|
|
|
background-color: var(--bg-blur-color);
|
|
|
|
border-radius: 8px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
#compose-container .media-sensitive > * {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2022-12-14 16:49:42 +03:00
|
|
|
#compose-container form .poll {
|
2022-12-14 16:48:17 +03:00
|
|
|
background-color: var(--bg-faded-color);
|
|
|
|
border-radius: 8px;
|
|
|
|
margin: 8px 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#compose-container .poll-choices {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 8px;
|
|
|
|
padding: 8px;
|
|
|
|
}
|
|
|
|
#compose-container .poll-choice {
|
|
|
|
display: flex;
|
|
|
|
gap: 8px;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: stretch;
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
}
|
|
|
|
#compose-container .poll-choice input {
|
|
|
|
flex-grow: 1;
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#compose-container .poll-button {
|
|
|
|
border: 2px solid var(--outline-color);
|
|
|
|
width: 28px;
|
|
|
|
height: 28px;
|
|
|
|
padding: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
line-height: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
transition: border-radius 1s ease-out;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
#compose-container .multiple .poll-button {
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#compose-container .poll-toolbar {
|
|
|
|
display: flex;
|
|
|
|
gap: 8px;
|
|
|
|
align-items: stretch;
|
|
|
|
justify-content: space-between;
|
|
|
|
font-size: 90%;
|
|
|
|
border-top: 1px solid var(--outline-color);
|
|
|
|
padding: 8px;
|
|
|
|
}
|
|
|
|
#compose-container .poll-toolbar select {
|
|
|
|
padding: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#compose-container .multiple-choices {
|
|
|
|
flex-grow: 1;
|
|
|
|
display: flex;
|
|
|
|
gap: 4px;
|
|
|
|
align-items: center;
|
|
|
|
border-left: 1px solid var(--outline-color);
|
|
|
|
padding-left: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#compose-container .expires-in {
|
|
|
|
flex-grow: 1;
|
|
|
|
border-left: 1px solid var(--outline-color);
|
|
|
|
padding-left: 8px;
|
|
|
|
display: flex;
|
|
|
|
gap: 4px;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
|
|
|
|
|
|
|
#compose-container .remove-poll-button {
|
|
|
|
width: 100%;
|
|
|
|
color: var(--red-color);
|
|
|
|
}
|
2022-12-20 15:23:57 +03:00
|
|
|
|
|
|
|
@media (display-mode: standalone) {
|
|
|
|
/* No popping in standalone mode */
|
|
|
|
#compose-container .pop-button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2023-01-05 20:51:39 +03:00
|
|
|
|
2023-03-14 15:24:36 +03:00
|
|
|
@media (min-width: 480px) {
|
|
|
|
#compose-container button[type='submit'] {
|
|
|
|
padding-inline: 24px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-01-05 20:51:39 +03:00
|
|
|
#media-sheet main {
|
|
|
|
padding-top: 8px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex: 1;
|
2023-01-13 12:23:18 +03:00
|
|
|
gap: 8px;
|
2023-01-05 20:51:39 +03:00
|
|
|
}
|
|
|
|
#media-sheet textarea {
|
|
|
|
width: 100%;
|
|
|
|
height: 10em;
|
|
|
|
}
|
|
|
|
#media-sheet .media-preview {
|
|
|
|
border: 2px solid var(--outline-color);
|
|
|
|
border-radius: 8px;
|
|
|
|
overflow: hidden;
|
|
|
|
box-shadow: 0 2px 16px var(--img-bg-color);
|
|
|
|
/* checkerboard background */
|
|
|
|
background-image: linear-gradient(
|
|
|
|
45deg,
|
|
|
|
var(--img-bg-color) 25%,
|
|
|
|
transparent 25%
|
|
|
|
),
|
|
|
|
linear-gradient(-45deg, var(--img-bg-color) 25%, transparent 25%),
|
|
|
|
linear-gradient(45deg, transparent 75%, var(--img-bg-color) 75%),
|
|
|
|
linear-gradient(-45deg, transparent 75%, var(--img-bg-color) 75%);
|
|
|
|
background-size: 20px 20px;
|
|
|
|
background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
|
|
|
|
}
|
|
|
|
#media-sheet .media-preview > * {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
max-height: 50vh;
|
|
|
|
object-fit: contain;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2023-01-13 12:23:18 +03:00
|
|
|
|
|
|
|
@media (min-width: 50em) {
|
|
|
|
#media-sheet main {
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
#media-sheet .media-preview {
|
|
|
|
flex: 2;
|
|
|
|
}
|
|
|
|
#media-sheet .media-preview > * {
|
|
|
|
max-height: none;
|
|
|
|
}
|
|
|
|
#media-sheet textarea {
|
|
|
|
flex: 1;
|
|
|
|
min-height: 100%;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
}
|
2023-03-24 17:30:05 +03:00
|
|
|
|
|
|
|
#custom-emojis-sheet {
|
|
|
|
max-height: 50vh;
|
|
|
|
max-height: 50dvh;
|
|
|
|
}
|
|
|
|
#custom-emojis-sheet main {
|
|
|
|
mask-image: none;
|
|
|
|
}
|
|
|
|
#custom-emojis-sheet .custom-emojis-list .section-header {
|
|
|
|
font-size: 80%;
|
|
|
|
text-transform: uppercase;
|
|
|
|
color: var(--text-insignificant-color);
|
|
|
|
padding: 8px 0 4px;
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
background-color: var(--bg-blur-color);
|
2023-03-24 17:47:22 +03:00
|
|
|
backdrop-filter: blur(1px);
|
2023-03-24 17:30:05 +03:00
|
|
|
}
|
|
|
|
#custom-emojis-sheet .custom-emojis-list section {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
#custom-emojis-sheet .custom-emojis-list button {
|
|
|
|
border-radius: 8px;
|
|
|
|
background-image: radial-gradient(
|
|
|
|
closest-side,
|
|
|
|
var(--img-bg-color),
|
|
|
|
transparent
|
|
|
|
);
|
|
|
|
}
|
|
|
|
#custom-emojis-sheet .custom-emojis-list button:is(:hover, :focus) {
|
|
|
|
filter: none;
|
|
|
|
background-color: var(--bg-faded-color);
|
|
|
|
}
|
|
|
|
#custom-emojis-sheet .custom-emojis-list button img {
|
|
|
|
transition: transform 0.1s ease-out;
|
|
|
|
}
|
|
|
|
#custom-emojis-sheet .custom-emojis-list button:is(:hover, :focus) img {
|
|
|
|
transform: scale(1.5);
|
|
|
|
}
|