Skip to content

Commit

Permalink
update styles
Browse files Browse the repository at this point in the history
  • Loading branch information
bguzryanto committed Feb 18, 2020
1 parent c832983 commit d121c8c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
21 changes: 18 additions & 3 deletions components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Menu from "./Menu";
const Layout = styled.div`
max-width: 70rem;
text-align: justify;
font-family: "Roboto Mono", monospace;
font-size: 1.6rem;
${breakpoint("mobile")`
margin: 2.5rem 2rem 0 2rem;
Expand All @@ -16,9 +16,9 @@ const Layout = styled.div`
${breakpoint("desktop")`
margin: 7.5rem 0 0 7.5rem;
`};
p {
font-size: 1.35rem;
font-size: 2rem;
line-height: 2.2rem;
color: #000;
text-align: justify;
Expand All @@ -35,12 +35,27 @@ const Layout = styled.div`
ul li {
font-weight: normal;
${breakpoint("desktop")`
font-size: 1.6rem;
line-height: 2.9rem;
`}
}
a {
text-decoration: underline;
color: rgb(220, 40, 40);
}
@media (prefers-color-scheme: dark) {
p {
color: #ddd;
}
ul li a:active {
color: #fff;
}
}
`;

export default ({ children }) => (
Expand Down
12 changes: 9 additions & 3 deletions pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ const GlobalStyle = createGlobalStyle`
background-color: rgba(255, 255, 255, 1);
}
h1, h2,h3,h4, h5, h6 {
font-family: "europa",sans-serif;
@media (prefers-color-scheme: dark) {
html {
color: #fff;
background-color: #222;
}
}
h1, h2, h3, h4, h5, h6 {
}
p {
Expand Down Expand Up @@ -64,7 +70,7 @@ export default class MyDocument extends Document {
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<link href="https://fonts.googleapis.com/css?family=Libre+Baskerville|Roboto+Mono&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css?family=Libre+Baskerville|Roboto+Mono&display=fallback" rel="stylesheet" />
<GlobalStyle />
{this.props.style}
<script
Expand Down

0 comments on commit d121c8c

Please sign in to comment.