51 lines
859 B
JavaScript
51 lines
859 B
JavaScript
import { css } from 'styled-components';
|
|
import remcalc from 'remcalc';
|
|
|
|
export default ({ theme }) => css`
|
|
@import url('${theme.font.href()}');
|
|
|
|
[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
* {
|
|
font-family: ${
|
|
theme.font.family
|
|
}, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica, sans-serif;
|
|
font-weight: ${theme.font.weight.normal};
|
|
}
|
|
|
|
html {
|
|
line-height: 1.15;
|
|
text-size-adjust: 100%;
|
|
}
|
|
|
|
body {
|
|
font-size: 15px;
|
|
margin: 0;
|
|
padding: 0;
|
|
background: ${theme.background};
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#root {
|
|
height: 100%;
|
|
}
|
|
|
|
body > #root {
|
|
display: flex;
|
|
flex-flow: column;
|
|
}
|
|
|
|
.CodeMirror,
|
|
.ReactCodeMirror {
|
|
height: 100% !important;
|
|
}
|
|
|
|
.CodeMirror {
|
|
border: solid 1px ${theme.grey};
|
|
margin: ${remcalc(8)} 0 ${remcalc(8)} 0;
|
|
}
|
|
`;
|