summaryrefslogtreecommitdiffstats
path: root/assets/css/scopes
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-01-07 20:48:05 +0100
committerVolpeon <git@volpeon.ink>2021-01-07 20:48:05 +0100
commitf3e649f674b739a8f50460f809eb8df2c13ff576 (patch)
treea406fc9a1c4d539e250f9869e6c93e5398f733d6 /assets/css/scopes
parentSmall design adjustments, added support for code blocks marked as 'plain' (diff)
downloadvolpeon.ink-f3e649f674b739a8f50460f809eb8df2c13ff576.tar.gz
volpeon.ink-f3e649f674b739a8f50460f809eb8df2c13ff576.tar.bz2
volpeon.ink-f3e649f674b739a8f50460f809eb8df2c13ff576.zip
Optimized CSS for code blocks
Diffstat (limited to 'assets/css/scopes')
-rw-r--r--assets/css/scopes/_code.scss15
1 files changed, 4 insertions, 11 deletions
diff --git a/assets/css/scopes/_code.scss b/assets/css/scopes/_code.scss
index f024dbd..4a40d0f 100644
--- a/assets/css/scopes/_code.scss
+++ b/assets/css/scopes/_code.scss
@@ -1,22 +1,15 @@
1.s-code { 1.s-code {
2 pre, 2 &--highlight {
3 code { 3 pre {
4 color: var(--fg-lo); 4 color: var(--fg-lo);
5 }
5 } 6 }
6 7
7 pre { 8 pre {
8 overflow-x: auto;
9 font-size: 1em; 9 font-size: 1em;
10 line-height: $line-height; 10 line-height: $line-height;
11 } 11 }
12 12
13 &--plain {
14 pre,
15 code {
16 color: var(--fg);
17 }
18 }
19
20 /* stylelint-disable selector-class-pattern */ 13 /* stylelint-disable selector-class-pattern */
21 14
22 .c { 15 .c {