Reduce CSS and markup differences with upstream (#2629)

master^2
Claire 2024-02-18 19:12:23 +01:00 committed by GitHub
parent e078ede097
commit 9a11b077f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 34 additions and 21 deletions

View File

@ -156,7 +156,11 @@ export default class ComposerOptionsDropdownContent extends PureComponent {
if (!contents) { if (!contents) {
contents = ( contents = (
<> <>
{icon && <Icon className='icon' id={icon} icon={iconComponent} />} {icon && (
<div className='privacy-dropdown__option__icon'>
<Icon className='icon' id={icon} icon={iconComponent} />
</div>
)}
<div className='privacy-dropdown__option__content'> <div className='privacy-dropdown__option__content'>
<strong>{text}</strong> <strong>{text}</strong>

View File

@ -110,7 +110,9 @@ class ToggleOptionImpl extends ImmutablePureComponent {
return ( return (
<> <>
<Toggle checked={checked} onChange={this.handleChange} /> <div className='privacy-dropdown__option__icon'>
<Toggle checked={checked} onChange={this.handleChange} />
</div>
<div className='privacy-dropdown__option__content'> <div className='privacy-dropdown__option__content'>
<strong>{text}</strong> <strong>{text}</strong>

View File

@ -698,6 +698,22 @@ body > [data-popper-placement] {
.icon-button { .icon-button {
height: 100%; height: 100%;
} }
.compose-form__upload-button-icon {
line-height: 27px;
}
.compose-form__sensitive-button {
display: none;
&.compose-form__sensitive-button--visible {
display: block;
}
.compose-form__sensitive-button__icon {
line-height: 27px;
}
}
} }
.icon-button, .icon-button,
@ -1057,8 +1073,9 @@ body > [data-popper-placement] {
} }
&.light { &.light {
.status__relative-time { .status__relative-time,
color: $lighter-text-color; .status__visibility-icon {
color: $light-text-color;
} }
.status__display-name { .status__display-name {
@ -4142,19 +4159,18 @@ a.status-card.compact:hover {
background: $base-overlay-background; background: $base-overlay-background;
color: $darker-text-color; color: $darker-text-color;
border: 0; border: 0;
padding: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 4px;
appearance: none;
&:hover, &:hover,
&:active, &:active,
&:focus { &:focus {
padding: 0;
color: lighten($darker-text-color, 8%); color: lighten($darker-text-color, 8%);
} }
.status__content > & {
margin-top: 15px; // Add margin when used bare for NSFW video player
}
@include fullwidth-gallery;
} }
.media-spoiler__warning { .media-spoiler__warning {
@ -4165,7 +4181,7 @@ a.status-card.compact:hover {
.media-spoiler__trigger { .media-spoiler__trigger {
display: block; display: block;
font-size: 11px; font-size: 11px;
font-weight: 500; font-weight: 700;
} }
.spoiler-button { .spoiler-button {
@ -4829,10 +4845,6 @@ a.status-card.compact:hover {
flex: 1 1 auto; flex: 1 1 auto;
color: $lighter-text-color; color: $lighter-text-color;
&:not(:first-child) {
margin-inline-start: 10px;
}
strong { strong {
font-weight: 500; font-weight: 500;
display: block; display: block;
@ -4864,11 +4876,6 @@ a.status-card.compact:hover {
min-width: 75%; min-width: 75%;
} }
.account__header__wrapper {
flex: 0 0 auto;
background: lighten($ui-base-color, 4%);
}
.account__disclaimer { .account__disclaimer {
display: flex; display: flex;
padding: 10px; padding: 10px;
@ -5729,9 +5736,9 @@ a.status-card.compact:hover {
display: flex; display: flex;
} }
.video-modal__container { .video-modal .video-player {
max-height: 80vh;
max-width: 100vw; max-width: 100vw;
max-height: 100vh;
} }
.audio-modal__container { .audio-modal__container {