summaryrefslogtreecommitdiffstats
path: root/assets/css/scopes
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2020-12-26 23:37:48 +0100
committerVolpeon <git@volpeon.ink>2020-12-26 23:37:48 +0100
commitafaa48b03c8d9dcbc7bbce47b94ec6bdd2da3502 (patch)
tree17c7e522f3d0c3fef647cf0a6daae03debbd8394 /assets/css/scopes
parentImproved SCSS structure, keep less glyphs in fonts (diff)
downloadvolpeon.ink-afaa48b03c8d9dcbc7bbce47b94ec6bdd2da3502.tar.gz
volpeon.ink-afaa48b03c8d9dcbc7bbce47b94ec6bdd2da3502.tar.bz2
volpeon.ink-afaa48b03c8d9dcbc7bbce47b94ec6bdd2da3502.zip
Improved CSS variable names, improved script variable names, added initial support for finding child pages
Diffstat (limited to 'assets/css/scopes')
-rw-r--r--assets/css/scopes/_page.scss29
1 files changed, 14 insertions, 15 deletions
diff --git a/assets/css/scopes/_page.scss b/assets/css/scopes/_page.scss
index cdbdeb4..7c9e2d4 100644
--- a/assets/css/scopes/_page.scss
+++ b/assets/css/scopes/_page.scss
@@ -1,6 +1,6 @@
1.s-page { 1.s-page {
2 &__content { 2 &__content {
3 padding-left: $page-item-prefix-width; 3 padding-left: $page--item-prefix--width;
4 4
5 > :first-child { 5 > :first-child {
6 margin-top: 0; 6 margin-top: 0;
@@ -13,28 +13,28 @@
13 .c-refs__item, 13 .c-refs__item,
14 pre { 14 pre {
15 position: relative; 15 position: relative;
16 margin-left: -1 * $page-item-prefix-width; 16 margin-left: -1 * $page--item-prefix--width;
17 padding-left: $page-item-prefix-width; 17 padding-left: $page--item-prefix--width;
18 18
19 &::before { 19 &::before {
20 position: absolute; 20 position: absolute;
21 box-sizing: border-box; 21 box-sizing: border-box;
22 display: inline-block; 22 display: inline-block;
23 margin-left: -1 * $page-item-prefix-width; 23 margin-left: -1 * $page--item-prefix--width;
24 padding-right: $page-item-prefix-pad; 24 padding-right: $page--item-prefix--pad;
25 width: $page-item-prefix-width; 25 width: $page--item-prefix--width;
26 color: var(--page-item-prefix-fg); 26 color: var(--page--item-prefix--fg);
27 font-weight: normal; 27 font-weight: normal;
28 text-align: right; 28 text-align: right;
29 } 29 }
30 } 30 }
31 31
32 h1 { 32 h1 {
33 font-size: px-to-em($content-h1-font-size); 33 font-size: px-to-em($content--h1--font-size);
34 34
35 &::before { 35 &::before {
36 content: "#"; 36 content: "#";
37 font-size: px-to-em($font-size, $content-h1-font-size); 37 font-size: px-to-em($font-size, $content--h1--font-size);
38 } 38 }
39 } 39 }
40 40
@@ -54,22 +54,21 @@
54 &::before { 54 &::before {
55 content: str-repeat("``\A", 40); 55 content: str-repeat("``\A", 40);
56 height: 100%; 56 height: 100%;
57 color: var(--page-item-prefix-fg); 57 color: var(--page--item-prefix--fg);
58 overflow: hidden; 58 overflow: hidden;
59 line-height: $code-block-line-height;
60 } 59 }
61 } 60 }
62 61
63 hr { 62 hr {
64 margin-left: -1 * $page-item-prefix-width; 63 margin-left: -1 * $page--item-prefix--width;
65 } 64 }
66 65
67 .c-page-header { 66 .c-page-header {
68 margin-left: -1 * $page-item-prefix-width; 67 margin-left: -1 * $page--item-prefix--width;
69 padding-left: $page-item-prefix-width; 68 padding-left: $page--item-prefix--width;
70 69
71 &::after { 70 &::after {
72 margin-left: -1 * $page-item-prefix-width; 71 margin-left: -1 * $page--item-prefix--width;
73 } 72 }
74 } 73 }
75 74