Browse Source
remove grayscale treatment (#3024 )
As per https://twitter.com/sliminality/status/1269033413488459776 , there's feedback that the contrast isn't great for reading. I myself have trouble with low contrast text, (and long sightedness), and I thought it was fine. I was clearly mistaken. Removing this for now to get back to a non harmful position, and we can decide later what to do instead.
main
Sunil Pai
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with
2 additions and
18 deletions
src/components/Container/Container.js
src/components/LayoutFooter/FooterNav.js
src/components/LayoutHeader/Header.js
src/components/MarkdownPage/MarkdownPage.js
src/pages/index.js
src/templates/components/NavigationFooter/NavigationFooter.js
src/templates/components/Sidebar/Sidebar.js
src/theme.js
@ -15,20 +15,13 @@ import type {Node} from 'react';
* This component wraps page content sections ( eg header , footer , main ) .
* It provides consistent margin and max width behavior .
* /
const Container = ( {
children ,
grayscale ,
} : {
children : Node ,
grayscale : boolean ,
} ) => (
const Container = ( { children } : { children : Node } ) => (
< div
css = { {
paddingLeft : 20 ,
paddingRight : 20 ,
marginLeft : 'auto' ,
marginRight : 'auto' ,
filter : grayscale ? 'grayscale(100%)' : '' ,
[ media . greaterThan ( 'medium' ) ] : {
width : '90%' ,
} ,
@ -34,7 +34,6 @@ const FooterNav = ({children, title, layoutHasSidebar = false}: Props) => (
css = { {
display : 'inline-flex' ,
flexDirection : 'column' ,
filter : 'grayscale(100%)' ,
} } >
{ children }
< / d i v >
@ -61,7 +61,7 @@ const Header = ({location}: {location: Location}) => (
< / a >
< / d i v >
< / C o n t a i n e r >
< Container grayscale = { true } >
< Container >
< div
css = { {
display : 'flex' ,
@ -87,7 +87,6 @@ const MarkdownPage = ({
< div
css = { {
marginTop : 15 ,
filter : 'grayscale(100%)' , // BLM
} } >
{ date } { ' ' }
{ hasAuthors && (
@ -57,7 +57,6 @@ class Home extends Component {
css = { {
width : '100%' ,
marginTop : 60 , // BLM
filter : 'grayscale(100%)' , // BLM
} } >
< header
css = { {
@ -15,8 +15,6 @@ const NavigationFooter = ({next, prev, location}) => {
return (
< div
css = { {
filter : 'grayscale(100%)' , // BLM
background : colors . dark ,
color : colors . white ,
paddingTop : 50 ,
@ -37,8 +37,6 @@ class Sidebar extends Component {
direction = "column"
halign = "stretch"
css = { {
filter : 'grayscale(100%)' , // BLM
width : '100%' ,
paddingLeft : 20 ,
position : 'relative' ,
@ -132,8 +132,6 @@ const sharedStyles = {
} ,
} ,
content : {
filter : 'grayscale(100%)' , // BLM
marginTop : 40 ,
marginBottom : 120 ,