The old Pelican theme I used to use for mcol.xyz
git clone https://mcol.xyz/code/rice-theme
Log | Files | Refs | README

commit 030bc14dc261771963faf64aab672d24e485bb11
parent 8930d86fa368fe1ba322c29aa39defc322d77f3c
Author: mcol <mcol@posteo.net>
Date:   Sun,  2 Aug 2020 17:34:27 +0100

code block styling

Diffstat:
Mstatic/css/main.css | 50+++++++++++++++++++++++++++++---------------------
1 file changed, 29 insertions(+), 21 deletions(-)

diff --git a/static/css/main.css b/static/css/main.css @@ -11,13 +11,13 @@ --trim: #5D479D; /* purple */ /* code colours */ - --c0: #0e101c; /* dark */ - --c1: #ba6767; /* red */ - --c2: #72b978; /* green */ - --c3: #e5da63; /* yellow */ - --c4: #4b72c7; /* blue */ + --c0: #030405; /* dark */ + --c1: #8742a5; /* red */ + --c2: #e6df52; /* green */ + --c3: #406794; /* yellow */ + --c4: #8f4ff0; /* blue */ --c5: var(--trim); /* purple */ - --c6: #72eeee; /* cyan */ + --c6: var(--text2); /* cyan */ } @viewport { @@ -87,6 +87,7 @@ li { ::selection { background: var(--trim); + color: var(--bg); } a { @@ -218,14 +219,6 @@ h1 a:hover { font-style: italic; } -pre { - font-size: 1.1em; - letter-spacing: .015em; - white-space: pre-wrap; - word-wrap: break-word; - padding: 8px 24px; -} - code { font-size: 1.1em; padding: 3px 6px; @@ -300,10 +293,6 @@ img { white-space: nowrap; } -#cgit table#header td.main a { - color: #000; -} - #cgit table#header td.form { text-align: right; vertical-align: bottom; @@ -1147,10 +1136,29 @@ vertical-align: baseline; #cgit table.blob .kwd { color:#010181; } .highlight { - background-color: var(--alt-bg); - margin:1% 0; - padding:10px 8px; + white-space: pre-wrap; + word-wrap: break-word; + padding: 4px 18px; } + +#page pre { + overflow-x: auto; +} + +.linenodiv { + padding: 0 10px 0 50px; + color: var(--trim); + border-right: 2px solid var(--trim); +} + +code { + font-family: "Lucida Console", Monaco, monospace; + font-size: 0.85em; + background-color: var(--trim); + color: var(--bg); + padding: 2px 7px; +} + .err { color: var(--c1); } /* Error */ .o { color: var(--c1); } /* Operator */ .c { color: var(--c4); } /* Comment */