Commit b3a23663 authored by Thibaut Girka's avatar Thibaut Girka
Browse files

[Glitch] Add color variables of texts for better accesibility

Port 74dae945 and related to glitch-soc
parent 390cfdef
......@@ -169,7 +169,7 @@ $small-breakpoint: 960px;
background: $ui-base-color;
font-size: 12px;
font-weight: 500;
color: $ui-primary-color;
color: $darker-text-color;
text-transform: uppercase;
position: relative;
z-index: 1;
......@@ -186,10 +186,10 @@ $small-breakpoint: 960px;
font-size: 16px;
line-height: 30px;
margin-bottom: 12px;
color: $ui-primary-color;
color: $darker-text-color;
a {
color: $ui-highlight-color;
color: $highlight-text-color;
text-decoration: underline;
}
}
......@@ -202,11 +202,11 @@ $small-breakpoint: 960px;
text-align: center;
font-size: 12px;
line-height: 18px;
color: $ui-primary-color;
color: $darker-text-color;
margin-bottom: 0;
a {
color: $ui-highlight-color;
color: $highlight-text-color;
text-decoration: underline;
}
}
......@@ -225,7 +225,7 @@ $small-breakpoint: 960px;
font-family: inherit;
font-size: inherit;
line-height: inherit;
color: lighten($ui-primary-color, 10%);
color: lighten($darker-text-color, 10%);
}
h1 {
......@@ -234,14 +234,14 @@ $small-breakpoint: 960px;
line-height: 30px;
font-weight: 500;
margin-bottom: 20px;
color: $ui-secondary-color;
color: $secondary-text-color;
small {
font-family: 'mastodon-font-sans-serif', sans-serif;
display: block;
font-size: 18px;
font-weight: 400;
color: $ui-base-lighter-color;
color: lighten($darker-text-color, 10%);
}
}
......@@ -251,7 +251,7 @@ $small-breakpoint: 960px;
line-height: 26px;
font-weight: 500;
margin-bottom: 20px;
color: $ui-secondary-color;
color: $secondary-text-color;
}
h3 {
......@@ -260,7 +260,7 @@ $small-breakpoint: 960px;
line-height: 24px;
font-weight: 500;
margin-bottom: 20px;
color: $ui-secondary-color;
color: $secondary-text-color;
}
h4 {
......@@ -269,7 +269,7 @@ $small-breakpoint: 960px;
line-height: 24px;
font-weight: 500;
margin-bottom: 20px;
color: $ui-secondary-color;
color: $secondary-text-color;
}
h5 {
......@@ -278,7 +278,7 @@ $small-breakpoint: 960px;
line-height: 24px;
font-weight: 500;
margin-bottom: 20px;
color: $ui-secondary-color;
color: $secondary-text-color;
}
h6 {
......@@ -287,7 +287,7 @@ $small-breakpoint: 960px;
line-height: 24px;
font-weight: 500;
margin-bottom: 20px;
color: $ui-secondary-color;
color: $secondary-text-color;
}
ul,
......@@ -349,10 +349,10 @@ $small-breakpoint: 960px;
font-weight: 400;
font-size: 16px;
line-height: 30px;
color: $ui-primary-color;
color: $darker-text-color;
a {
color: $ui-highlight-color;
color: $highlight-text-color;
text-decoration: underline;
}
}
......@@ -400,7 +400,7 @@ $small-breakpoint: 960px;
font-size: 14px;
&:hover {
color: $ui-secondary-color;
color: $secondary-text-color;
}
}
......@@ -473,10 +473,10 @@ $small-breakpoint: 960px;
font-weight: 400;
font-size: 16px;
line-height: 30px;
color: $ui-primary-color;
color: $darker-text-color;
a {
color: $ui-highlight-color;
color: $highlight-text-color;
text-decoration: underline;
}
}
......@@ -512,7 +512,7 @@ $small-breakpoint: 960px;
span {
&:last-child {
color: $ui-secondary-color;
color: $secondary-text-color;
}
}
......@@ -543,7 +543,7 @@ $small-breakpoint: 960px;
font-size: 14px;
line-height: 24px;
font-weight: 500;
color: $ui-primary-color;
color: $darker-text-color;
padding-bottom: 5px;
margin-bottom: 15px;
border-bottom: 1px solid lighten($ui-base-color, 4%);
......@@ -554,7 +554,7 @@ $small-breakpoint: 960px;
a,
span {
font-weight: 400;
color: darken($ui-primary-color, 10%);
color: darken($darker-text-color, 10%);
}
a {
......@@ -597,7 +597,7 @@ $small-breakpoint: 960px;
.username {
display: block;
color: $ui-primary-color;
color: $darker-text-color;
}
}
}
......@@ -722,7 +722,7 @@ $small-breakpoint: 960px;
}
p a {
color: $ui-secondary-color;
color: $secondary-text-color;
}
h1 {
......@@ -731,10 +731,10 @@ $small-breakpoint: 960px;
margin-bottom: 0;
small {
color: $ui-primary-color;
color: $darker-text-color;
span {
color: $ui-secondary-color;
color: $secondary-text-color;
}
}
}
......@@ -841,7 +841,7 @@ $small-breakpoint: 960px;
}
a {
color: $ui-secondary-color;
color: $secondary-text-color;
text-decoration: none;
}
}
......@@ -881,7 +881,7 @@ $small-breakpoint: 960px;
.fa {
display: block;
color: $ui-primary-color;
color: $darker-text-color;
font-size: 48px;
}
}
......@@ -889,7 +889,7 @@ $small-breakpoint: 960px;
.text {
font-size: 16px;
line-height: 30px;
color: $ui-primary-color;
color: $darker-text-color;
h6 {
font-size: inherit;
......@@ -907,10 +907,10 @@ $small-breakpoint: 960px;
font-weight: 400;
font-size: 16px;
line-height: 30px;
color: $ui-primary-color;
color: $darker-text-color;
a {
color: $ui-highlight-color;
color: $highlight-text-color;
text-decoration: underline;
}
}
......@@ -918,7 +918,7 @@ $small-breakpoint: 960px;
.footer-links {
padding-bottom: 50px;
text-align: right;
color: $ui-base-lighter-color;
color: $dark-text-color;
p {
font-size: 14px;
......@@ -933,7 +933,7 @@ $small-breakpoint: 960px;
&__footer {
margin-top: 10px;
text-align: center;
color: $ui-base-lighter-color;
color: $dark-text-color;
p {
font-size: 14px;
......
......@@ -75,7 +75,7 @@
small {
display: block;
font-size: 14px;
color: $ui-highlight-color;
color: $highlight-text-color;
font-weight: 400;
overflow: hidden;
text-overflow: ellipsis;
......@@ -116,7 +116,7 @@
width: 33.3%;
box-sizing: border-box;
flex: 0 0 auto;
color: $ui-primary-color;
color: $darker-text-color;
padding: 5px 10px 0;
margin-bottom: 10px;
border-right: 1px solid lighten($ui-base-color, 4%);
......@@ -146,7 +146,7 @@
&.active {
&::after {
border-bottom: 4px solid $ui-highlight-color;
border-bottom: 4px solid $highlight-text-color;
opacity: 1;
}
}
......@@ -182,7 +182,7 @@
line-height: 18px;
padding: 0 15px;
text-align: center;
color: $ui-secondary-color;
color: $secondary-text-color;
}
@media screen and (max-width: 480px) {
......@@ -260,7 +260,7 @@
.current {
background: $simple-background-color;
border-radius: 100px;
color: $ui-base-color;
color: $inverted-text-color;
cursor: default;
margin: 0 10px;
}
......@@ -272,7 +272,7 @@
.older,
.newer {
text-transform: uppercase;
color: $ui-secondary-color;
color: $secondary-text-color;
}
.older {
......@@ -297,7 +297,7 @@
.disabled {
cursor: default;
color: lighten($ui-base-color, 10%);
color: lighten($inverted-text-color, 10%);
}
@media screen and (max-width: 700px) {
......@@ -336,7 +336,7 @@
width: 335px;
background: $simple-background-color;
border-radius: 4px;
color: $ui-base-color;
color: $inverted-text-color;
margin: 0 5px 10px;
position: relative;
......@@ -348,7 +348,7 @@
overflow: hidden;
height: 100px;
border-radius: 4px 4px 0 0;
background-color: lighten($ui-base-color, 4%);
background-color: lighten($inverted-text-color, 4%);
background-size: cover;
background-position: center;
position: relative;
......@@ -399,7 +399,7 @@
a {
display: block;
color: $ui-base-color;
color: $inverted-text-color;
text-decoration: none;
text-overflow: ellipsis;
overflow: hidden;
......@@ -421,7 +421,7 @@
}
.username {
color: lighten($ui-base-color, 34%);
color: $lighter-text-color;
font-size: 14px;
font-weight: 400;
}
......@@ -429,7 +429,7 @@
.account__header__content {
padding: 10px 15px;
padding-top: 15px;
color: lighten($ui-base-color, 26%);
color: $lighter-text-color;
word-wrap: break-word;
overflow: hidden;
text-overflow: ellipsis;
......@@ -441,7 +441,7 @@
.nothing-here {
width: 100%;
display: block;
color: $ui-primary-color;
color: $light-text-color;
font-size: 14px;
font-weight: 500;
text-align: center;
......@@ -502,7 +502,7 @@
span {
font-size: 14px;
color: $ui-primary-color;
color: $light-text-color;
}
}
......@@ -517,7 +517,7 @@
.account__header__content {
font-size: 14px;
color: $ui-base-color;
color: $inverted-text-color;
}
}
......@@ -531,18 +531,18 @@
display: inline-block;
padding: 15px;
text-decoration: none;
color: $ui-highlight-color;
color: $highlight-text-color;
text-transform: uppercase;
font-weight: 500;
&:hover,
&:active,
&:focus {
color: lighten($ui-highlight-color, 8%);
color: lighten($highlight-text-color, 8%);
}
&.active {
color: $ui-base-color;
color: $inverted-text-color;
cursor: default;
}
}
......
......@@ -33,7 +33,7 @@
a {
display: block;
padding: 15px;
color: rgba($primary-text-color, 0.7);
color: $darker-text-color;
text-decoration: none;
transition: all 200ms linear;
border-radius: 4px 0 0 4px;
......@@ -90,7 +90,7 @@
padding-left: 25px;
h2 {
color: $ui-secondary-color;
color: $secondary-text-color;
font-size: 24px;
line-height: 28px;
font-weight: 400;
......@@ -98,7 +98,7 @@
}
h3 {
color: $ui-secondary-color;
color: $secondary-text-color;
font-size: 20px;
line-height: 28px;
font-weight: 400;
......@@ -109,7 +109,7 @@
text-transform: uppercase;
font-size: 13px;
font-weight: 500;
color: $ui-primary-color;
color: $darker-text-color;
padding-bottom: 8px;
margin-bottom: 8px;
border-bottom: 1px solid lighten($ui-base-color, 8%);
......@@ -117,7 +117,7 @@
h6 {
font-size: 16px;
color: $ui-secondary-color;
color: $secondary-text-color;
line-height: 28px;
font-weight: 400;
}
......@@ -125,7 +125,7 @@
& > p {
font-size: 14px;
line-height: 18px;
color: $ui-secondary-color;
color: $secondary-text-color;
margin-bottom: 20px;
strong {
......@@ -153,10 +153,10 @@
}
.muted-hint {
color: $ui-primary-color;
color: $darker-text-color;
a {
color: $ui-highlight-color;
color: $highlight-text-color;
}
}
......@@ -253,7 +253,7 @@
a {
display: inline-block;
color: rgba($primary-text-color, 0.7);
color: $darker-text-color;
text-decoration: none;
text-transform: uppercase;
font-size: 12px;
......@@ -266,7 +266,7 @@
}
&.selected {
color: $ui-highlight-color;
color: $highlight-text-color;
border-bottom: 2px solid $ui-highlight-color;
}
}
......@@ -307,7 +307,7 @@
font-weight: 500;
font-size: 14px;
line-height: 18px;
color: $ui-secondary-color;
color: $secondary-text-color;
@each $lang in $cjk-langs {
&:lang(#{$lang}) {
......@@ -364,7 +364,7 @@
padding: 7px 4px;
margin-bottom: 10px;
font-size: 16px;
color: $ui-base-color;
color: $inverted-text-color;
display: block;
width: 100%;
outline: 0;
......@@ -418,7 +418,7 @@
font-size: 14px;
a {
color: $classic-highlight-color;
color: $highlight-text-color;
text-decoration: none;
&:hover {
......@@ -441,7 +441,7 @@
align-items: center;
padding: 10px;
background: $ui-base-color;
color: $ui-primary-color;
color: $darker-text-color;
border-radius: 4px 4px 0 0;
font-size: 14px;
position: relative;
......@@ -468,14 +468,14 @@
}
&__timestamp {
color: lighten($ui-base-color, 34%);
color: $dark-text-color;
}
&__extras {
background: lighten($ui-base-color, 6%);
border-radius: 0 0 4px 4px;
padding: 10px;
color: $ui-primary-color;
color: $darker-text-color;
font-family: 'mastodon-font-monospace', monospace;
font-size: 12px;
word-wrap: break-word;
......@@ -485,7 +485,7 @@
&__icon {
font-size: 28px;
margin-right: 10px;
color: lighten($ui-base-color, 34%);
color: $dark-text-color;
}
&__icon__overlay {
......@@ -501,7 +501,7 @@
}
&.negative {
background: $error-red;
background: lighten($error-red, 12%);
}
&.neutral {
......@@ -512,17 +512,17 @@
a,
.username,
.target {
color: $ui-secondary-color;
color: $secondary-text-color;
text-decoration: none;
font-weight: 500;
}
.diff-old {
color: $error-red;
color: lighten($error-red, 12%);
}
.diff-neutral {
color: $ui-secondary-color;
color: $secondary-text-color;
}
.diff-new {
......
......@@ -71,7 +71,7 @@ body {
&.error {
position: absolute;
text-align: center;
color: $ui-primary-color;
color: $darker-text-color;
background: $ui-base-color;
width: 100%;
height: 100%;
......
......@@ -2,7 +2,7 @@
h1 {
font-size: 24px;
line-height: 28px;
color: $ui-primary-color;
color: $darker-text-color;
font-weight: 500;
margin-bottom: 20px;
padding: 0 10px;
......@@ -20,7 +20,7 @@
small {
font-weight: 400;
color: $ui-secondary-color;
color: $secondary-text-color;
}
img {
......
......@@ -7,7 +7,7 @@
.account__display-name {
flex: 1 1 auto;
display: block;
color: $ui-primary-color;
color: $darker-text-color;
overflow: hidden;
text-decoration: none;
font-size: 14px;
......@@ -102,7 +102,7 @@
}
.account__header__username {
color: $ui-primary-color;
color: $secondary-text-color;
}
}
......@@ -112,7 +112,7 @@
}
.account__header__content {
color: $ui-secondary-color;
color: $secondary-text-color;
}
.account__header__display-name {
......@@ -127,7 +127,7 @@
}
.account__header__username {
color: $ui-highlight-color;