[Glitch] Fix contrast of some elements with new brand colors

Port 0391b2a603 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Eugen Rochko 2022-06-19 08:18:08 +02:00 committed by Claire
parent 0e74d4da59
commit 353e2c5d84
14 changed files with 32 additions and 42 deletions

View file

@ -133,12 +133,12 @@ $content-width: 840px;
.simple-navigation-active-leaf a { .simple-navigation-active-leaf a {
color: $primary-text-color; color: $primary-text-color;
background-color: $ui-highlight-color; background-color: darken($ui-highlight-color, 2%);
border-bottom: 0; border-bottom: 0;
border-radius: 0; border-radius: 0;
&:hover { &:hover {
background-color: lighten($ui-highlight-color, 5%); background-color: $ui-highlight-color;
} }
} }
} }
@ -904,7 +904,7 @@ a.name-tag,
border: 0; border: 0;
a { a {
color: lighten($ui-highlight-color, 8%); color: $highlight-text-color;
} }
dl:first-child .verified { dl:first-child .verified {

View file

@ -36,7 +36,7 @@
} }
&.unhandled-link { &.unhandled-link {
color: lighten($ui-highlight-color, 8%); color: $highlight-text-color;
} }
} }
} }

View file

@ -201,7 +201,7 @@
} }
&.active { &.active {
color: $ui-highlight-color; color: $highlight-text-color;
} }
} }
} }

View file

@ -58,8 +58,8 @@
vertical-align: middle; vertical-align: middle;
&.checked { &.checked {
border-color: lighten($ui-highlight-color, 8%); border-color: lighten($ui-highlight-color, 4%);
background: lighten($ui-highlight-color, 8%); background: lighten($ui-highlight-color, 4%);
} }
} }
} }

View file

@ -51,22 +51,16 @@
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
text-overflow: ellipsis; text-overflow: ellipsis;
transition: all 100ms ease-in;
transition-property: background-color;
white-space: nowrap; white-space: nowrap;
width: auto; width: auto;
&:active, &:active,
&:focus, &:focus,
&:hover { &:hover {
background-color: lighten($ui-highlight-color, 7%); background-color: $ui-highlight-color;
transition: all 200ms ease-out;
transition-property: background-color;
} }
&--destructive { &--destructive {
transition: none;
&:active, &:active,
&:focus, &:focus,
&:hover { &:hover {
@ -916,11 +910,11 @@
} }
.react-toggle--checked .react-toggle-track { .react-toggle--checked .react-toggle-track {
background-color: $ui-highlight-color; background-color: darken($ui-highlight-color, 2%);
} }
.react-toggle--checked:is(:hover, :focus-within):not(.react-toggle--disabled) .react-toggle-track { .react-toggle--checked:is(:hover, :focus-within):not(.react-toggle--disabled) .react-toggle-track {
background-color: lighten($ui-highlight-color, 10%); background-color: $ui-highlight-color;
} }
.react-toggle-track-check { .react-toggle-track-check {
@ -1216,14 +1210,14 @@ button.icon-button.active i.fa-retweet {
} }
a { a {
color: lighten($ui-highlight-color, 8%); color: $highlight-text-color;
text-decoration: none; text-decoration: none;
&:hover, &:hover,
&:focus, &:focus,
&:active { &:active {
text-decoration: underline; text-decoration: underline;
color: lighten($ui-highlight-color, 12%); color: lighten($highlight-text-color, 4%);
} }
} }
} }

View file

@ -199,7 +199,7 @@
height: 3.9375rem; height: 3.9375rem;
bottom: 1.3125rem; bottom: 1.3125rem;
right: 1.3125rem; right: 1.3125rem;
background: darken($ui-highlight-color, 3%); background: darken($ui-highlight-color, 2%);
color: $white; color: $white;
border-radius: 50%; border-radius: 50%;
font-size: 21px; font-size: 21px;
@ -210,7 +210,7 @@
&:hover, &:hover,
&:focus, &:focus,
&:active { &:active {
background: lighten($ui-highlight-color, 7%); background: $ui-highlight-color;
} }
} }

View file

@ -187,7 +187,7 @@
} }
a.unhandled-link { a.unhandled-link {
color: lighten($ui-highlight-color, 8%); color: $highlight-text-color;
.link-origin-tag { .link-origin-tag {
color: $gold-star; color: $gold-star;

View file

@ -797,7 +797,7 @@
border-top: 0; border-top: 0;
a { a {
color: lighten($ui-highlight-color, 8%); color: $highlight-text-color;
} }
dl:first-child .verified { dl:first-child .verified {

View file

@ -4,19 +4,17 @@ $black: #000000;
$classic-base-color: #282c37; $classic-base-color: #282c37;
$classic-primary-color: #9baec8; $classic-primary-color: #9baec8;
$classic-secondary-color: #d9e1e8; $classic-secondary-color: #d9e1e8;
$classic-highlight-color: #2b90d9; $classic-highlight-color: #6364ff;
$ui-base-color: $classic-base-color !default; $ui-base-color: $classic-base-color !default;
$ui-primary-color: $classic-primary-color !default; $ui-primary-color: $classic-primary-color !default;
$ui-secondary-color: $classic-secondary-color !default; $ui-secondary-color: $classic-secondary-color !default;
$ui-highlight-color: $classic-highlight-color !default;
// Differences
$ui-highlight-color: #2b5fd9;
$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: $classic-highlight-color !default; $highlight-text-color: lighten($ui-highlight-color, 8%) !default;
$action-button-color: #8d9ac2; $action-button-color: #8d9ac2;
$inverted-text-color: $black !default; $inverted-text-color: $black !default;

View file

@ -83,7 +83,7 @@
display: flex; display: flex;
align-items: baseline; align-items: baseline;
border-radius: 4px; border-radius: 4px;
background: $ui-highlight-color; background: darken($ui-highlight-color, 2%);
color: $primary-text-color; color: $primary-text-color;
transition: all 100ms ease-in; transition: all 100ms ease-in;
font-size: 14px; font-size: 14px;
@ -96,7 +96,7 @@
&:active, &:active,
&:focus, &:focus,
&:hover { &:hover {
background-color: lighten($ui-highlight-color, 10%); background-color: $ui-highlight-color;
transition: all 200ms ease-out; transition: all 200ms ease-out;
} }

View file

@ -454,14 +454,14 @@ code {
width: 100%; width: 100%;
border: 0; border: 0;
border-radius: 4px; border-radius: 4px;
background: $ui-highlight-color; background: darken($ui-highlight-color, 2%);
color: $primary-text-color; color: $primary-text-color;
font-size: 18px; font-size: 18px;
line-height: inherit; line-height: inherit;
height: auto; height: auto;
padding: 10px; padding: 10px;
text-transform: uppercase;
text-decoration: none; text-decoration: none;
text-transform: uppercase;
text-align: center; text-align: center;
box-sizing: border-box; box-sizing: border-box;
cursor: pointer; cursor: pointer;
@ -474,13 +474,10 @@ code {
margin-right: 0; margin-right: 0;
} }
&:hover {
background-color: lighten($ui-highlight-color, 5%);
}
&:active, &:active,
&:focus { &:focus,
background-color: darken($ui-highlight-color, 5%); &:hover {
background-color: $ui-highlight-color;
} }
&:disabled:hover { &:disabled:hover {

View file

@ -5,7 +5,7 @@ $white: #ffffff;
$classic-base-color: #282c37; $classic-base-color: #282c37;
$classic-primary-color: #9baec8; $classic-primary-color: #9baec8;
$classic-secondary-color: #d9e1e8; $classic-secondary-color: #d9e1e8;
$classic-highlight-color: #2b90d9; $classic-highlight-color: #6364ff;
$ui-base-color: $classic-secondary-color !default; $ui-base-color: $classic-secondary-color !default;
$ui-base-lighter-color: darken($ui-base-color, 57%); $ui-base-lighter-color: darken($ui-base-color, 57%);
@ -15,6 +15,7 @@ $ui-secondary-color: $classic-base-color !default;
$primary-text-color: $black !default; $primary-text-color: $black !default;
$darker-text-color: $classic-base-color !default; $darker-text-color: $classic-base-color !default;
$highlight-text-color: darken($ui-highlight-color, 8%) !default;
$dark-text-color: #444b5d; $dark-text-color: #444b5d;
$action-button-color: #606984; $action-button-color: #606984;

View file

@ -76,7 +76,7 @@
.button.logo-button { .button.logo-button {
flex: 0 auto; flex: 0 auto;
font-size: 14px; font-size: 14px;
background: $ui-highlight-color; background: darken($ui-highlight-color, 2%);
color: $primary-text-color; color: $primary-text-color;
text-transform: none; text-transform: none;
line-height: 1.2; line-height: 1.2;
@ -100,7 +100,7 @@
&:active, &:active,
&:focus, &:focus,
&:hover { &:hover {
background: lighten($ui-highlight-color, 10%); background: $ui-highlight-color;
} }
&:disabled, &:disabled,
@ -267,7 +267,7 @@ a.button.logo-button {
display: block; display: block;
font-size: 15px; font-size: 15px;
line-height: 20px; line-height: 20px;
color: lighten($ui-highlight-color, 8%); color: $highlight-text-color;
border: 0; border: 0;
background: transparent; background: transparent;
padding: 0; padding: 0;

View file

@ -34,7 +34,7 @@ $primary-text-color: $white !default;
$darker-text-color: $ui-primary-color !default; $darker-text-color: $ui-primary-color !default;
$dark-text-color: $ui-base-lighter-color !default; $dark-text-color: $ui-base-lighter-color !default;
$secondary-text-color: $ui-secondary-color !default; $secondary-text-color: $ui-secondary-color !default;
$highlight-text-color: $ui-highlight-color !default; $highlight-text-color: lighten($ui-highlight-color, 8%) !default;
$action-button-color: $ui-base-lighter-color !default; $action-button-color: $ui-base-lighter-color !default;
$passive-text-color: $gold-star !default; $passive-text-color: $gold-star !default;
$active-passive-text-color: $success-green !default; $active-passive-text-color: $success-green !default;