adjust theming

This commit is contained in:
2022-11-28 14:26:17 -06:00
parent e438c2e5ca
commit 0bf65d32b5
2 changed files with 25 additions and 6 deletions

View File

@@ -1,12 +1,20 @@
body { body {
font-size: calc(14px + 0.11vw); font-size: calc(14px + 0.11vw);
width: clamp(373px, 45vw, 50vw); width: clamp(373px, 60vw, 80vw);
color: black; color: #222222;
margin: auto; margin: auto;
padding: 2px; padding: 2px;
font-family: 'Helvetica Neue', 'Arial Nova', sans-serif; font-family: 'Helvetica Neue', 'Arial Nova', sans-serif;
} }
a {
color: teal;
}
a:visited {
color: darkgreen;
}
nav { nav {
font-size: calc(16px + 0.33vh); font-size: calc(16px + 0.33vh);
display: flex; display: flex;
@@ -27,10 +35,18 @@ nav > * {
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
html { html {
background-color: #222222; background-color: #222222;
} }
body * { body, body * {
color: lightgrey; color: lightgrey;
} }
a {
color: lightyellow;
}
a:visited {
color: cyan;
}
} }

View File

@@ -2,7 +2,10 @@ let render ~posts =
let open Database in let open Database in
<div> <div>
<h3>Blog</h3> <h3>Blog</h3>
<p>
The ramblings of a mad man.
I have an <a href="/blog/rss.xml">RSS feed</a> too. I have an <a href="/blog/rss.xml">RSS feed</a> too.
</p>
<br> <br>
</div> </div>
% posts |> List.iter begin fun (post : Blog_post.t) -> % posts |> List.iter begin fun (post : Blog_post.t) ->