mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 05:22:59 +00:00
Style code blocks (todo: test them in light mode)
This commit is contained in:
parent
30cbca1b13
commit
209122fabd
3 changed files with 10 additions and 2 deletions
|
@ -337,7 +337,7 @@
|
|||
"version": "0.10",
|
||||
"author": "Emanuil Rusev & Starbeamrainbowlabs",
|
||||
"description": "An upgraded (now default!) parser based on Emanuil Rusev's Parsedown Extra PHP library (https:\/\/github.com\/erusev\/parsedown-extra), which is licensed MIT. Please be careful, as this module adds some weight to your installation.",
|
||||
"lastupdate": 1571586164,
|
||||
"lastupdate": 1571590586,
|
||||
"optional": false,
|
||||
"extra_data": {
|
||||
"Parsedown.php": "https:\/\/raw.githubusercontent.com\/erusev\/parsedown\/fe7a50eceb4a3c867cc9fa9c0aa906b1067d1955\/Parsedown.php",
|
||||
|
|
|
@ -798,6 +798,12 @@ class PeppermintParsedown extends ParsedownExtreme
|
|||
}
|
||||
}
|
||||
|
||||
protected function blockFencedCodeComplete($block) {
|
||||
$result = parent::blockFencedCodeComplete($block);
|
||||
error_log("[code block] " . var_export($block, true));
|
||||
return $result;
|
||||
}
|
||||
|
||||
/*
|
||||
* ██ ██ ███████ █████ ██████ ███████ ██████
|
||||
* ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
:root {
|
||||
--bg-back: #eee8f2;
|
||||
--bg-page: #faf8fb;
|
||||
--bg-page-inset: #faf8fb;
|
||||
|
||||
--bg-comments-1: hsl(31, 64%, 85%);
|
||||
--bg-comments-2: hsla(27, 92%, 68%, 0.64);
|
||||
|
@ -61,6 +62,7 @@
|
|||
:root {
|
||||
--bg-back: hsl(270, 29%, 28%);
|
||||
--bg-page: hsl(273, 15%, 16%);
|
||||
--bg-page-inset: hsl(273, 20%, 20%);
|
||||
|
||||
--bg-comments-1: hsl(263, 25%, 16%);
|
||||
--bg-comments-2: hsla(264, 45%, 16%, 0.64);
|
||||
|
@ -165,7 +167,7 @@ main:not(.printable) { position: relative; z-index: 1000; padding: 2em 2em 0.5em
|
|||
|
||||
blockquote { padding-left: 1em; border-left: 0.2em solid var(--accent-a3); border-radius: 0.2rem; }
|
||||
|
||||
pre { white-space: pre-wrap; }
|
||||
pre { white-space: pre-wrap; padding: 0.3em 0.5em; background: var(--bg-page-inset); border-radius: 0.25em; box-shadow: inset 0 0 0.5em var(--shadow); }
|
||||
|
||||
a { cursor: pointer; }
|
||||
a:focus { outline-width: 0.1em; }
|
||||
|
|
Loading…
Reference in a new issue