Merge remote-tracking branch 'parent/main' into upstream-20240926
This commit is contained in:
commit
c905714459
517 changed files with 4284 additions and 3891 deletions
|
@ -81,6 +81,18 @@
|
|||
outline: $ui-button-icon-focus-outline;
|
||||
}
|
||||
|
||||
&--dangerous {
|
||||
background-color: var(--error-background-color);
|
||||
color: var(--on-error-color);
|
||||
|
||||
&:active,
|
||||
&:focus,
|
||||
&:hover {
|
||||
background-color: var(--error-active-background-color);
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
||||
&--destructive {
|
||||
&:active,
|
||||
&:focus,
|
||||
|
@ -93,7 +105,7 @@
|
|||
&:disabled,
|
||||
&.disabled {
|
||||
background-color: $ui-primary-color;
|
||||
cursor: default;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
&.copyable {
|
||||
|
@ -299,6 +311,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
&--with-counter {
|
||||
padding-inline-end: 4px;
|
||||
}
|
||||
|
||||
&__counter {
|
||||
display: block;
|
||||
width: auto;
|
||||
|
@ -1481,6 +1497,15 @@ body > [data-popper-placement] {
|
|||
}
|
||||
}
|
||||
|
||||
&__action-bar__button-wrapper {
|
||||
flex-basis: 0;
|
||||
flex-grow: 1;
|
||||
|
||||
&:last-child {
|
||||
flex-grow: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&--first-in-thread {
|
||||
border-top: 1px solid var(--background-border-color);
|
||||
}
|
||||
|
@ -2102,13 +2127,14 @@ body > [data-popper-placement] {
|
|||
display: block;
|
||||
position: relative;
|
||||
border-radius: var(--avatar-border-radius);
|
||||
background-color: var(--surface-background-color);
|
||||
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
border-radius: var(--avatar-border-radius);
|
||||
display: inline-block; // to not show broken images
|
||||
}
|
||||
|
||||
&-inline {
|
||||
|
@ -2787,7 +2813,7 @@ a.account__display-name {
|
|||
&__main {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
flex: 0 0 auto;
|
||||
flex: 0 1 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
|
@ -3570,12 +3596,14 @@ $ui-header-logo-wordmark-width: 99px;
|
|||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
height: calc(100% - 20px);
|
||||
overflow-y: auto;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
& > a {
|
||||
flex: 0 0 auto;
|
||||
&__menu {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.logo {
|
||||
|
@ -3586,6 +3614,36 @@ $ui-header-logo-wordmark-width: 99px;
|
|||
&__logo {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
@media screen and (height <= 710px) {
|
||||
&__portal {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (height <= 765px) {
|
||||
&__portal .trends__item:nth-child(n + 3) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (height <= 820px) {
|
||||
&__portal .trends__item:nth-child(n + 4) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (height <= 920px) {
|
||||
.column-link.column-link--optional {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
// @media screen and (height <= 1040px) {
|
||||
// .list-panel {
|
||||
// display: none;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
.navigation-panel,
|
||||
|
@ -3963,22 +4021,6 @@ $ui-header-logo-wordmark-width: 99px;
|
|||
}
|
||||
}
|
||||
|
||||
@media screen and (height <= 810px) {
|
||||
.trends__item:nth-of-type(3) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (height <= 720px) {
|
||||
.trends__item:nth-of-type(2) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (height <= 670px) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.trends__item {
|
||||
border-bottom: 0;
|
||||
padding: 10px;
|
||||
|
@ -6045,19 +6087,34 @@ a.status-card {
|
|||
height: 100%;
|
||||
position: relative;
|
||||
|
||||
&__close,
|
||||
&__zoom-button {
|
||||
color: rgba($white, 0.7);
|
||||
&__buttons {
|
||||
position: absolute;
|
||||
inset-inline-end: 8px;
|
||||
top: 8px;
|
||||
z-index: 100;
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
color: $white;
|
||||
background-color: rgba($white, 0.15);
|
||||
}
|
||||
.icon-button {
|
||||
color: rgba($white, 0.7);
|
||||
padding: 8px;
|
||||
|
||||
&:focus {
|
||||
background-color: rgba($white, 0.3);
|
||||
.icon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
color: $white;
|
||||
background-color: rgba($white, 0.15);
|
||||
}
|
||||
|
||||
&:focus {
|
||||
background-color: rgba($white, 0.3);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6218,28 +6275,6 @@ a.status-card {
|
|||
}
|
||||
}
|
||||
|
||||
.media-modal__close {
|
||||
position: absolute;
|
||||
inset-inline-end: 8px;
|
||||
top: 8px;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.media-modal__zoom-button {
|
||||
position: absolute;
|
||||
inset-inline-end: 64px;
|
||||
top: 8px;
|
||||
z-index: 100;
|
||||
pointer-events: auto;
|
||||
transition: opacity 0.3s linear;
|
||||
will-change: opacity;
|
||||
}
|
||||
|
||||
.media-modal__zoom-button--hidden {
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.onboarding-modal,
|
||||
.error-modal,
|
||||
.embed-modal {
|
||||
|
@ -6496,6 +6531,14 @@ a.status-card {
|
|||
display: flex;
|
||||
gap: 16px;
|
||||
align-items: center;
|
||||
|
||||
strong {
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
|
||||
&--deemphasized {
|
||||
color: $secondary-text-color;
|
||||
}
|
||||
|
||||
&__icon {
|
||||
|
@ -7178,7 +7221,7 @@ a.status-card {
|
|||
|
||||
.media-gallery__actions {
|
||||
position: absolute;
|
||||
bottom: 6px;
|
||||
top: 6px;
|
||||
inset-inline-end: 6px;
|
||||
display: flex;
|
||||
gap: 2px;
|
||||
|
@ -7201,7 +7244,7 @@ a.status-card {
|
|||
.media-gallery__item__badges {
|
||||
position: absolute;
|
||||
bottom: 8px;
|
||||
inset-inline-start: 8px;
|
||||
inset-inline-end: 8px;
|
||||
display: flex;
|
||||
gap: 2px;
|
||||
}
|
||||
|
|
|
@ -86,9 +86,7 @@
|
|||
color: $primary-text-color;
|
||||
transition: all 100ms ease-in;
|
||||
font-size: 14px;
|
||||
padding: 0 16px;
|
||||
line-height: 36px;
|
||||
height: 36px;
|
||||
padding: 8px 16px;
|
||||
text-decoration: none;
|
||||
margin-bottom: 4px;
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ $media-modal-media-max-width: 100%;
|
|||
// put margins on top and bottom of image to avoid the screen covered by image.
|
||||
$media-modal-media-max-height: 80%;
|
||||
|
||||
$no-gap-breakpoint: 1207px;
|
||||
$no-gap-breakpoint: 1175px;
|
||||
$mobile-breakpoint: 630px;
|
||||
|
||||
$font-sans-serif: 'mastodon-font-sans-serif' !default;
|
||||
|
@ -122,4 +122,7 @@ $font-monospace: 'mastodon-font-monospace' !default;
|
|||
--detail-content-font-size: 19px;
|
||||
--detail-content-emoji-size: 24px;
|
||||
--detail-content-line-height: 24px;
|
||||
--error-background-color: #{darken($error-red, 16%)};
|
||||
--error-active-background-color: #{darken($error-red, 12%)};
|
||||
--on-error-color: #fff;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue