joyent-portal/packages/ui-toolkit/src/base/global.js

43 lines
715 B
JavaScript
Raw Normal View History

import { css } from 'styled-components';
import { fonts, loadedFontFamily, unloadedFontFamily } from '../typography';
export default ({ theme }) => css`
${fonts.libreFranklin.normal};
${fonts.libreFranklin.medium};
${fonts.libreFranklin.semibold};
[hidden] {
display: none;
}
html {
line-height: 1.15;
text-size-adjust: 100%;
}
body {
font-size: 15px;
margin: 0;
padding: 0;
background: ${theme.background};
${unloadedFontFamily};
}
2017-09-27 17:22:01 +03:00
html, body, #root {
height: 100%;
}
.fonts-loaded body {
${loadedFontFamily};
}
2017-09-27 17:22:01 +03:00
.CodeMirror, .ReactCodeMirror {
height: 100% !important;
}
.CodeMirror {
border: solid 1px ${theme.grey};
}
`;