-
Notifications
You must be signed in to change notification settings - Fork 357
/
Copy path_docs.scss
196 lines (159 loc) · 3.75 KB
/
_docs.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
header {
margin-bottom: 1em;
h1 {
margin-bottom: 0;
}
.metadata {
font-size: .8rem;
}
}
.docs-body {
width: 100%;
display: flex;
flex-direction: row;
--docs-menu-width: 18rem;
}
.docs-menu {
position: fixed;
padding-block-start: var(--navbar-height);
inset-block: 0;
inset-inline-start: 0;
overflow-y: auto;
background-color: #fff;
border-right: 1px solid var(--borders-color);
max-width: var(--docs-menu-width);
.docs-menu-inner {
padding: 1.5rem;
}
@media (max-width: 767px) {
/*
This trick is added because Chrome on Android doesn't re-calculate the
height of the viewport before the user stops scrolling. We're
artificially making the panel higher than it is
*/
--panel-bottom-trick: 300px;
border-right: unset;
max-width: unset;
inset-inline-end: 0;
inset-block-end: calc(-1 * var(--panel-bottom-trick));
padding-block-end: calc(var(--panel-bottom-trick) + 5rem);
z-index: 990;
}
.submenu-checkbox {
display: none;
&:not(:checked)~.section-submenu-wrap {
display: none;
}
&:not(:checked)~.submenu-title {
.arrow {
background-image: url("/assets/down-arrow.svg");
width: 1rem;
height: 1rem;
margin: auto 0;
}
}
&:checked~.submenu-title {
.arrow {
background-image: url("/assets/up-arrow.svg");
width: 1rem;
height: 1rem;
margin: auto 0;
}
}
}
.submenu-title {
display: flex;
flex-direction: row;
gap: .8rem;
font-size: 1.2rem;
font-weight: 700;
cursor: pointer;
user-select: none;
}
ul {
padding-inline-start: 0;
list-style: none;
li {
margin-inline-start: 1em;
margin-block: .5em;
ul {
border-left: 1px solid #bbb;
li:hover {
color: var(--color-link);
text-decoration: underline;
}
}
}
a {
color: var(--color-text);
}
}
}
.docs-content {
padding-inline-start: calc(var(--docs-menu-width) + 3rem + .5rem);
@media (max-width: 767px) {
margin-inline: auto;
padding-inline: .5rem;
}
article p img {
max-width: 100%;
margin-inline: auto;
}
}
#docs-menu-button {
position: fixed;
display: none;
z-index: 991;
@media (max-width: 767px) {
display: inline-block;
}
bottom: 2rem;
left: 50%;
transform: translateX(-50%);
background-color: #000;
color: #fff;
border: transparent;
border-radius: 9999px;
padding: .5rem 2rem;
box-shadow: 0 2px 2px #666;
}
#docs-menu-checkbox:checked~#docs-menu-button {
background-color: #333;
}
#docs-menu-checkbox:not(:checked)~.docs-menu {
@media (max-width: 767px) {
display: none;
}
}
#docs-menu-checkbox:checked~.docs-content {
@media (max-width: 767px) {
display: none;
}
}
.mjolnir_button {
border: 1px solid rgb(217, 217, 217);
border-radius: 1000px;
padding: 0 .4rem;
background-color: rgb(242, 247, 252);
}
figure {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
margin-inline: 0;
padding: 1rem;
border: 1px solid #dedede;
border-radius: 4px;
img {
max-width: 100%;
max-height: 100%;
}
figcaption {
font-size: .8rem;
text-align: center;
}
}
.hidden {
display: none;
}