s/fontFamily/fontSans/ (#3968)

This commit is contained in:
Jaco Greeff 2020-11-04 15:11:02 +01:00 committed by GitHub
parent 37bfa64a28
commit 5070ecdd10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 14 additions and 14 deletions

View File

@ -20,8 +20,8 @@ export const darkTheme: ThemeDef = {
colorError: 'rgba(255, 0, 0, 0.85)',
colorLabel: 'rgba(244, 242, 240, 0.45)',
colorSummary: 'rgba(244, 242, 240, 0.75)',
fontFamily: '"Nunito Sans", sans-serif',
fontMono: 'monospace',
fontSans: '"Nunito Sans", sans-serif',
theme: 'dark'
};
@ -42,7 +42,7 @@ export const lightTheme: ThemeDef = {
colorError: 'rgba(139, 0, 0)',
colorLabel: 'rgba(78, 78, 78, 0.66)',
colorSummary: 'rgba(0, 0, 0, 0.6)',
fontFamily: '"Nunito Sans", sans-serif',
fontMono: 'monospace',
fontSans: '"Nunito Sans", sans-serif',
theme: 'light'
};

View File

@ -27,7 +27,7 @@ function Foot ({ className = '', footer, isEmpty }: Props): React.ReactElement<P
export default React.memo(styled(Foot)(({ theme }: ThemeProps) => `
td {
color: rgba(${theme.theme === 'dark' ? '254, 240, 240' : '78, 78, 78'}, 0.66);
font-family: ${theme.fontFamily};
font-family: ${theme.fontSans};
font-weight: 400;
padding: 0.75rem 1rem 0.25rem;
text-align: right;

View File

@ -53,7 +53,7 @@ export default React.memo(styled(Head)(({ theme }: ThemeProps) => `
z-index: 1;
th {
font-family: ${theme.fontFamily};
font-family: ${theme.fontSans};
font-weight: 400;
padding: 0.75rem 1rem 0.25rem;
text-align: right;

View File

@ -50,9 +50,9 @@ export default css`
color: #2e86ab !important;
background: none !important;
}
button.ui--Button {
font-family: ${({ theme }: ThemeProps) => theme.fontFamily};
font-family: ${({ theme }: ThemeProps) => theme.fontSans};
}
.editable {

View File

@ -215,7 +215,7 @@ export default createGlobalStyle<Props & ThemeProps>`
#root {
background: ${({ theme }) => theme.bgPage};
color: ${({ theme }) => theme.color};
font-family: ${({ theme }) => theme.fontFamily};
font-family: ${({ theme }) => theme.fontSans};
height: 100%;
}
@ -300,7 +300,7 @@ export default createGlobalStyle<Props & ThemeProps>`
body {
height: 100%;
margin: 0;
font-family: ${({ theme }) => theme.fontFamily};
font-family: ${({ theme }) => theme.fontSans};
}
br {
@ -332,7 +332,7 @@ export default createGlobalStyle<Props & ThemeProps>`
h1, h2, h3, h4, h5 {
color: ${({ theme }) => theme.colorSummary};
font-family: ${({ theme }) => theme.fontFamily};
font-family: ${({ theme }) => theme.fontSans};
font-weight: 400;
}
@ -366,7 +366,7 @@ export default createGlobalStyle<Props & ThemeProps>`
box-sizing: border-box;
color: ${({ theme }) => theme.colorLabel};
display: block;
font-family: ${({ theme }) => theme.fontFamily};
font-family: ${({ theme }) => theme.fontSans};
font-size: 1rem;
font-weight: 400;
}

View File

@ -26,7 +26,7 @@ export default css`
.ui.selection.dropdown > input {
background: ${({ theme }: ThemeProps) => theme.bgInput};
color: ${({ theme }: ThemeProps) => theme.color};
font-family: ${({ theme }: ThemeProps) => theme.fontFamily};
font-family: ${({ theme }: ThemeProps) => theme.fontSans};
&:focus {
background: ${({ theme }: ThemeProps) => theme.bgInput};
@ -127,7 +127,7 @@ export default css`
background: ${({ theme }: ThemeProps) => theme.bgPage};
box-shadow: none;
color: ${({ theme }: ThemeProps) => theme.color};
font-family: ${({ theme }: ThemeProps) => theme.fontFamily};
font-family: ${({ theme }: ThemeProps) => theme.fontSans};
> .actions,
> .content {
@ -145,7 +145,7 @@ export default css`
background: transparent;
border-bottom: none;
color: ${({ theme }: ThemeProps) => theme.colorSummary};
font-family: ${({ theme }: ThemeProps) => theme.fontFamily};
font-family: ${({ theme }: ThemeProps) => theme.fontSans};
font-size: 1.75rem;
font-weight: 400;
line-height: 1.25rem;

View File

@ -142,7 +142,7 @@ export interface ThemeDef {
colorError: string;
colorLabel: string;
colorSummary: string;
fontFamily: string;
fontSans: string;
fontMono: string;
theme: 'dark' | 'light';
}