Merge remote-tracking branch 'parent/main' into upstream-20240123

This commit is contained in:
KMY 2025-01-23 18:10:34 +09:00
commit 50ae2d9439
320 changed files with 2587 additions and 2817 deletions

View file

@ -127,9 +127,7 @@
.actions-modal ul li:not(:empty) a:focus button,
.actions-modal ul li:not(:empty) a:hover,
.actions-modal ul li:not(:empty) a:hover button,
.simple_form .block-button,
.simple_form .button,
.simple_form button {
.simple_form button:not(.button, .link-button) {
color: $white;
}
@ -142,6 +140,11 @@
border-top-color: lighten($ui-base-color, 4%);
}
.dialog-modal__content__preview {
background: #fff;
border-bottom: 1px solid var(--modal-border-color);
}
.reactions-bar__item:hover,
.reactions-bar__item:focus,
.reactions-bar__item:active {

View file

@ -85,6 +85,14 @@
outline: $ui-button-icon-focus-outline;
}
&--compact {
font-size: 14px;
line-height: normal;
font-weight: 700;
padding: 5px 12px;
border-radius: 4px;
}
&--dangerous {
background-color: var(--error-background-color);
color: var(--on-error-color);
@ -951,6 +959,16 @@ body > [data-popper-placement] {
border-color: $ui-highlight-color;
color: $primary-text-color;
}
&.warning {
border-color: var(--goldenrod-2);
color: var(--goldenrod-2);
&.active {
background-color: var(--goldenrod-2);
color: var(--indigo-1);
}
}
}
.character-counter {
@ -3897,29 +3915,6 @@ $ui-header-logo-wordmark-width: 99px;
}
}
button.icon-button i.fa-retweet {
background-position: 0 0;
height: 19px;
transition: background-position 0.9s steps(10);
transition-duration: 0s;
vertical-align: middle;
width: 22px;
&::before {
display: none !important;
}
}
button.icon-button.active i.fa-retweet {
transition-duration: 0.9s;
background-position: 0 100%;
}
.reduce-motion button.icon-button i.fa-retweet,
.reduce-motion button.icon-button.active i.fa-retweet {
transition: none;
}
.status-card {
display: flex;
align-items: center;
@ -6376,6 +6371,35 @@ a.status-card {
gap: 16px;
padding: 24px;
}
&__preview {
display: flex;
flex-direction: column;
gap: 16px;
align-items: center;
justify-content: center;
padding: 24px;
background: #000;
img {
display: block;
}
img,
.gifv video {
outline: 1px solid var(--media-outline-color);
outline-offset: -1px;
border-radius: 8px;
}
img,
.gifv video,
.video-player,
.audio-player {
max-width: 360px;
max-height: 45vh;
}
}
}
.copy-paste-text {
@ -6722,62 +6746,6 @@ a.status-card {
margin-bottom: 29px;
}
.report-modal__comment {
padding: 20px;
border-inline-end: 1px solid var(--background-border-color);
max-width: 320px;
p {
font-size: 14px;
line-height: 20px;
margin-bottom: 20px;
}
.setting-text-label {
display: block;
color: $secondary-text-color;
font-size: 14px;
font-weight: 500;
margin-bottom: 10px;
}
.setting-text {
width: 100%;
resize: none;
min-height: 100px;
max-height: 50vh;
border: 0;
@media screen and (height <= 600px) {
max-height: 20vh;
}
@media screen and (max-width: $no-columns-breakpoint) {
max-height: 20vh;
}
}
.setting-toggle {
margin-top: 20px;
margin-bottom: 24px;
&__label {
color: $inverted-text-color;
font-size: 14px;
}
}
@media screen and (width <= 480px) {
padding: 10px;
max-width: 100%;
order: 2;
.setting-toggle {
margin-bottom: 4px;
}
}
}
.actions-modal {
max-height: 80vh;
max-width: 80vw;
@ -7292,11 +7260,6 @@ a.status-card {
outline: 1px solid var(--media-outline-color);
outline-offset: -1px;
&.editable {
border-radius: 0;
height: 100%;
}
&.inactive {
audio,
.video-player__controls {
@ -7365,11 +7328,6 @@ a.status-card {
outline-offset: -1px;
z-index: 2;
&.editable {
border-radius: 0;
height: 100% !important;
}
video {
display: block;
z-index: -2;
@ -7675,6 +7633,14 @@ a.status-card {
}
.gifv {
position: relative;
canvas {
position: absolute;
width: 100%;
height: 100%;
}
video {
max-width: 100vw;
max-height: 80vh;
@ -8110,24 +8076,14 @@ noscript {
.focal-point {
position: relative;
cursor: move;
cursor: grab;
overflow: hidden;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background: $base-shadow-color;
img,
video,
canvas {
display: block;
max-height: 80vh;
width: 100%;
height: auto;
margin: 0;
object-fit: contain;
background: $base-shadow-color;
&.dragging {
cursor: grabbing;
}
&__reticle {
@ -8135,54 +8091,10 @@ noscript {
width: 100px;
height: 100px;
transform: translate(-50%, -50%);
background: url('../images/reticle.png') no-repeat 0 0;
border: 2px solid #fff;
border-radius: 50%;
box-shadow: 0 0 0 9999em rgba($base-shadow-color, 0.35);
}
&__overlay {
position: absolute;
width: 100%;
height: 100%;
top: 0;
inset-inline-start: 0;
}
&__preview {
position: absolute;
bottom: 10px;
inset-inline-end: 10px;
z-index: 2;
cursor: move;
transition: opacity 0.1s ease;
&:hover {
opacity: 0.5;
}
strong {
color: $primary-text-color;
font-size: 14px;
font-weight: 500;
display: block;
margin-bottom: 5px;
}
div {
border-radius: 4px;
box-shadow: 0 0 14px rgba($base-shadow-color, 0.2);
}
}
@media screen and (width <= 480px) {
img,
video {
max-height: 100%;
}
&__preview {
display: none;
}
pointer-events: none;
}
}
@ -10913,12 +10825,7 @@ noscript {
.compose-form__actions {
.button {
display: block; // Otherwise text-ellipsis doesn't work
font-size: 14px;
line-height: normal;
font-weight: 700;
flex: 1 1 auto;
padding: 5px 12px;
border-radius: 4px;
}
}

View file

@ -76,6 +76,18 @@ code {
margin-bottom: 16px;
overflow: hidden;
&:last-child {
margin-bottom: 0;
}
&__toolbar {
margin-top: 16px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
}
&.hidden {
margin: 0;
}
@ -552,6 +564,7 @@ code {
.actions {
margin-top: 30px;
display: flex;
gap: 10px;
&.actions--top {
margin-top: 0;
@ -564,9 +577,7 @@ code {
margin-bottom: 15px;
}
button,
.button,
.block-button {
button:not(.button, .link-button) {
display: block;
width: 100%;
border: 0;
@ -641,6 +652,18 @@ code {
}
.label_input {
position: relative;
&__loading-indicator {
box-sizing: border-box;
position: absolute;
top: 0;
inset-inline-start: 0;
border: 1px solid transparent;
padding: 10px 16px;
width: 100%;
}
&__wrapper {
position: relative;
}