Fix wrong colors in the high-contrast theme (#19708)

main^2
Eugen Rochko 2 years ago committed by GitHub
parent 5825402ed5
commit 1c3192df6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 74
      app/javascript/styles/contrast/diff.scss
  2. 4
      app/javascript/styles/contrast/variables.scss

@ -1,4 +1,3 @@
// components.scss
.compose-form { .compose-form {
.compose-form__modifiers { .compose-form__modifiers {
.compose-form__upload { .compose-form__upload {
@ -14,61 +13,66 @@
} }
.status__content a, .status__content a,
.reply-indicator__content a { .link-footer a,
color: lighten($ui-highlight-color, 12%); .reply-indicator__content a,
.status__content__read-more-button {
text-decoration: underline; text-decoration: underline;
&.mention { &:hover,
&:focus,
&:active {
text-decoration: none; text-decoration: none;
} }
&.mention span { &.mention {
text-decoration: underline; text-decoration: none;
span {
text-decoration: underline;
}
&:hover, &:hover,
&:focus, &:focus,
&:active { &:active {
text-decoration: none; span {
text-decoration: none;
}
} }
} }
}
&:hover, .status__content a {
&:focus, color: $highlight-text-color;
&:active { }
text-decoration: none;
}
&.status__content__spoiler-link { .nothing-here {
color: $secondary-text-color; color: $darker-text-color;
text-decoration: none;
}
} }
.status__content__read-more-button { .compose-form__poll-wrapper .button.button-secondary,
text-decoration: underline; .compose-form .autosuggest-textarea__textarea::placeholder,
.compose-form .spoiler-input__input::placeholder,
.report-dialog-modal__textarea::placeholder,
.language-dropdown__dropdown__results__item__common-name,
.compose-form .icon-button {
color: $inverted-text-color;
}
&:hover, .text-icon-button.active {
&:focus, color: $ui-highlight-color;
&:active {
text-decoration: none;
}
} }
.getting-started__footer a { .language-dropdown__dropdown__results__item.active {
text-decoration: underline; background: $ui-highlight-color;
font-weight: 500;
}
.link-button:disabled {
cursor: not-allowed;
&:hover, &:hover,
&:focus, &:focus,
&:active { &:active {
text-decoration: none; text-decoration: none !important;
} }
} }
.nothing-here {
color: $darker-text-color;
}
.compose-form .autosuggest-textarea__textarea::placeholder,
.compose-form .spoiler-input__input::placeholder {
color: $inverted-text-color;
}

@ -14,8 +14,8 @@ $ui-highlight-color: $classic-highlight-color !default;
$darker-text-color: lighten($ui-primary-color, 20%) !default; $darker-text-color: lighten($ui-primary-color, 20%) !default;
$dark-text-color: lighten($ui-primary-color, 12%) !default; $dark-text-color: lighten($ui-primary-color, 12%) !default;
$secondary-text-color: lighten($ui-secondary-color, 6%) !default; $secondary-text-color: lighten($ui-secondary-color, 6%) !default;
$highlight-text-color: lighten($ui-highlight-color, 8%) !default; $highlight-text-color: lighten($ui-highlight-color, 10%) !default;
$action-button-color: #8d9ac2; $action-button-color: lighten($ui-base-color, 50%);
$inverted-text-color: $black !default; $inverted-text-color: $black !default;
$lighter-text-color: darken($ui-base-color, 6%) !default; $lighter-text-color: darken($ui-base-color, 6%) !default;

Loading…
Cancel
Save