just-the-docs 0.2.5 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +2 -2
- data/_includes/css/custom.scss.liquid +1 -0
- data/_includes/css/just-the-docs.scss.liquid +7 -0
- data/_includes/head.html +19 -13
- data/_includes/head_custom.html +0 -0
- data/_includes/js/custom.js +0 -0
- data/_includes/nav.html +55 -44
- data/_includes/title.html +5 -0
- data/_includes/vendor/anchor_headings.html +100 -0
- data/_layouts/default.html +146 -55
- data/_layouts/table_wrappers.html +7 -0
- data/_layouts/vendor/compress.html +10 -0
- data/_sass/base.scss +16 -18
- data/_sass/buttons.scss +1 -1
- data/_sass/code.scss +211 -72
- data/_sass/color_schemes/dark.scss +4 -1
- data/_sass/color_schemes/light.scss +0 -0
- data/_sass/content.scss +80 -1
- data/_sass/custom/custom.scss +0 -120
- data/_sass/labels.scss +5 -4
- data/_sass/layout.scss +118 -62
- data/_sass/modules.scss +20 -0
- data/_sass/navigation.scss +125 -77
- data/_sass/print.scss +40 -0
- data/_sass/search.scss +263 -56
- data/_sass/support/_functions.scss +2 -3
- data/_sass/support/_variables.scss +27 -22
- data/_sass/support/mixins/_layout.scss +1 -3
- data/_sass/support/mixins/_typography.scss +6 -1
- data/_sass/tables.scss +13 -33
- data/_sass/typography.scss +9 -7
- data/_sass/utilities/_layout.scss +74 -17
- data/_sass/utilities/_lists.scss +7 -1
- data/_sass/utilities/_spacing.scss +69 -25
- data/assets/css/just-the-docs-dark.scss +3 -0
- data/assets/css/just-the-docs-default.scss +8 -0
- data/assets/css/just-the-docs-light.scss +3 -0
- data/assets/js/just-the-docs.js +425 -130
- data/assets/js/vendor/lunr.min.js +3 -3
- data/assets/js/zzzz-search-data.json +58 -0
- data/lib/tasks/search.rake +54 -9
- metadata +43 -26
- data/assets/css/dark-mode-preview.scss +0 -41
- data/assets/css/just-the-docs.scss +0 -44
- data/assets/js/search-data.json +0 -12
@@ -0,0 +1,10 @@
|
|
1
|
+
---
|
2
|
+
# Jekyll layout that compresses HTML
|
3
|
+
# v3.1.0
|
4
|
+
# http://jch.penibelst.de/
|
5
|
+
# © 2014–2015 Anatol Broder
|
6
|
+
# MIT License
|
7
|
+
---
|
8
|
+
|
9
|
+
{% capture _LINE_FEED %}
|
10
|
+
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment or site.compress_html.ignore.envs == "all" %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
|
data/_sass/base.scss
CHANGED
@@ -14,6 +14,7 @@
|
|
14
14
|
|
15
15
|
html {
|
16
16
|
@include fs-4;
|
17
|
+
scroll-behavior: smooth;
|
17
18
|
}
|
18
19
|
|
19
20
|
body {
|
@@ -24,25 +25,18 @@ body {
|
|
24
25
|
background-color: $body-background-color;
|
25
26
|
}
|
26
27
|
|
27
|
-
p,
|
28
|
-
h1,
|
29
|
-
h2,
|
30
|
-
h3,
|
31
|
-
h4,
|
32
|
-
h5,
|
33
|
-
h6,
|
34
28
|
ol,
|
35
29
|
ul,
|
30
|
+
dl,
|
36
31
|
pre,
|
37
32
|
address,
|
38
33
|
blockquote,
|
39
|
-
|
34
|
+
table,
|
40
35
|
div,
|
41
|
-
fieldset,
|
42
|
-
form,
|
43
36
|
hr,
|
44
|
-
|
45
|
-
|
37
|
+
form,
|
38
|
+
fieldset,
|
39
|
+
noscript .table-wrapper {
|
46
40
|
margin-top: 0;
|
47
41
|
}
|
48
42
|
|
@@ -52,14 +46,15 @@ h3,
|
|
52
46
|
h4,
|
53
47
|
h5,
|
54
48
|
h6 {
|
55
|
-
margin-top:
|
56
|
-
margin-bottom:
|
49
|
+
margin-top: 0;
|
50
|
+
margin-bottom: 1em;
|
57
51
|
font-weight: 500;
|
58
52
|
line-height: $body-heading-line-height;
|
59
53
|
color: $body-heading-color;
|
60
54
|
}
|
61
55
|
|
62
56
|
p {
|
57
|
+
margin-top: 1em;
|
63
58
|
margin-bottom: 1em;
|
64
59
|
}
|
65
60
|
|
@@ -76,19 +71,22 @@ a:not([class]) {
|
|
76
71
|
background-size: 1px 1px;
|
77
72
|
|
78
73
|
&:hover {
|
79
|
-
background-image: linear-gradient(
|
74
|
+
background-image: linear-gradient(
|
75
|
+
rgba($link-color, 0.45) 0%,
|
76
|
+
rgba($link-color, 0.45) 100%
|
77
|
+
);
|
80
78
|
background-size: 1px 1px;
|
81
|
-
|
82
79
|
}
|
83
80
|
}
|
84
81
|
|
85
82
|
code {
|
86
83
|
font-family: $mono-font-family;
|
87
|
-
font-size:
|
84
|
+
font-size: 0.75em;
|
88
85
|
line-height: $body-line-height;
|
89
86
|
}
|
90
87
|
|
91
|
-
figure
|
88
|
+
figure,
|
89
|
+
pre {
|
92
90
|
margin: 0;
|
93
91
|
}
|
94
92
|
|
data/_sass/buttons.scss
CHANGED
data/_sass/code.scss
CHANGED
@@ -11,11 +11,14 @@ code {
|
|
11
11
|
border-radius: $border-radius;
|
12
12
|
}
|
13
13
|
|
14
|
-
pre.highlight
|
14
|
+
pre.highlight,
|
15
|
+
figure.highlight {
|
15
16
|
padding: $sp-3;
|
17
|
+
margin-top: 0;
|
16
18
|
margin-bottom: 0;
|
17
|
-
-webkit-overflow-scrolling: touch;
|
18
19
|
background-color: $code-background-color;
|
20
|
+
border-radius: $border-radius;
|
21
|
+
-webkit-overflow-scrolling: touch;
|
19
22
|
|
20
23
|
code {
|
21
24
|
padding: 0;
|
@@ -25,78 +28,214 @@ pre.highlight {
|
|
25
28
|
|
26
29
|
.highlighter-rouge {
|
27
30
|
margin-bottom: $sp-3;
|
28
|
-
overflow: hidden;
|
29
|
-
border-radius: $border-radius;
|
30
31
|
}
|
31
32
|
|
32
|
-
.highlight .c {
|
33
|
-
|
34
|
-
|
35
|
-
.highlight .
|
36
|
-
|
37
|
-
|
38
|
-
.highlight .
|
39
|
-
|
40
|
-
|
41
|
-
.highlight .
|
42
|
-
|
43
|
-
|
44
|
-
.highlight .
|
45
|
-
|
46
|
-
|
47
|
-
.highlight .
|
48
|
-
|
49
|
-
|
50
|
-
.highlight .
|
51
|
-
|
52
|
-
|
53
|
-
.highlight .
|
54
|
-
|
55
|
-
|
56
|
-
.highlight .
|
57
|
-
|
58
|
-
|
59
|
-
.highlight .
|
60
|
-
|
61
|
-
|
62
|
-
.highlight .
|
63
|
-
|
64
|
-
|
65
|
-
.highlight .
|
66
|
-
|
67
|
-
|
68
|
-
.highlight .
|
69
|
-
|
70
|
-
|
71
|
-
.highlight .
|
72
|
-
|
73
|
-
|
74
|
-
.highlight .
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
.highlight .
|
79
|
-
|
80
|
-
|
81
|
-
.highlight .
|
82
|
-
|
83
|
-
|
84
|
-
.highlight .
|
85
|
-
|
86
|
-
|
87
|
-
.highlight .
|
88
|
-
|
89
|
-
|
90
|
-
.highlight .
|
91
|
-
|
92
|
-
|
93
|
-
.highlight .
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
.highlight .
|
98
|
-
|
99
|
-
|
33
|
+
.highlight .c {
|
34
|
+
color: #586e75;
|
35
|
+
} // comment //
|
36
|
+
.highlight .err {
|
37
|
+
color: #93a1a1;
|
38
|
+
} // error //
|
39
|
+
.highlight .g {
|
40
|
+
color: #93a1a1;
|
41
|
+
} // generic //
|
42
|
+
.highlight .k {
|
43
|
+
color: #859900;
|
44
|
+
} // keyword //
|
45
|
+
.highlight .l {
|
46
|
+
color: #93a1a1;
|
47
|
+
} // literal //
|
48
|
+
.highlight .n {
|
49
|
+
color: #93a1a1;
|
50
|
+
} // name //
|
51
|
+
.highlight .o {
|
52
|
+
color: #859900;
|
53
|
+
} // operator //
|
54
|
+
.highlight .x {
|
55
|
+
color: #cb4b16;
|
56
|
+
} // other //
|
57
|
+
.highlight .p {
|
58
|
+
color: #93a1a1;
|
59
|
+
} // punctuation //
|
60
|
+
.highlight .cm {
|
61
|
+
color: #586e75;
|
62
|
+
} // comment.multiline //
|
63
|
+
.highlight .cp {
|
64
|
+
color: #859900;
|
65
|
+
} // comment.preproc //
|
66
|
+
.highlight .c1 {
|
67
|
+
color: #586e75;
|
68
|
+
} // comment.single //
|
69
|
+
.highlight .cs {
|
70
|
+
color: #859900;
|
71
|
+
} // comment.special //
|
72
|
+
.highlight .gd {
|
73
|
+
color: #2aa198;
|
74
|
+
} // generic.deleted //
|
75
|
+
.highlight .ge {
|
76
|
+
font-style: italic;
|
77
|
+
color: #93a1a1;
|
78
|
+
} // generic.emph //
|
79
|
+
.highlight .gr {
|
80
|
+
color: #dc322f;
|
81
|
+
} // generic.error //
|
82
|
+
.highlight .gh {
|
83
|
+
color: #cb4b16;
|
84
|
+
} // generic.heading //
|
85
|
+
.highlight .gi {
|
86
|
+
color: #859900;
|
87
|
+
} // generic.inserted //
|
88
|
+
.highlight .go {
|
89
|
+
color: #93a1a1;
|
90
|
+
} // generic.output //
|
91
|
+
.highlight .gp {
|
92
|
+
color: #93a1a1;
|
93
|
+
} // generic.prompt //
|
94
|
+
.highlight .gs {
|
95
|
+
font-weight: bold;
|
96
|
+
color: #93a1a1;
|
97
|
+
} // generic.strong //
|
98
|
+
.highlight .gu {
|
99
|
+
color: #cb4b16;
|
100
|
+
} // generic.subheading //
|
101
|
+
.highlight .gt {
|
102
|
+
color: #93a1a1;
|
103
|
+
} // generic.traceback //
|
104
|
+
.highlight .kc {
|
105
|
+
color: #cb4b16;
|
106
|
+
} // keyword.constant //
|
107
|
+
.highlight .kd {
|
108
|
+
color: #268bd2;
|
109
|
+
} // keyword.declaration //
|
110
|
+
.highlight .kn {
|
111
|
+
color: #859900;
|
112
|
+
} // keyword.namespace //
|
113
|
+
.highlight .kp {
|
114
|
+
color: #859900;
|
115
|
+
} // keyword.pseudo //
|
116
|
+
.highlight .kr {
|
117
|
+
color: #268bd2;
|
118
|
+
} // keyword.reserved //
|
119
|
+
.highlight .kt {
|
120
|
+
color: #dc322f;
|
121
|
+
} // keyword.type //
|
122
|
+
.highlight .ld {
|
123
|
+
color: #93a1a1;
|
124
|
+
} // literal.date //
|
125
|
+
.highlight .m {
|
126
|
+
color: #2aa198;
|
127
|
+
} // literal.number //
|
128
|
+
.highlight .s {
|
129
|
+
color: #2aa198;
|
130
|
+
} // literal.string //
|
131
|
+
.highlight .na {
|
132
|
+
color: #555;
|
133
|
+
} // name.attribute //
|
134
|
+
.highlight .nb {
|
135
|
+
color: #b58900;
|
136
|
+
} // name.builtin //
|
137
|
+
.highlight .nc {
|
138
|
+
color: #268bd2;
|
139
|
+
} // name.class //
|
140
|
+
.highlight .no {
|
141
|
+
color: #cb4b16;
|
142
|
+
} // name.constant //
|
143
|
+
.highlight .nd {
|
144
|
+
color: #268bd2;
|
145
|
+
} // name.decorator //
|
146
|
+
.highlight .ni {
|
147
|
+
color: #cb4b16;
|
148
|
+
} // name.entity //
|
149
|
+
.highlight .ne {
|
150
|
+
color: #cb4b16;
|
151
|
+
} // name.exception //
|
152
|
+
.highlight .nf {
|
153
|
+
color: #268bd2;
|
154
|
+
} // name.function //
|
155
|
+
.highlight .nl {
|
156
|
+
color: #555;
|
157
|
+
} // name.label //
|
158
|
+
.highlight .nn {
|
159
|
+
color: #93a1a1;
|
160
|
+
} // name.namespace //
|
161
|
+
.highlight .nx {
|
162
|
+
color: #555;
|
163
|
+
} // name.other //
|
164
|
+
.highlight .py {
|
165
|
+
color: #93a1a1;
|
166
|
+
} // name.property //
|
167
|
+
.highlight .nt {
|
168
|
+
color: #268bd2;
|
169
|
+
} // name.tag //
|
170
|
+
.highlight .nv {
|
171
|
+
color: #268bd2;
|
172
|
+
} // name.variable //
|
173
|
+
.highlight .ow {
|
174
|
+
color: #859900;
|
175
|
+
} // operator.word //
|
176
|
+
.highlight .w {
|
177
|
+
color: #93a1a1;
|
178
|
+
} // text.whitespace //
|
179
|
+
.highlight .mf {
|
180
|
+
color: #2aa198;
|
181
|
+
} // literal.number.float //
|
182
|
+
.highlight .mh {
|
183
|
+
color: #2aa198;
|
184
|
+
} // literal.number.hex //
|
185
|
+
.highlight .mi {
|
186
|
+
color: #2aa198;
|
187
|
+
} // literal.number.integer //
|
188
|
+
.highlight .mo {
|
189
|
+
color: #2aa198;
|
190
|
+
} // literal.number.oct //
|
191
|
+
.highlight .sb {
|
192
|
+
color: #586e75;
|
193
|
+
} // literal.string.backtick //
|
194
|
+
.highlight .sc {
|
195
|
+
color: #2aa198;
|
196
|
+
} // literal.string.char //
|
197
|
+
.highlight .sd {
|
198
|
+
color: #93a1a1;
|
199
|
+
} // literal.string.doc //
|
200
|
+
.highlight .s2 {
|
201
|
+
color: #2aa198;
|
202
|
+
} // literal.string.double //
|
203
|
+
.highlight .se {
|
204
|
+
color: #cb4b16;
|
205
|
+
} // literal.string.escape //
|
206
|
+
.highlight .sh {
|
207
|
+
color: #93a1a1;
|
208
|
+
} // literal.string.heredoc //
|
209
|
+
.highlight .si {
|
210
|
+
color: #2aa198;
|
211
|
+
} // literal.string.interpol //
|
212
|
+
.highlight .sx {
|
213
|
+
color: #2aa198;
|
214
|
+
} // literal.string.other //
|
215
|
+
.highlight .sr {
|
216
|
+
color: #dc322f;
|
217
|
+
} // literal.string.regex //
|
218
|
+
.highlight .s1 {
|
219
|
+
color: #2aa198;
|
220
|
+
} // literal.string.single //
|
221
|
+
.highlight .ss {
|
222
|
+
color: #2aa198;
|
223
|
+
} // literal.string.symbol //
|
224
|
+
.highlight .bp {
|
225
|
+
color: #268bd2;
|
226
|
+
} // name.builtin.pseudo //
|
227
|
+
.highlight .vc {
|
228
|
+
color: #268bd2;
|
229
|
+
} // name.variable.class //
|
230
|
+
.highlight .vg {
|
231
|
+
color: #268bd2;
|
232
|
+
} // name.variable.global //
|
233
|
+
.highlight .vi {
|
234
|
+
color: #268bd2;
|
235
|
+
} // name.variable.instance //
|
236
|
+
.highlight .il {
|
237
|
+
color: #2aa198;
|
238
|
+
} // literal.number.integer.long //
|
100
239
|
|
101
240
|
//
|
102
241
|
// Code examples (rendered)
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
$body-background-color: $grey-dk-300;
|
3
2
|
$sidebar-color: $grey-dk-300;
|
4
3
|
$border-color: $grey-dk-200;
|
@@ -6,9 +5,13 @@ $border-color: $grey-dk-200;
|
|
6
5
|
$body-text-color: $grey-lt-300;
|
7
6
|
$body-heading-color: $grey-lt-000;
|
8
7
|
$nav-child-link-color: $grey-dk-000;
|
8
|
+
$search-result-preview-color: $grey-dk-000;
|
9
9
|
|
10
10
|
$link-color: $blue-000;
|
11
11
|
$btn-primary-color: $blue-200;
|
12
12
|
$base-button-color: $grey-dk-250;
|
13
13
|
|
14
14
|
$code-background-color: $grey-dk-250;
|
15
|
+
$search-background-color: $grey-dk-250;
|
16
|
+
$table-background-color: $grey-dk-250;
|
17
|
+
$feedback-color: darken($sidebar-color, 3%);
|
File without changes
|
data/_sass/content.scss
CHANGED
@@ -5,7 +5,19 @@
|
|
5
5
|
//
|
6
6
|
// stylelint-disable selector-no-type, max-nesting-depth, selector-max-compound-selectors, selector-max-type
|
7
7
|
|
8
|
-
.
|
8
|
+
.main-content {
|
9
|
+
line-height: $content-line-height;
|
10
|
+
|
11
|
+
ol,
|
12
|
+
ul,
|
13
|
+
dl,
|
14
|
+
pre,
|
15
|
+
address,
|
16
|
+
blockquote,
|
17
|
+
.table-wrapper {
|
18
|
+
margin-top: 0.5em;
|
19
|
+
}
|
20
|
+
|
9
21
|
a {
|
10
22
|
overflow: hidden;
|
11
23
|
text-overflow: ellipsis;
|
@@ -17,6 +29,12 @@
|
|
17
29
|
padding-left: 1.5em;
|
18
30
|
}
|
19
31
|
|
32
|
+
li {
|
33
|
+
.highlight {
|
34
|
+
margin-top: $sp-1;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
20
38
|
ol {
|
21
39
|
list-style-type: none;
|
22
40
|
counter-reset: step-counter;
|
@@ -111,4 +129,65 @@
|
|
111
129
|
margin-left: 1em;
|
112
130
|
font-weight: 500;
|
113
131
|
}
|
132
|
+
|
133
|
+
.anchor-heading {
|
134
|
+
position: absolute;
|
135
|
+
right: -$sp-4;
|
136
|
+
width: $sp-5;
|
137
|
+
height: 100%;
|
138
|
+
padding-right: $sp-1;
|
139
|
+
padding-left: $sp-1;
|
140
|
+
overflow: visible;
|
141
|
+
|
142
|
+
@include mq(md) {
|
143
|
+
right: auto;
|
144
|
+
left: -$sp-5;
|
145
|
+
}
|
146
|
+
|
147
|
+
svg {
|
148
|
+
display: inline-block;
|
149
|
+
width: 100%;
|
150
|
+
height: 100%;
|
151
|
+
color: $link-color;
|
152
|
+
visibility: hidden;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
|
156
|
+
.anchor-heading:hover,
|
157
|
+
h1:hover > .anchor-heading,
|
158
|
+
h2:hover > .anchor-heading,
|
159
|
+
h3:hover > .anchor-heading,
|
160
|
+
h4:hover > .anchor-heading,
|
161
|
+
h5:hover > .anchor-heading,
|
162
|
+
h6:hover > .anchor-heading {
|
163
|
+
svg {
|
164
|
+
visibility: visible;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
h1,
|
169
|
+
h2,
|
170
|
+
h3,
|
171
|
+
h4,
|
172
|
+
h5,
|
173
|
+
h6 {
|
174
|
+
position: relative;
|
175
|
+
margin-top: 1.5em;
|
176
|
+
margin-bottom: 0.25em;
|
177
|
+
|
178
|
+
&:first-child {
|
179
|
+
margin-top: $sp-2;
|
180
|
+
}
|
181
|
+
|
182
|
+
+ table,
|
183
|
+
+ .table-wrapper,
|
184
|
+
+ .code-example,
|
185
|
+
+ .highlighter-rouge {
|
186
|
+
margin-top: 1em;
|
187
|
+
}
|
188
|
+
|
189
|
+
+ p {
|
190
|
+
margin-top: 0;
|
191
|
+
}
|
192
|
+
}
|
114
193
|
}
|