Skip to content

Commit 5765fd2

Browse files
committed
docs: imports kask page template from gohandlers
1 parent 178c64b commit 5765fd2

File tree

6 files changed

+650
-0
lines changed

6 files changed

+650
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
/.venv
33
/*.env
44
/build
5+
/docs-build
56
/ignored
67
todo.md

docs/.kask/propagate/index.css

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
:root {
2+
color-scheme: light dark;
3+
}
4+
5+
* {
6+
margin: 0;
7+
padding: 0;
8+
box-sizing: border-box;
9+
font-size: inherit;
10+
font-family: inherit;
11+
color: inherit;
12+
font-weight: inherit;
13+
scroll-margin-top: 20px;
14+
}
15+
16+
html {
17+
font-size: 16px;
18+
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
19+
color: light-dark(#444, #aaa);
20+
background-color: light-dark(#fff, #171717);
21+
line-height: 2;
22+
font-weight: 400;
23+
scroll-behavior: smooth;
24+
scroll-margin-top: 70px;
25+
}
26+
27+
a {
28+
text-decoration: none;
29+
}
30+
31+
.nowrap {
32+
white-space: nowrap;
33+
}
34+
35+
h1 {
36+
--heading-order: 6;
37+
font-size: 2em;
38+
}
39+
40+
h2 {
41+
--heading-order: 5;
42+
font-size: 1.7em;
43+
}
44+
45+
h3 {
46+
--heading-order: 4;
47+
font-size: 1.3em;
48+
}
49+
50+
h4 {
51+
--heading-order: 3;
52+
font-size: 1.2em;
53+
}
54+
55+
h5 {
56+
--heading-order: 2;
57+
}
58+
59+
h6 {
60+
--heading-order: 1;
61+
}
62+
63+
h1,
64+
h2,
65+
h3,
66+
h4,
67+
h5,
68+
h6 {
69+
font-weight: 500;
70+
}
71+
72+
:not(:is(h1, h2, h3, h4, h5, h6)) + :is(h1, h2, h3, h4, h5, h6) {
73+
margin-top: calc(((7 - var(--heading-order)) / 6 + 1) * 30px);
74+
}
75+
76+
p {
77+
margin: 10px 0;
78+
}
79+
80+
footer {
81+
width: 100%;
82+
padding: 20px 20px 100px;
83+
border-top: 0.5px solid #eee;
84+
}
85+
86+
html {
87+
width: 100%;
88+
}
89+
90+
body {
91+
width: 100vw;
92+
padding-bottom: 200px;
93+
94+
#markdown-page-column-layout {
95+
width: 100vw;
96+
padding: 20px;
97+
98+
@media screen and (width<700px) {
99+
position: relative;
100+
display: flex;
101+
flex-direction: column;
102+
gap: 20px;
103+
104+
& > #navs {
105+
display: contents;
106+
}
107+
}
108+
109+
@media screen and (700px<=width) and (width<1700px) {
110+
display: grid;
111+
grid-template-columns: min-content 1fr;
112+
justify-content: left;
113+
align-items: start;
114+
gap: 20px;
115+
116+
position: relative;
117+
118+
& > #navs {
119+
grid-column: 1 / 2;
120+
grid-row: 1 / 2;
121+
122+
display: flex;
123+
flex-direction: column;
124+
gap: 20px;
125+
}
126+
127+
& > main {
128+
grid-column: 2 / 3;
129+
grid-row: 1 / 2;
130+
overflow-x: hidden;
131+
}
132+
}
133+
134+
@media screen and (1700px<=width) {
135+
display: grid;
136+
grid-template-columns: 350px 1fr 350px;
137+
justify-content: space-between;
138+
align-items: start;
139+
gap: 20px;
140+
141+
position: relative;
142+
143+
& > #navs {
144+
display: contents;
145+
146+
& > nav#sitemap {
147+
grid-column: 1 / 2;
148+
grid-row: 1 / 2;
149+
position: sticky;
150+
top: 20px;
151+
}
152+
153+
& > nav#toc {
154+
grid-column: 3 / 4;
155+
grid-row: 1 / 2;
156+
position: sticky;
157+
top: 20px;
158+
}
159+
}
160+
161+
& > main {
162+
grid-column: 2 / 3;
163+
grid-row: 1 / 2;
164+
justify-self: center;
165+
margin-bottom: 500px;
166+
width: 100%;
167+
overflow: hidden;
168+
}
169+
}
170+
}
171+
}
172+
173+
hr {
174+
display: none;
175+
}

0 commit comments

Comments
 (0)