Dark Mode (#912)

closes #704
This commit is contained in:
Tom Moor
2019-03-12 21:35:35 -07:00
committed by GitHub
parent 6445da33db
commit 59c82f1f06
46 changed files with 648 additions and 252 deletions

View File

@@ -1,6 +1,5 @@
// @flow
import * as React from 'react';
import { lighten } from 'polished';
import styled, { withTheme } from 'styled-components';
import { SearchIcon } from 'outline-icons';
import Flex from 'shared/components/Flex';
@@ -26,8 +25,8 @@ class SearchField extends React.Component<Props> {
<Field align="center">
<StyledIcon
type="Search"
size={48}
color={lighten(0.1, this.props.theme.slate)}
size={46}
color={this.props.theme.textTertiary}
onClick={this.focusInput}
/>
<StyledInput
@@ -56,24 +55,25 @@ const StyledInput = styled.input`
font-weight: 400;
outline: none;
border: 0;
background: ${props => props.theme.smoke};
background: ${props => props.theme.sidebarBackground};
border-radius: 4px;
color: ${props => props.theme.text};
::-webkit-search-cancel-button {
-webkit-appearance: searchfield-cancel-button;
}
::-webkit-input-placeholder {
color: ${props => props.theme.slate};
color: ${props => props.theme.placeholder};
}
:-moz-placeholder {
color: ${props => props.theme.slate};
color: ${props => props.theme.placeholder};
}
::-moz-placeholder {
color: ${props => props.theme.slate};
color: ${props => props.theme.placeholder};
}
:-ms-input-placeholder {
color: ${props => props.theme.slate};
color: ${props => props.theme.placeholder};
}
`;