|
@@ -2,33 +2,41 @@ import theme from './theme'
|
|
import css from 'styled-jsx/css'
|
|
import css from 'styled-jsx/css'
|
|
|
|
|
|
const GlobalStyle = css.global`
|
|
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');
|
|
@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 {
|
|
html {
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
- font-size: 12px;
|
|
|
|
|
|
+ font-family: 'Roboto', sans-serif;
|
|
|
|
+ font-weight: 300;
|
|
|
|
+ /*font-size: 12px;*/
|
|
}
|
|
}
|
|
|
|
|
|
*, *:before, *:after {
|
|
*, *:before, *:after {
|
|
box-sizing: inherit;
|
|
box-sizing: inherit;
|
|
}
|
|
}
|
|
|
|
|
|
-body #__next {
|
|
|
|
|
|
+#__next {
|
|
display: grid;
|
|
display: grid;
|
|
- grid-template-areas:
|
|
|
|
|
|
+ grid-template-areas:
|
|
"header"
|
|
"header"
|
|
"nav"
|
|
"nav"
|
|
"main"
|
|
"main"
|
|
"footer";
|
|
"footer";
|
|
grid-template-rows: auto auto 1fr minmax(180px, auto);
|
|
grid-template-rows: auto auto 1fr minmax(180px, auto);
|
|
- padding: 0;
|
|
|
|
- margin: 0;
|
|
|
|
- font-size: 1.5rem;
|
|
|
|
- line-height: 2;
|
|
|
|
- font-family: 'Roboto', sans-serif;
|
|
|
|
- font-weight: 300;
|
|
|
|
|
|
+
|
|
max-width: ${theme.maxWidth};
|
|
max-width: ${theme.maxWidth};
|
|
|
|
+ min-height: 100vh;
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
|
|
+
|
|
|
|
+ background: ${theme.colors.offWhite};
|
|
|
|
+ color: ${theme.colors.black};
|
|
|
|
+ box-shadow: ${theme.bs};
|
|
}
|
|
}
|
|
|
|
|
|
@media (min-width: 500px) {
|
|
@media (min-width: 500px) {
|
|
@@ -42,32 +50,23 @@ body #__next {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-header {
|
|
|
|
- grid-area: header;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-nav {
|
|
|
|
- grid-area: nav;
|
|
|
|
-}
|
|
|
|
|
|
+header { grid-area: header; }
|
|
|
|
+nav { grid-area: nav; }
|
|
|
|
+main { grid-area: main; }
|
|
|
|
+footer { grid-area: footer; }
|
|
|
|
|
|
-main {
|
|
|
|
- grid-area: main;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-footer {
|
|
|
|
- grid-area: footer;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-#__next {
|
|
|
|
- background: ${theme.colors.offWhite};
|
|
|
|
- color: ${theme.colors.black};
|
|
|
|
- box-shadow: ${theme.bs};
|
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
+/* Use bold font for headers */
|
|
h1, h2, h3, h4, h5, h6 {
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-weight: 900;
|
|
font-weight: 900;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+/* Use monospace font for pre */
|
|
|
|
+pre {
|
|
|
|
+ font-family: 'Roboto Mono', monospace;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/*
|
|
button {
|
|
button {
|
|
font-weight: 900;
|
|
font-weight: 900;
|
|
background: ${theme.colors.darkblue};
|
|
background: ${theme.colors.darkblue};
|
|
@@ -84,11 +83,7 @@ textarea {
|
|
padding: 6px;
|
|
padding: 6px;
|
|
margin: 0 8px;
|
|
margin: 0 8px;
|
|
background: transparent;
|
|
background: transparent;
|
|
-}
|
|
|
|
-
|
|
|
|
-pre {
|
|
|
|
- font-family: 'Roboto Mono', monospace;
|
|
|
|
-}
|
|
|
|
|
|
+}*/
|
|
`
|
|
`
|
|
|
|
|
|
export default GlobalStyle
|
|
export default GlobalStyle
|