summaryrefslogtreecommitdiffstats
path: root/assets/css/scopes
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-05-16 14:45:16 +0200
committerVolpeon <git@volpeon.ink>2021-05-16 14:45:16 +0200
commit349cbedd7f2132151ed6a170cc53453b0fba363a (patch)
tree92fb94b1fa4b816e82a49b59ff956034ba50f620 /assets/css/scopes
parentSmall design adjustments (diff)
downloadvolpeon.ink-349cbedd7f2132151ed6a170cc53453b0fba363a.tar.gz
volpeon.ink-349cbedd7f2132151ed6a170cc53453b0fba363a.tar.bz2
volpeon.ink-349cbedd7f2132151ed6a170cc53453b0fba363a.zip
Design
Diffstat (limited to 'assets/css/scopes')
-rw-r--r--assets/css/scopes/_body.scss8
-rw-r--r--assets/css/scopes/_headlines.scss23
2 files changed, 27 insertions, 4 deletions
diff --git a/assets/css/scopes/_body.scss b/assets/css/scopes/_body.scss
index a27b30f..ededaad 100644
--- a/assets/css/scopes/_body.scss
+++ b/assets/css/scopes/_body.scss
@@ -3,7 +3,7 @@
3 --colors: ( 3 --colors: (
4 --meta: prop(--colors --fg-hi, $global: true), 4 --meta: prop(--colors --fg-hi, $global: true),
5 --code: ( 5 --code: (
6 --fg: hsl(prop(--colors --accent --h, $global: true), 90%, 64%), 6 --fg: prop(--colors --accent --strong, $global: true),
7 --bg: prop(--colors --bg-hi, $global: true), 7 --bg: prop(--colors --bg-hi, $global: true),
8 ), 8 ),
9 --obj-border: prop(--colors --obj, $global: true), 9 --obj-border: prop(--colors --obj, $global: true),
@@ -13,7 +13,7 @@
13 @include store(( 13 @include store((
14 --colors: ( 14 --colors: (
15 --code: ( 15 --code: (
16 --fg: hsl(prop(--colors --accent --h, $global: true), 74%, 52%), 16 --bg: prop(--colors --accent --faint, $global: true),
17 ), 17 ),
18 --obj-border: prop(--colors --obj-hi, $global: true), 18 --obj-border: prop(--colors --obj-hi, $global: true),
19 ) 19 )
@@ -36,7 +36,8 @@
36 } 36 }
37 37
38 code { 38 code {
39 padding: .2em .4em; 39 padding: .1em .3em;
40 border-radius: 3px;
40 background-color: prop(--colors --code --bg); 41 background-color: prop(--colors --code --bg);
41 color: prop(--colors --code --fg); 42 color: prop(--colors --code --fg);
42 } 43 }
@@ -50,6 +51,7 @@
50 51
51 pre code { 52 pre code {
52 padding: 0; 53 padding: 0;
54 border-radius: 0;
53 background-color: transparent; 55 background-color: transparent;
54 color: currentColor; 56 color: currentColor;
55 } 57 }
diff --git a/assets/css/scopes/_headlines.scss b/assets/css/scopes/_headlines.scss
index dcd8024..03d6be1 100644
--- a/assets/css/scopes/_headlines.scss
+++ b/assets/css/scopes/_headlines.scss
@@ -2,11 +2,20 @@
2 @include store(( 2 @include store((
3 --colors: ( 3 --colors: (
4 --emph: ( 4 --emph: (
5 --bg: prop(--colors --bg-hi, $global: true), 5 --bg: prop(--colors --bg-hi, $global: true),
6 --body-bg: prop(--colors --bg-hi, $global: true),
6 ) 7 )
7 ) 8 )
8 )); 9 ));
9 10
11 @include store((
12 --colors: (
13 --emph: (
14 --body-bg: prop(--colors --bg, $global: true),
15 )
16 )
17 ), 'light');
18
10 @include scope(namespace()) { 19 @include scope(namespace()) {
11 h1, 20 h1,
12 h2, 21 h2,
@@ -70,5 +79,17 @@
70 transparent .6em 79 transparent .6em
71 ); 80 );
72 } 81 }
82
83 @include modifier('body') {
84 @include element('title-inner') {
85 background-image: linear-gradient(
86 to top,
87 transparent .15em,
88 #{prop(--colors --emph --body-bg)} .15em,
89 #{prop(--colors --emph --body-bg)} .6em,
90 transparent .6em
91 );
92 }
93 }
73 } 94 }
74} 95}