summaryrefslogtreecommitdiffstats
path: root/assets/css/scopes
diff options
context:
space:
mode:
Diffstat (limited to 'assets/css/scopes')
-rw-r--r--assets/css/scopes/_body.scss36
1 files changed, 30 insertions, 6 deletions
diff --git a/assets/css/scopes/_body.scss b/assets/css/scopes/_body.scss
index b44e083..a27b30f 100644
--- a/assets/css/scopes/_body.scss
+++ b/assets/css/scopes/_body.scss
@@ -1,17 +1,29 @@
1@include namespace('body') { 1@include namespace('body') {
2 @include store(( 2 @include store((
3 --colors: ( 3 --colors: (
4 --meta: ( 4 --meta: prop(--colors --fg-hi, $global: true),
5 --fg: prop(--colors --fg-hi, $global: true), 5 --code: (
6 ) 6 --fg: hsl(prop(--colors --accent --h, $global: true), 90%, 64%),
7 --bg: prop(--colors --bg-hi, $global: true),
8 ),
9 --obj-border: prop(--colors --obj, $global: true),
7 ) 10 )
8 )); 11 ));
9 12
13 @include store((
14 --colors: (
15 --code: (
16 --fg: hsl(prop(--colors --accent --h, $global: true), 74%, 52%),
17 ),
18 --obj-border: prop(--colors --obj-hi, $global: true),
19 )
20 ), 'light');
21
10 @include scope(namespace()) { 22 @include scope(namespace()) {
11 font-size: 1 / 16 * 19em; 23 font-size: 1 / 16 * 19em;
12 24
13 @include element('meta') { 25 @include element('meta') {
14 color: prop(--colors --meta --fg); 26 color: prop(--colors --meta);
15 font-size: 1 / 16 * 15rem; 27 font-size: 1 / 16 * 15rem;
16 28
17 + h1 { 29 + h1 {
@@ -23,11 +35,23 @@
23 max-width: 100%; 35 max-width: 100%;
24 } 36 }
25 37
38 code {
39 padding: .2em .4em;
40 background-color: prop(--colors --code --bg);
41 color: prop(--colors --code --fg);
42 }
43
26 blockquote, 44 blockquote,
27 pre { 45 pre {
28 margin: ($line-height * 1rem) 0 0; 46 margin: ($line-height * 1rem) 0 0 1px;
29 padding-left: calc(#{prop(--dims --indent, $global: true)} - 3px); 47 padding-left: calc(#{prop(--dims --indent, $global: true)} - 3px);
30 border-left: 3px solid prop(--colors --obj, $global: true); 48 border-left: 3px solid prop(--colors --obj-border);
49 }
50
51 pre code {
52 padding: 0;
53 background-color: transparent;
54 color: currentColor;
31 } 55 }
32 56
33 @include media('<=sm') { 57 @include media('<=sm') {