diff options
author | Volpeon <git@volpeon.ink> | 2020-12-24 15:05:32 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2020-12-24 15:05:32 +0100 |
commit | 714d8f7ff8425e4177ff6bde4d214ef75be6b1ab (patch) | |
tree | bc343dd424b14bcadef61a80bfe7d423c139445c /assets/css/scopes | |
parent | Improved typography (diff) | |
download | volpeon.ink-714d8f7ff8425e4177ff6bde4d214ef75be6b1ab.tar.gz volpeon.ink-714d8f7ff8425e4177ff6bde4d214ef75be6b1ab.tar.bz2 volpeon.ink-714d8f7ff8425e4177ff6bde4d214ef75be6b1ab.zip |
Added header, improved SCSS structure, use metadata file instead of param, improved folder structure
Diffstat (limited to 'assets/css/scopes')
-rw-r--r-- | assets/css/scopes/_page.scss | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/assets/css/scopes/_page.scss b/assets/css/scopes/_page.scss new file mode 100644 index 0000000..cf7673c --- /dev/null +++ b/assets/css/scopes/_page.scss | |||
@@ -0,0 +1,93 @@ | |||
1 | .s-page { | ||
2 | padding-left: $page-item-prefix-width; | ||
3 | |||
4 | h1, | ||
5 | h2, | ||
6 | h3, | ||
7 | .c-refs__item, | ||
8 | pre { | ||
9 | position: relative; | ||
10 | margin-left: -1 * $page-item-prefix-width; | ||
11 | padding-left: $page-item-prefix-width; | ||
12 | |||
13 | &::before { | ||
14 | position: absolute; | ||
15 | box-sizing: border-box; | ||
16 | display: inline-block; | ||
17 | margin-left: -1 * $page-item-prefix-width; | ||
18 | padding-right: $page-item-prefix-pad; | ||
19 | width: $page-item-prefix-width; | ||
20 | color: var(--page-item-prefix-fg); | ||
21 | font-size: 1rem; | ||
22 | font-weight: normal; | ||
23 | text-align: right; | ||
24 | } | ||
25 | |||
26 | @media (max-width: $breakpoint-sm) { | ||
27 | margin-left: 0; | ||
28 | padding-left: 0; | ||
29 | |||
30 | &::before { | ||
31 | display: none; | ||
32 | } | ||
33 | } | ||
34 | } | ||
35 | |||
36 | h1::before { | ||
37 | content: "#"; | ||
38 | } | ||
39 | |||
40 | h2::before { | ||
41 | content: "##"; | ||
42 | } | ||
43 | |||
44 | h3::before { | ||
45 | content: "###"; | ||
46 | } | ||
47 | |||
48 | .c-refs__item::before { | ||
49 | content: "|>"; | ||
50 | } | ||
51 | |||
52 | pre::before { | ||
53 | content: str-repeat("``\A", 40); | ||
54 | height: 100%; | ||
55 | color: var(--page-item-prefix-fg); | ||
56 | overflow: hidden; | ||
57 | line-height: $code-block-line-height * ($code-block-font-size / $font-size); | ||
58 | } | ||
59 | |||
60 | hr { | ||
61 | margin-left: -1 * $page-item-prefix-width; | ||
62 | } | ||
63 | |||
64 | .c-page-header { | ||
65 | margin-left: -1 * $page-item-prefix-width; | ||
66 | padding-left: $page-item-prefix-width; | ||
67 | |||
68 | &::after { | ||
69 | margin-left: -1 * $page-item-prefix-width; | ||
70 | } | ||
71 | |||
72 | @media (max-width: $breakpoint-sm) { | ||
73 | margin-left: 0; | ||
74 | padding-left: 0; | ||
75 | |||
76 | &::after { | ||
77 | margin-left: 0; | ||
78 | } | ||
79 | } | ||
80 | } | ||
81 | |||
82 | .c-nav { | ||
83 | margin-left: -1 * $page-item-prefix-width; | ||
84 | |||
85 | @media (max-width: $breakpoint-sm) { | ||
86 | margin-left: 0; | ||
87 | } | ||
88 | } | ||
89 | |||
90 | @media (max-width: $breakpoint-sm) { | ||
91 | padding-left: 0; | ||
92 | } | ||
93 | } | ||