2017-05-18 21:21:33 +03:00
|
|
|
import { css } from 'styled-components';
|
2017-11-09 13:27:32 +02:00
|
|
|
import remcalc from 'remcalc';
|
2017-05-18 21:21:33 +03:00
|
|
|
|
2017-09-20 12:30:53 +03:00
|
|
|
export default ({ theme }) => css`
|
2017-11-23 14:18:38 +02:00
|
|
|
@import url('${theme.font.href()}');
|
2018-01-25 18:40:07 +02:00
|
|
|
@import url('${theme.monoFont.href()}');
|
2017-11-23 14:18:38 +02:00
|
|
|
|
2017-05-18 21:21:33 +03:00
|
|
|
[hidden] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-01-04 17:52:56 +02:00
|
|
|
html, body {
|
|
|
|
font-display: optional;
|
2018-01-19 19:37:31 +02:00
|
|
|
font-family: ${theme.font.families};
|
2017-11-23 14:18:38 +02:00
|
|
|
font-weight: ${theme.font.weight.normal};
|
|
|
|
}
|
|
|
|
|
2017-05-18 21:21:33 +03:00
|
|
|
html {
|
|
|
|
line-height: 1.15;
|
|
|
|
text-size-adjust: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
font-size: 15px;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
background: ${theme.background};
|
2018-01-16 17:34:54 +02:00
|
|
|
color: ${theme.text};
|
2018-05-17 16:47:13 +03:00
|
|
|
-webkit-font-smoothing: antialiased;
|
2017-09-20 12:30:53 +03:00
|
|
|
}
|
|
|
|
|
2017-09-27 17:44:57 +03:00
|
|
|
html,
|
|
|
|
body,
|
|
|
|
#root {
|
2018-03-06 03:47:30 +02:00
|
|
|
min-height: calc(100vh - ${remcalc(48)});
|
|
|
|
}
|
|
|
|
|
|
|
|
#header {
|
|
|
|
z-index: 9999;
|
2017-09-27 17:22:01 +03:00
|
|
|
}
|
|
|
|
|
2017-10-18 05:29:47 +03:00
|
|
|
body > #root {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
|
|
|
}
|
|
|
|
|
2018-05-25 18:27:05 +03:00
|
|
|
form {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2017-09-27 17:22:01 +03:00
|
|
|
.CodeMirror {
|
2018-03-21 19:35:51 +02:00
|
|
|
border: solid ${remcalc(1)} ${theme.grey};
|
2017-11-09 13:27:32 +02:00
|
|
|
margin: ${remcalc(8)} 0 ${remcalc(8)} 0;
|
2018-01-19 19:37:31 +02:00
|
|
|
font-family: "Roboto Mono", monospace !important;
|
2018-04-06 17:53:44 +03:00
|
|
|
height: ${remcalc(180)} !important;
|
2017-09-27 17:22:01 +03:00
|
|
|
}
|
2018-04-12 12:53:00 +03:00
|
|
|
|
|
|
|
[name=user-script] .CodeMirror {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2018-04-06 17:53:44 +03:00
|
|
|
|
|
|
|
form {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2017-05-18 21:21:33 +03:00
|
|
|
`;
|