Further reduce differences with upstream

th-downstream
Claire 7 months ago
parent f6f62002c7
commit 3f89cec3c9

@ -931,6 +931,255 @@ body > [data-popper-placement] {
}
}
.translate-button {
margin-top: 16px;
font-size: 15px;
line-height: 20px;
display: flex;
justify-content: space-between;
color: $dark-text-color;
}
.status__content__spoiler-link {
display: inline-flex;
border-radius: 2px;
background: lighten($ui-base-color, 30%);
border: 0;
color: $inverted-text-color;
font-weight: 700;
font-size: 11px;
padding: 0 5px;
text-transform: uppercase;
line-height: inherit;
cursor: pointer;
vertical-align: top;
align-items: center;
&:hover {
background: lighten($ui-base-color, 33%);
text-decoration: none;
}
.status__content__spoiler-icon {
display: inline-block;
margin-inline-start: 5px;
border-inline-start: 1px solid currentColor;
padding: 0;
padding-inline-start: 4px;
width: 16px;
height: 16px;
}
}
.status__wrapper--filtered {
color: $dark-text-color;
border: 0;
font-size: inherit;
text-align: center;
line-height: inherit;
margin: 0;
padding: 15px;
box-sizing: border-box;
width: 100%;
clear: both;
border-bottom: 1px solid lighten($ui-base-color, 8%);
&__button {
display: inline;
color: lighten($ui-highlight-color, 8%);
border: 0;
background: transparent;
padding: 0;
font-size: inherit;
line-height: inherit;
&:hover,
&:active {
text-decoration: underline;
}
}
}
.focusable {
&:focus {
outline: 0;
background: lighten($ui-base-color, 4%);
&.status.status-direct {
background: mix(lighten($ui-base-color, 4%), $ui-highlight-color, 95%);
&.muted {
background: transparent;
}
}
.detailed-status,
.detailed-status__action-bar {
background: lighten($ui-base-color, 8%);
}
}
}
.status {
padding: 10px 14px;
position: relative;
height: auto;
border-bottom: 1px solid lighten($ui-base-color, 8%);
cursor: auto;
@supports (-ms-overflow-style: -ms-autohiding-scrollbar) {
// Add margin to avoid Edge auto-hiding scrollbar appearing over content.
// On Edge 16 this is 16px and Edge <=15 it's 12px, so aim for 16px.
padding-inline-end: 28px; // 12px + 16px
}
@keyframes fade {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
opacity: 1;
animation: fade 150ms linear;
.video-player,
.audio-player {
margin-top: 8px;
}
&.status-direct {
background: mix($ui-base-color, $ui-highlight-color, 95%);
border-bottom-color: lighten($ui-base-color, 12%);
}
&.light {
.status__relative-time {
color: $lighter-text-color;
}
.status__display-name {
color: $inverted-text-color;
}
.display-name {
color: $light-text-color;
strong {
color: $inverted-text-color;
}
}
.status__content {
color: $inverted-text-color;
a {
color: $highlight-text-color;
}
a.status__content__spoiler-link {
color: $primary-text-color;
background: $ui-primary-color;
&:hover {
background: lighten($ui-primary-color, 8%);
}
}
}
}
&.collapsed {
background-position: center;
background-size: cover;
user-select: none;
&.has-background::before {
display: block;
position: absolute;
inset-inline-start: 0;
inset-inline-end: 0;
top: 0;
bottom: 0;
background-image: linear-gradient(
to bottom,
rgba($base-shadow-color, 0.75),
rgba($base-shadow-color, 0.65) 24px,
rgba($base-shadow-color, 0.8)
);
pointer-events: none;
content: '';
}
.display-name:hover .display-name__html {
text-decoration: none;
}
.status__content {
height: 20px;
overflow: hidden;
text-overflow: ellipsis;
padding-top: 0;
&::after {
content: '';
position: absolute;
top: 0;
bottom: 0;
inset-inline-start: 0;
inset-inline-end: 0;
background: linear-gradient(
rgba($ui-base-color, 0),
rgba($ui-base-color, 1)
);
pointer-events: none;
}
a:hover {
text-decoration: none;
}
}
&:focus > .status__content::after {
background: linear-gradient(
rgba(lighten($ui-base-color, 4%), 0),
rgba(lighten($ui-base-color, 4%), 1)
);
}
&.status-direct > .status__content::after {
background: linear-gradient(
rgba(mix($ui-base-color, $ui-highlight-color, 95%), 0),
rgba(mix($ui-base-color, $ui-highlight-color, 95%), 1)
);
}
.notification__message {
margin-bottom: 0;
}
.status__info .notification__message > span {
white-space: nowrap;
}
}
.notification__message {
margin: -10px 0 10px;
}
}
.status__relative-time {
display: inline-block;
color: $dark-text-color;
font-size: 14px;
text-align: end;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.compose-form__textarea-icons {
display: block;
position: absolute;
@ -1926,114 +2175,46 @@ $ui-header-height: 55px;
.column,
.drawer {
width: 100%;
height: 100%;
padding: 0;
}
.account-card {
margin-bottom: 0;
}
.filter-form {
display: flex;
flex-wrap: wrap;
}
.autosuggest-textarea__textarea {
font-size: 16px;
}
.search__input {
line-height: 18px;
font-size: 16px;
padding: 15px;
padding-inline-end: 30px;
}
.search__icon .fa {
top: 15px;
}
.scrollable {
overflow: visible;
@supports (display: grid) {
contain: content;
}
}
@media screen and (min-width: $no-gap-breakpoint) {
padding: 10px 0;
padding-top: 0;
}
.detailed-status {
padding: 15px;
.media-gallery,
.video-player,
.audio-player {
margin-top: 15px;
}
}
.account__header__bar {
padding: 5px 10px;
}
.navigation-bar,
.compose-form {
padding: 15px;
}
.compose-form .compose-form__publish .compose-form__publish-button-wrapper {
padding-top: 15px;
}
.notification__report {
padding: 15px;
padding-inline-start: (48px + 15px * 2);
min-height: 48px + 2px;
&__avatar {
inset-inline-start: 15px;
top: 17px;
}
}
.status {
padding: 15px;
min-height: 48px + 2px;
.media-gallery,
&__action-bar,
.video-player,
.audio-player {
margin-top: 10px;
}
height: 100%;
padding: 0;
}
.account {
padding: 15px 10px;
.account-card {
margin-bottom: 0;
}
&__header__bio {
margin: 0 -10px;
.filter-form {
display: flex;
flex-wrap: wrap;
}
.autosuggest-textarea__textarea {
font-size: 16px;
}
.notification {
&__message {
padding-top: 15px;
.search__input {
line-height: 18px;
font-size: 16px;
padding: 15px;
padding-inline-end: 30px;
}
.status {
padding-top: 8px;
.search__icon .fa {
top: 15px;
}
.account {
padding-top: 8px;
.scrollable {
overflow: visible;
@supports (display: grid) {
contain: content;
}
}
@media screen and (min-width: $no-gap-breakpoint) {
padding: 10px 0;
padding-top: 0;
}
}
@media screen and (min-width: $no-gap-breakpoint) {
@ -4744,417 +4925,178 @@ a.status-card.compact:hover {
&__message {
position: relative;
margin-inline-start: 58px;
color: $dark-text-color;
padding: 8px 0;
padding-top: 0;
padding-bottom: 4px;
font-size: 14px;
> span {
display: block;
overflow: hidden;
text-overflow: ellipsis;
}
}
&__icon-wrapper {
inset-inline-start: -26px;
position: absolute;
}
.detailed-status__display-avatar {
position: relative;
}
.detailed-status__display-name {
margin-bottom: 0;
}
}
@keyframes spring-flip-in {
0% {
transform: rotate(0deg);
}
30% {
transform: rotate(-242.4deg);
}
60% {
transform: rotate(-158.35deg);
}
90% {
transform: rotate(-187.5deg);
}
100% {
transform: rotate(-180deg);
}
}
@keyframes spring-flip-out {
0% {
transform: rotate(-180deg);
}
30% {
transform: rotate(62.4deg);
}
60% {
transform: rotate(-21.635deg);
}
90% {
transform: rotate(7.5deg);
}
100% {
transform: rotate(0deg);
}
}
.status__content {
position: relative;
margin: 10px 0;
font-size: 15px;
line-height: 20px;
word-wrap: break-word;
font-weight: 400;
overflow: visible;
padding-top: 5px;
&:focus {
outline: 0;
}
.emojione {
width: 20px;
height: 20px;
margin: -3px 0 0;
}
p,
pre {
margin-bottom: 20px;
white-space: pre-wrap;
unicode-bidi: plaintext;
&:last-child {
margin-bottom: 0;
}
}
a {
color: $secondary-text-color;
text-decoration: none;
unicode-bidi: isolate;
&:hover {
text-decoration: underline;
}
&.mention {
&:hover {
text-decoration: none;
span {
text-decoration: underline;
}
}
}
}
.status__content__spoiler {
display: none;
&.status__content__spoiler--visible {
display: block;
}
}
a.unhandled-link {
color: $highlight-text-color;
.link-origin-tag {
color: $gold-star;
font-size: 0.8em;
}
}
.status__content__spoiler-link {
background: lighten($ui-base-color, 30%);
&:hover,
&:focus {
background: lighten($ui-base-color, 33%);
text-decoration: none;
}
}
}
.translate-button {
margin-top: 16px;
font-size: 15px;
line-height: 20px;
display: flex;
justify-content: space-between;
color: $dark-text-color;
}
.status__content__spoiler-link {
display: inline-flex;
border-radius: 2px;
background: lighten($ui-base-color, 30%);
border: 0;
color: $inverted-text-color;
font-weight: 700;
font-size: 11px;
padding: 0 5px;
text-transform: uppercase;
line-height: inherit;
cursor: pointer;
vertical-align: top;
align-items: center;
&:hover {
background: lighten($ui-base-color, 33%);
text-decoration: none;
}
.status__content__spoiler-icon {
display: inline-block;
margin-inline-start: 5px;
border-inline-start: 1px solid currentColor;
padding: 0;
padding-inline-start: 4px;
width: 16px;
height: 16px;
}
}
.notif-cleaning {
.status,
.notification {
padding-inline-end: ($dismiss-overlay-width + 0.5rem);
}
}
.status__wrapper--filtered {
color: $dark-text-color;
border: 0;
font-size: inherit;
text-align: center;
line-height: inherit;
margin: 0;
padding: 15px;
box-sizing: border-box;
width: 100%;
clear: both;
border-bottom: 1px solid lighten($ui-base-color, 8%);
&__button {
display: inline;
color: lighten($ui-highlight-color, 8%);
border: 0;
background: transparent;
padding: 0;
font-size: inherit;
line-height: inherit;
margin-inline-start: 58px;
color: $dark-text-color;
padding: 8px 0;
padding-top: 0;
padding-bottom: 4px;
font-size: 14px;
&:hover,
&:active {
text-decoration: underline;
> span {
display: block;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
.status__prepend-icon-wrapper {
&__icon-wrapper {
inset-inline-start: -26px;
position: absolute;
}
}
.notification-follow,
.notification-follow-request {
.detailed-status__display-avatar {
position: relative;
}
// same like Status
border-bottom: 1px solid lighten($ui-base-color, 8%);
.account {
border-bottom: 0 none;
.detailed-status__display-name {
margin-bottom: 0;
}
}
.focusable {
&:focus {
outline: 0;
background: lighten($ui-base-color, 4%);
&.status.status-direct {
background: mix(lighten($ui-base-color, 4%), $ui-highlight-color, 95%);
&.muted {
background: transparent;
}
@keyframes spring-flip-in {
0% {
transform: rotate(0deg);
}
.detailed-status,
.detailed-status__action-bar {
background: lighten($ui-base-color, 8%);
30% {
transform: rotate(-242.4deg);
}
60% {
transform: rotate(-158.35deg);
}
}
.status {
padding: 10px 14px;
position: relative;
height: auto;
border-bottom: 1px solid lighten($ui-base-color, 8%);
cursor: auto;
90% {
transform: rotate(-187.5deg);
}
@supports (-ms-overflow-style: -ms-autohiding-scrollbar) {
// Add margin to avoid Edge auto-hiding scrollbar appearing over content.
// On Edge 16 this is 16px and Edge <=15 it's 12px, so aim for 16px.
padding-inline-end: 28px; // 12px + 16px
100% {
transform: rotate(-180deg);
}
}
@keyframes fade {
@keyframes spring-flip-out {
0% {
opacity: 0;
transform: rotate(-180deg);
}
100% {
opacity: 1;
}
30% {
transform: rotate(62.4deg);
}
opacity: 1;
animation: fade 150ms linear;
60% {
transform: rotate(-21.635deg);
}
.video-player,
.audio-player {
margin-top: 8px;
90% {
transform: rotate(7.5deg);
}
&.status-direct {
background: mix($ui-base-color, $ui-highlight-color, 95%);
border-bottom-color: lighten($ui-base-color, 12%);
100% {
transform: rotate(0deg);
}
}
&.light {
.status__relative-time {
color: $lighter-text-color;
.status__content {
position: relative;
margin: 10px 0;
font-size: 15px;
line-height: 20px;
word-wrap: break-word;
font-weight: 400;
overflow: visible;
padding-top: 5px;
&:focus {
outline: 0;
}
.status__display-name {
color: $inverted-text-color;
.emojione {
width: 20px;
height: 20px;
margin: -3px 0 0;
}
.display-name {
color: $light-text-color;
p,
pre {
margin-bottom: 20px;
white-space: pre-wrap;
unicode-bidi: plaintext;
strong {
color: $inverted-text-color;
&:last-child {
margin-bottom: 0;
}
}
.status__content {
color: $inverted-text-color;
a {
color: $highlight-text-color;
}
color: $secondary-text-color;
text-decoration: none;
unicode-bidi: isolate;
a.status__content__spoiler-link {
color: $primary-text-color;
background: $ui-primary-color;
&:hover {
text-decoration: underline;
}
&.mention {
&:hover {
background: lighten($ui-primary-color, 8%);
text-decoration: none;
span {
text-decoration: underline;
}
}
}
}
&.collapsed {
background-position: center;
background-size: cover;
user-select: none;
.status__content__spoiler {
display: none;
&.has-background::before {
&.status__content__spoiler--visible {
display: block;
position: absolute;
inset-inline-start: 0;
inset-inline-end: 0;
top: 0;
bottom: 0;
background-image: linear-gradient(
to bottom,
rgba($base-shadow-color, 0.75),
rgba($base-shadow-color, 0.65) 24px,
rgba($base-shadow-color, 0.8)
);
pointer-events: none;
content: '';
}
.display-name:hover .display-name__html {
text-decoration: none;
}
.status__content {
height: 20px;
overflow: hidden;
text-overflow: ellipsis;
padding-top: 0;
a.unhandled-link {
color: $highlight-text-color;
&::after {
content: '';
position: absolute;
top: 0;
bottom: 0;
inset-inline-start: 0;
inset-inline-end: 0;
background: linear-gradient(
rgba($ui-base-color, 0),
rgba($ui-base-color, 1)
);
pointer-events: none;
.link-origin-tag {
color: $gold-star;
font-size: 0.8em;
}
}
a:hover {
.status__content__spoiler-link {
background: lighten($ui-base-color, 30%);
&:hover,
&:focus {
background: lighten($ui-base-color, 33%);
text-decoration: none;
}
}
}
&:focus > .status__content::after {
background: linear-gradient(
rgba(lighten($ui-base-color, 4%), 0),
rgba(lighten($ui-base-color, 4%), 1)
);
.notif-cleaning {
.status,
.notification {
padding-inline-end: ($dismiss-overlay-width + 0.5rem);
}
}
&.status-direct > .status__content::after {
background: linear-gradient(
rgba(mix($ui-base-color, $ui-highlight-color, 95%), 0),
rgba(mix($ui-base-color, $ui-highlight-color, 95%), 1)
);
}
.status__prepend-icon-wrapper {
inset-inline-start: -26px;
position: absolute;
}
.notification__message {
margin-bottom: 0;
}
.notification-follow,
.notification-follow-request {
position: relative;
.status__info .notification__message > span {
white-space: nowrap;
}
}
// same like Status
border-bottom: 1px solid lighten($ui-base-color, 8%);
.notification__message {
margin: -10px 0 10px;
.account {
border-bottom: 0 none;
}
}
@ -5168,16 +5110,6 @@ a.status-card.compact:hover {
}
}
.status__relative-time {
display: inline-block;
color: $dark-text-color;
font-size: 14px;
text-align: end;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.status__display-name {
color: $dark-text-color;
overflow: hidden;
@ -6861,16 +6793,6 @@ img.modal-warning {
}
}
.search {
@media screen and (max-width: $no-gap-breakpoint) {
margin-bottom: 0;
}
@media screen and (width <= 630px) {
font-size: 16px;
}
}
.media-gallery__item__badges {
position: absolute;
bottom: 6px;

Loading…
Cancel
Save