Skip to content

Commit

Permalink
Add colors for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanbruegge committed Apr 25, 2024
1 parent b522150 commit 5cf3b22
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.PHONY: all watch

all:
cabal run blog

watch:
make all
(cd build && browser-sync start --server -w) &
while inotifywait -e modify -r ./articles; do \
make all; \
done

2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
haskell.compiler.ghc96
pkg-config
zlib.dev
inotify-tools
nodePackages.browser-sync
];
};
}
Expand Down
22 changes: 18 additions & 4 deletions static/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ html {
--highlight-color: #9861c1;

--solarized-green: #859900;
--solarized-yellow: #b58900;
--solarized-function: #268bd2;
--solarized-variable: #cb4b16;
--solarized-string: #2aa198;
--solarized-comment: #586e75;
}

body {
Expand Down Expand Up @@ -131,21 +133,27 @@ article > header ul {
padding: 0 0.2em;
}

p code {
article ul {
margin-left: 1em;
margin-bottom: 0.5em;
margin-top: 0.5em;
}

p code, li code {
background: var(--hover-color);
padding: 0.1em;
border-radius: 0.2em;
}

pre {
margin: 0.5em;
padding: 0.2em;
margin: 1em 0.5em;
padding: 0.8em 0.4em;
background: rgb(0, 43, 54);
overflow-x: scroll;
color: var(--solarized-function);
}

.kw, .cf {
.kw, .cf, .op {
color: var(--solarized-green);
}
.fu {
Expand All @@ -154,6 +162,12 @@ pre {
.st {
color: var(--solarized-string);
}
.dt {
color: var(--solarized-yellow);
}
.co {
color: var(--solarized-comment);
}

p + p {
margin-top: 0.8em;
Expand Down

0 comments on commit 5cf3b22

Please sign in to comment.