1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- import theme from './theme'
- import css from 'styled-jsx/css'
- const GlobalStyle = css.global`
- /* normalize.css is imported in meta.js */
- @import url('https://fonts.googleapis.com/css?family=Roboto+Mono:300|Roboto:300,900&display=swap');
- /* Use border-box sizing instead of context-box.
- This includes border and padding in the calculation.
- Also define a default font. */
- html {
- box-sizing: border-box;
- font-family: 'Roboto', sans-serif;
- font-weight: 300;
- /*font-size: 12px;*/
- }
- *, *:before, *:after {
- box-sizing: inherit;
- }
- #__next {
- display: grid;
- grid-template-areas:
- "header"
- "nav"
- "main"
- "footer";
- grid-template-rows: auto auto 1fr minmax(180px, auto);
- max-width: ${theme.maxWidth};
- min-height: 100vh;
- margin: 0 auto;
- background: ${theme.colors.offWhite};
- color: ${theme.colors.black};
- box-shadow: ${theme.bs};
- }
- @media (min-width: 500px) {
- body #__next {
- grid-template-areas:
- "header nav"
- "main main"
- "footer footer";
- grid-template-columns: auto 1fr;
- grid-template-rows: auto 1fr minmax(180px, auto);
- }
- }
- header { grid-area: header; }
- nav { grid-area: nav; }
- main { grid-area: main; }
- footer { grid-area: footer; }
- /* Use bold font for headers */
- h1, h2, h3, h4, h5, h6 {
- font-weight: 900;
- }
- /* Use monospace font for pre */
- pre {
- font-family: 'Roboto Mono', monospace;
- }
- /*
- button {
- font-weight: 900;
- background: ${theme.colors.darkblue};
- color: ${theme.colors.lighterblue};
- border: 1px solid ${theme.colors.darkerblue};
- padding: 0.3em 1.8em;
- cursor: pointer;
- box-shadow: ${theme.bsSmall};
- }
- input,
- textarea {
- border: 1px solid ${theme.colors.lightgrey};
- padding: 6px;
- margin: 0 8px;
- background: transparent;
- }*/
- `
- export default GlobalStyle
|