opendevsecops-jekyll 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +1755 -0
  3. data/LICENSE.txt +21 -0
  4. data/README.md +110 -0
  5. data/Rakefile +1 -0
  6. data/_includes/components/aux_nav.html +15 -0
  7. data/_includes/components/breadcrumbs.html +144 -0
  8. data/_includes/components/children_nav.html +33 -0
  9. data/_includes/components/footer.html +34 -0
  10. data/_includes/components/header.html +11 -0
  11. data/_includes/components/mermaid.html +45 -0
  12. data/_includes/components/nav.html +75 -0
  13. data/_includes/components/search_footer.html +7 -0
  14. data/_includes/components/search_header.html +9 -0
  15. data/_includes/components/sidebar.html +32 -0
  16. data/_includes/components/site_nav.html +67 -0
  17. data/_includes/css/activation.scss.liquid +332 -0
  18. data/_includes/css/callouts.scss.liquid +93 -0
  19. data/_includes/css/custom.scss.liquid +1 -0
  20. data/_includes/css/just-the-docs.scss.liquid +12 -0
  21. data/_includes/favicon.html +23 -0
  22. data/_includes/fix_linenos.html +73 -0
  23. data/_includes/footer_custom.html +3 -0
  24. data/_includes/head.html +53 -0
  25. data/_includes/head_custom.html +0 -0
  26. data/_includes/header_custom.html +0 -0
  27. data/_includes/icons/code_copy.html +15 -0
  28. data/_includes/icons/document.html +6 -0
  29. data/_includes/icons/expand.html +6 -0
  30. data/_includes/icons/external_link.html +5 -0
  31. data/_includes/icons/icons.html +13 -0
  32. data/_includes/icons/link.html +6 -0
  33. data/_includes/icons/menu.html +6 -0
  34. data/_includes/icons/search.html +6 -0
  35. data/_includes/js/custom.js +0 -0
  36. data/_includes/lunr/custom-data.json +0 -0
  37. data/_includes/lunr/custom-index.js +0 -0
  38. data/_includes/mermaid_config.js +1 -0
  39. data/_includes/nav_footer_custom.html +0 -0
  40. data/_includes/search_placeholder_custom.html +1 -0
  41. data/_includes/sorted_pages.html +109 -0
  42. data/_includes/title.html +5 -0
  43. data/_includes/toc_heading_custom.html +1 -0
  44. data/_layouts/about.html +5 -0
  45. data/_layouts/default.html +41 -0
  46. data/_layouts/home.html +5 -0
  47. data/_layouts/minimal.html +34 -0
  48. data/_layouts/page.html +5 -0
  49. data/_layouts/post.html +5 -0
  50. data/_layouts/table_wrappers.html +7 -0
  51. data/_sass/base.scss +113 -0
  52. data/_sass/buttons.scss +127 -0
  53. data/_sass/code.scss +246 -0
  54. data/_sass/color_schemes/dark.scss +18 -0
  55. data/_sass/color_schemes/legacy_light.scss +208 -0
  56. data/_sass/color_schemes/light.scss +16 -0
  57. data/_sass/content.scss +239 -0
  58. data/_sass/custom/custom.scss +1 -0
  59. data/_sass/custom/setup.scss +1 -0
  60. data/_sass/labels.scss +37 -0
  61. data/_sass/layout.scss +209 -0
  62. data/_sass/modules.scss +17 -0
  63. data/_sass/navigation.scss +235 -0
  64. data/_sass/print.scss +40 -0
  65. data/_sass/search.scss +324 -0
  66. data/_sass/skiptomain.scss +30 -0
  67. data/_sass/support/_variables.scss +117 -0
  68. data/_sass/support/mixins/_buttons.scss +29 -0
  69. data/_sass/support/mixins/_layout.scss +33 -0
  70. data/_sass/support/mixins/_typography.scss +84 -0
  71. data/_sass/support/mixins/mixins.scss +3 -0
  72. data/_sass/support/support.scss +2 -0
  73. data/_sass/tables.scss +56 -0
  74. data/_sass/typography.scss +63 -0
  75. data/_sass/utilities/_colors.scss +237 -0
  76. data/_sass/utilities/_layout.scss +101 -0
  77. data/_sass/utilities/_lists.scss +15 -0
  78. data/_sass/utilities/_spacing.scss +162 -0
  79. data/_sass/utilities/_typography.scss +85 -0
  80. data/_sass/utilities/utilities.scss +5 -0
  81. data/assets/css/just-the-docs-dark.scss +3 -0
  82. data/assets/css/just-the-docs-default.scss +8 -0
  83. data/assets/css/just-the-docs-head-nav.css +24 -0
  84. data/assets/css/just-the-docs-light.scss +3 -0
  85. data/assets/js/just-the-docs.js +616 -0
  86. data/assets/js/zzzz-search-data.json +74 -0
  87. data/bin/just-the-docs +16 -0
  88. data/favicon.ico +0 -0
  89. data/lib/tasks/search.rake +88 -0
  90. metadata +201 -0
data/_sass/code.scss ADDED
@@ -0,0 +1,246 @@
1
+ // Code and syntax highlighting
2
+ // stylelint-disable selector-no-qualifying-type, declaration-block-semicolon-newline-after,declaration-block-single-line-max-declarations, selector-no-type, selector-max-type, scss/comment-no-empty
3
+
4
+ // {% raw %}
5
+
6
+ // This instruction applies to all queues not within 'pre' or 'figure', avoiding 'code' generated by the highlight.
7
+ :not(pre, figure) {
8
+ & > code {
9
+ padding: 0.2em 0.15em;
10
+ font-weight: 400;
11
+ background-color: $code-background-color;
12
+ border: $border $border-color;
13
+ border-radius: $border-radius;
14
+ }
15
+ }
16
+
17
+ // Avoid appearance of dark border around visited code links in Safari
18
+ a:visited code {
19
+ border-color: $border-color;
20
+ }
21
+
22
+ // Content structure for highlighted code blocks using fences or Liquid
23
+ //
24
+ // ```[LANG]...```, no kramdown line_numbers:
25
+ // div.[language-LANG.]highlighter-rouge > div.highlight > pre.highlight > code
26
+ //
27
+ // ```[LANG]...```, kramdown line_numbers = true:
28
+ // div.[language-LANG.]highlighter-rouge > div.highlight > pre.highlight > code
29
+ // > div.table-wrapper > table.rouge-table > tbody > tr
30
+ // > td.rouge-gutter.gl > pre.lineno
31
+ // | td.rouge-code > pre
32
+ //
33
+ // {% highlight LANG %}...{% endhighlight %}:
34
+ // figure.highlight > pre > code.language-LANG
35
+ //
36
+ // {% highlight LANG linenos %}...{% endhighlight %}:
37
+ // figure.highlight > pre > code.language-LANG
38
+ // > div.table-wrapper > table.rouge-table > tbody > tr
39
+ // > td.gutter.gl > pre.lineno
40
+ // | td.code > pre
41
+ //
42
+ // ----...---- (AsciiDoc)
43
+ // div.listingblock > div.content > pre.rouge.highlight
44
+ //
45
+ // fix_linenos removes the outermost pre when it encloses table.rouge-table
46
+ //
47
+ // See docs/index-test.md for some tests.
48
+ //
49
+ // No kramdown line_numbers: fences and Liquid highlighting look the same.
50
+ // Kramdown line_numbers = true: fences have a wider gutter than with Liquid?
51
+
52
+ // ```[LANG]...```
53
+ // or in AsciiDoc:
54
+ //
55
+ // ----
56
+ // ...
57
+ // ----
58
+
59
+ // the code may appear with 3 different types:
60
+ // container \ case: default case, code with line number, code with html rendering
61
+ // top level: div.highlighter-rouge, figure.highlight, figure.highlight
62
+ // second level: div.highlight, div.table-wrapper, pre.highlight
63
+ // third level: pre.highlight, td.code, absent
64
+ // last level: code, pre, code (optionality)
65
+ // highlighter level: span, span, span
66
+ // the spacing are only in the second level for case 1, 3 and in the third level for case 2
67
+ // in AsciiDoc, there is a parent container that contains optionally a title and the content.
68
+
69
+ // select top level container
70
+ div.highlighter-rouge,
71
+ div.listingblock > div.content,
72
+ figure.highlight {
73
+ margin-top: 0;
74
+ margin-bottom: $sp-3;
75
+ background-color: $code-background-color;
76
+ border-radius: $border-radius;
77
+ box-shadow: none;
78
+ -webkit-overflow-scrolling: touch;
79
+ position: relative;
80
+ padding: 0;
81
+
82
+ // copy button (or other button)
83
+ // the button appear only when there is a hover on the code or focus on button
84
+ > button {
85
+ width: $sp-3;
86
+ opacity: 0;
87
+ position: absolute;
88
+ top: 0;
89
+ right: 0;
90
+ border: $sp-3 solid $code-background-color;
91
+ background-color: $code-background-color;
92
+ color: $body-text-color;
93
+ box-sizing: content-box;
94
+
95
+ svg {
96
+ fill: $body-text-color;
97
+ }
98
+
99
+ &:active {
100
+ text-decoration: none;
101
+ outline: none;
102
+ opacity: 1;
103
+ }
104
+
105
+ &:focus {
106
+ opacity: 1;
107
+ }
108
+ }
109
+
110
+ // the button can be seen by doing a simple hover in the code, there is no need to go over the location of the button
111
+ &:hover {
112
+ > button {
113
+ cursor: copy;
114
+ opacity: 1;
115
+ }
116
+ }
117
+ }
118
+
119
+ // setting the spacing and scrollbar on the second level for the first case
120
+ // remove all space on the second and third level
121
+ // this is a mixin to accommodate for the slightly different structures generated via Markdown vs AsciiDoc
122
+ @mixin scroll-and-spacing($code-div, $pre-select) {
123
+ #{$code-div} {
124
+ overflow-x: auto;
125
+ padding: $sp-3;
126
+ margin: 0;
127
+ border: 0;
128
+ }
129
+
130
+ #{$pre-select},
131
+ code {
132
+ padding: 0;
133
+ margin: 0;
134
+ border: 0;
135
+ }
136
+ }
137
+
138
+ // for Markdown
139
+ div.highlighter-rouge {
140
+ @include scroll-and-spacing("div.highlight", "pre.highlight");
141
+ }
142
+
143
+ // for AsciiDoc. we also need to fix the margins for its parent container.
144
+ div.listingblock {
145
+ @include scroll-and-spacing("div.content", "div.content > pre");
146
+
147
+ margin-top: 0;
148
+ margin-bottom: $sp-3;
149
+ }
150
+
151
+ // {% highlight LANG %}...{% endhighlight %},
152
+ // {% highlight LANG linenos %}...{% endhighlight %}:
153
+
154
+ // setting the spacing and scrollbar on the second level for the thirt case
155
+ // the css rule are apply only to the last code enviroment
156
+ // setting the scroolbar
157
+ figure.highlight {
158
+ pre,
159
+ :not(pre) > code {
160
+ overflow-x: auto;
161
+ padding: $sp-3;
162
+ margin: 0;
163
+ border: 0;
164
+ }
165
+ }
166
+
167
+ // ```[LANG]...```, kramdown line_numbers = true,
168
+ // {% highlight LANG linenos %}...{% endhighlight %}:
169
+
170
+ // setting the spacing and scrollbar on the thirt level for the second case
171
+ .highlight .table-wrapper {
172
+ padding: $sp-3 0;
173
+ margin: 0;
174
+ border: 0;
175
+ box-shadow: none;
176
+
177
+ td,
178
+ pre {
179
+ @include fs-2;
180
+
181
+ min-width: 0;
182
+ padding: 0;
183
+ background-color: $code-background-color;
184
+ border: 0;
185
+ }
186
+
187
+ td.gl {
188
+ width: 1em;
189
+ padding-right: $sp-3;
190
+ padding-left: $sp-3;
191
+ }
192
+
193
+ pre {
194
+ margin: 0;
195
+ line-height: 2;
196
+ }
197
+ }
198
+
199
+ // Code examples: html render of a code
200
+ .code-example,
201
+ .listingblock > .title {
202
+ padding: $sp-3;
203
+ margin-bottom: $sp-3;
204
+ overflow: auto;
205
+ border: 1px solid $border-color;
206
+ border-radius: $border-radius;
207
+
208
+ + .highlighter-rouge,
209
+ + .sectionbody .listingblock,
210
+ + .content,
211
+ + figure.highlight {
212
+ position: relative;
213
+ margin-top: -$sp-4;
214
+ border-right: 1px solid $border-color;
215
+ border-bottom: 1px solid $border-color;
216
+ border-left: 1px solid $border-color;
217
+ border-top-left-radius: 0;
218
+ border-top-right-radius: 0;
219
+ }
220
+ }
221
+
222
+ // Mermaid diagram code blocks should be left unstyled.
223
+ code.language-mermaid {
224
+ padding: 0;
225
+ background-color: inherit;
226
+ border: 0;
227
+ }
228
+
229
+ // Override OneDarkJekyll Colors for Code Blocks
230
+ .highlight,
231
+ pre.highlight {
232
+ background: $code-background-color; // Code Background
233
+ // For Backwards Compatibility Before $code-linenumber-color was added
234
+ @if variable-exists(code-linenumber-color) {
235
+ color: $code-linenumber-color; // Code Line Numbers
236
+ } @else {
237
+ color: $body-text-color; // Code Line Numbers
238
+ }
239
+ }
240
+
241
+ // Override OneDarkJekyll Colors for Code Blocks
242
+ .highlight pre {
243
+ background: $code-background-color; // Code Background
244
+ }
245
+
246
+ // {% endraw %}
@@ -0,0 +1,18 @@
1
+ $color-scheme: dark;
2
+ $body-background-color: $grey-dk-300;
3
+ $body-heading-color: $grey-lt-000;
4
+ $body-text-color: $grey-lt-300;
5
+ $link-color: $blue-000;
6
+ $nav-child-link-color: $grey-dk-000;
7
+ $sidebar-color: $grey-dk-300;
8
+ $base-button-color: $grey-dk-250;
9
+ $btn-primary-color: $blue-200;
10
+ $code-background-color: #31343f; // OneDarkJekyll default for syntax-one-dark-vivid
11
+ $code-linenumber-color: #dee2f7; // OneDarkJekyll .nf for syntax-one-dark-vivid
12
+ $feedback-color: darken($sidebar-color, 3%);
13
+ $table-background-color: $grey-dk-250;
14
+ $search-background-color: $grey-dk-250;
15
+ $search-result-preview-color: $grey-dk-000;
16
+ $border-color: $grey-dk-200;
17
+
18
+ @import "./vendor/OneDarkJekyll/syntax"; // this is the one-dark-vivid atom syntax theme
@@ -0,0 +1,208 @@
1
+ // Moved from _sass/code.scss
2
+
3
+ .highlight .c {
4
+ color: #586e75;
5
+ } // comment //
6
+ .highlight .err {
7
+ color: #93a1a1;
8
+ } // error //
9
+ .highlight .g {
10
+ color: #93a1a1;
11
+ } // generic //
12
+ .highlight .k {
13
+ color: #859900;
14
+ } // keyword //
15
+ .highlight .l {
16
+ color: #93a1a1;
17
+ } // literal //
18
+ .highlight .n {
19
+ color: #93a1a1;
20
+ } // name //
21
+ .highlight .o {
22
+ color: #859900;
23
+ } // operator //
24
+ .highlight .x {
25
+ color: #cb4b16;
26
+ } // other //
27
+ .highlight .p {
28
+ color: #93a1a1;
29
+ } // punctuation //
30
+ .highlight .cm {
31
+ color: #586e75;
32
+ } // comment.multiline //
33
+ .highlight .cp {
34
+ color: #859900;
35
+ } // comment.preproc //
36
+ .highlight .c1 {
37
+ color: #586e75;
38
+ } // comment.single //
39
+ .highlight .cs {
40
+ color: #859900;
41
+ } // comment.special //
42
+ .highlight .gd {
43
+ color: #2aa198;
44
+ } // generic.deleted //
45
+ .highlight .ge {
46
+ font-style: italic;
47
+ color: #93a1a1;
48
+ } // generic.emph //
49
+ .highlight .gr {
50
+ color: #dc322f;
51
+ } // generic.error //
52
+ .highlight .gh {
53
+ color: #cb4b16;
54
+ } // generic.heading //
55
+ .highlight .gi {
56
+ color: #859900;
57
+ } // generic.inserted //
58
+ .highlight .go {
59
+ color: #93a1a1;
60
+ } // generic.output //
61
+ .highlight .gp {
62
+ color: #93a1a1;
63
+ } // generic.prompt //
64
+ .highlight .gs {
65
+ font-weight: bold;
66
+ color: #93a1a1;
67
+ } // generic.strong //
68
+ .highlight .gu {
69
+ color: #cb4b16;
70
+ } // generic.subheading //
71
+ .highlight .gt {
72
+ color: #93a1a1;
73
+ } // generic.traceback //
74
+ .highlight .kc {
75
+ color: #cb4b16;
76
+ } // keyword.constant //
77
+ .highlight .kd {
78
+ color: #268bd2;
79
+ } // keyword.declaration //
80
+ .highlight .kn {
81
+ color: #859900;
82
+ } // keyword.namespace //
83
+ .highlight .kp {
84
+ color: #859900;
85
+ } // keyword.pseudo //
86
+ .highlight .kr {
87
+ color: #268bd2;
88
+ } // keyword.reserved //
89
+ .highlight .kt {
90
+ color: #dc322f;
91
+ } // keyword.type //
92
+ .highlight .ld {
93
+ color: #93a1a1;
94
+ } // literal.date //
95
+ .highlight .m {
96
+ color: #2aa198;
97
+ } // literal.number //
98
+ .highlight .s {
99
+ color: #2aa198;
100
+ } // literal.string //
101
+ .highlight .na {
102
+ color: #555;
103
+ } // name.attribute //
104
+ .highlight .nb {
105
+ color: #b58900;
106
+ } // name.builtin //
107
+ .highlight .nc {
108
+ color: #268bd2;
109
+ } // name.class //
110
+ .highlight .no {
111
+ color: #cb4b16;
112
+ } // name.constant //
113
+ .highlight .nd {
114
+ color: #268bd2;
115
+ } // name.decorator //
116
+ .highlight .ni {
117
+ color: #cb4b16;
118
+ } // name.entity //
119
+ .highlight .ne {
120
+ color: #cb4b16;
121
+ } // name.exception //
122
+ .highlight .nf {
123
+ color: #268bd2;
124
+ } // name.function //
125
+ .highlight .nl {
126
+ color: #555;
127
+ } // name.label //
128
+ .highlight .nn {
129
+ color: #93a1a1;
130
+ } // name.namespace //
131
+ .highlight .nx {
132
+ color: #555;
133
+ } // name.other //
134
+ .highlight .py {
135
+ color: #93a1a1;
136
+ } // name.property //
137
+ .highlight .nt {
138
+ color: #268bd2;
139
+ } // name.tag //
140
+ .highlight .nv {
141
+ color: #268bd2;
142
+ } // name.variable //
143
+ .highlight .ow {
144
+ color: #859900;
145
+ } // operator.word //
146
+ .highlight .w {
147
+ color: #93a1a1;
148
+ } // text.whitespace //
149
+ .highlight .mf {
150
+ color: #2aa198;
151
+ } // literal.number.float //
152
+ .highlight .mh {
153
+ color: #2aa198;
154
+ } // literal.number.hex //
155
+ .highlight .mi {
156
+ color: #2aa198;
157
+ } // literal.number.integer //
158
+ .highlight .mo {
159
+ color: #2aa198;
160
+ } // literal.number.oct //
161
+ .highlight .sb {
162
+ color: #586e75;
163
+ } // literal.string.backtick //
164
+ .highlight .sc {
165
+ color: #2aa198;
166
+ } // literal.string.char //
167
+ .highlight .sd {
168
+ color: #93a1a1;
169
+ } // literal.string.doc //
170
+ .highlight .s2 {
171
+ color: #2aa198;
172
+ } // literal.string.double //
173
+ .highlight .se {
174
+ color: #cb4b16;
175
+ } // literal.string.escape //
176
+ .highlight .sh {
177
+ color: #93a1a1;
178
+ } // literal.string.heredoc //
179
+ .highlight .si {
180
+ color: #2aa198;
181
+ } // literal.string.interpol //
182
+ .highlight .sx {
183
+ color: #2aa198;
184
+ } // literal.string.other //
185
+ .highlight .sr {
186
+ color: #dc322f;
187
+ } // literal.string.regex //
188
+ .highlight .s1 {
189
+ color: #2aa198;
190
+ } // literal.string.single //
191
+ .highlight .ss {
192
+ color: #2aa198;
193
+ } // literal.string.symbol //
194
+ .highlight .bp {
195
+ color: #268bd2;
196
+ } // name.builtin.pseudo //
197
+ .highlight .vc {
198
+ color: #268bd2;
199
+ } // name.variable.class //
200
+ .highlight .vg {
201
+ color: #268bd2;
202
+ } // name.variable.global //
203
+ .highlight .vi {
204
+ color: #268bd2;
205
+ } // name.variable.instance //
206
+ .highlight .il {
207
+ color: #2aa198;
208
+ } // literal.number.integer.long //
@@ -0,0 +1,16 @@
1
+ $color-scheme: light !default;
2
+ $body-background-color: $white !default;
3
+ $body-heading-color: $grey-dk-300 !default;
4
+ $body-text-color: $grey-dk-100 !default;
5
+ $link-color: $purple-000 !default;
6
+ $nav-child-link-color: $grey-dk-100 !default;
7
+ $sidebar-color: $grey-lt-000 !default;
8
+ $base-button-color: #f7f7f7 !default;
9
+ $btn-primary-color: $purple-100 !default;
10
+ $code-background-color: $grey-lt-000 !default;
11
+ $feedback-color: darken($sidebar-color, 3%) !default;
12
+ $table-background-color: $white !default;
13
+ $search-background-color: $white !default;
14
+ $search-result-preview-color: $grey-dk-000 !default;
15
+
16
+ @import "./vendor/OneLightJekyll/syntax";
@@ -0,0 +1,239 @@
1
+ @charset "UTF-8";
2
+
3
+ // Styles for rendered markdown in the .main-content container
4
+ // stylelint-disable selector-no-type, max-nesting-depth, selector-max-compound-selectors, selector-max-type, selector-max-specificity, selector-max-id
5
+
6
+ .main-content {
7
+ line-height: $content-line-height;
8
+
9
+ ol,
10
+ ul,
11
+ dl,
12
+ pre,
13
+ address,
14
+ blockquote,
15
+ .table-wrapper {
16
+ margin-top: 0.5em;
17
+ }
18
+
19
+ a {
20
+ overflow: hidden;
21
+ text-overflow: ellipsis;
22
+ }
23
+
24
+ ul,
25
+ ol {
26
+ padding-left: 1.5em;
27
+ }
28
+
29
+ li {
30
+ .highlight {
31
+ margin-top: $sp-1;
32
+ }
33
+ }
34
+
35
+ ol {
36
+ list-style-type: none;
37
+ counter-reset: step-counter;
38
+
39
+ > li {
40
+ position: relative;
41
+
42
+ &::before {
43
+ position: absolute;
44
+ top: 0.2em;
45
+ left: -1.6em;
46
+ color: $grey-dk-000;
47
+ content: counter(step-counter);
48
+ counter-increment: step-counter;
49
+ @include fs-3;
50
+
51
+ @include mq(sm) {
52
+ top: 0.11em;
53
+ }
54
+ }
55
+
56
+ ol {
57
+ counter-reset: sub-counter;
58
+
59
+ > li {
60
+ &::before {
61
+ content: counter(sub-counter, lower-alpha);
62
+ counter-increment: sub-counter;
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+
69
+ ul {
70
+ list-style: none;
71
+
72
+ > li {
73
+ &::before {
74
+ position: absolute;
75
+ margin-left: -1.4em;
76
+ color: $grey-dk-000;
77
+ content: "•";
78
+ }
79
+ }
80
+ }
81
+
82
+ .task-list-item {
83
+ &::before {
84
+ content: "";
85
+ }
86
+ }
87
+
88
+ .task-list-item-checkbox {
89
+ margin-right: 0.6em;
90
+ margin-left: -1.4em;
91
+
92
+ // The same margin-left is used above for ul > li::before
93
+ }
94
+
95
+ hr + * {
96
+ margin-top: 0;
97
+ }
98
+
99
+ h1:first-of-type {
100
+ margin-top: 0.5em;
101
+ }
102
+
103
+ dl {
104
+ display: grid;
105
+ grid-template: auto / 10em 1fr;
106
+ }
107
+
108
+ dt,
109
+ dd {
110
+ margin: 0.25em 0;
111
+ }
112
+
113
+ dt {
114
+ grid-column: 1;
115
+ font-weight: 500;
116
+ text-align: right;
117
+
118
+ &::after {
119
+ content: ":";
120
+ }
121
+ }
122
+
123
+ dd {
124
+ grid-column: 2;
125
+ margin-bottom: 0;
126
+ margin-left: 1em;
127
+
128
+ blockquote,
129
+ div,
130
+ dl,
131
+ dt,
132
+ h1,
133
+ h2,
134
+ h3,
135
+ h4,
136
+ h5,
137
+ h6,
138
+ li,
139
+ ol,
140
+ p,
141
+ pre,
142
+ table,
143
+ ul,
144
+ .table-wrapper {
145
+ &:first-child {
146
+ margin-top: 0;
147
+ }
148
+ }
149
+ }
150
+
151
+ dd,
152
+ ol,
153
+ ul {
154
+ dl:first-child {
155
+ dt:first-child,
156
+ dd:nth-child(2) {
157
+ margin-top: 0;
158
+ }
159
+ }
160
+ }
161
+
162
+ .anchor-heading {
163
+ position: absolute;
164
+ right: -$sp-4;
165
+ width: $sp-5;
166
+ height: 100%;
167
+ padding-right: $sp-1;
168
+ padding-left: $sp-1;
169
+ overflow: visible;
170
+
171
+ @include mq(md) {
172
+ right: auto;
173
+ left: -$sp-5;
174
+ }
175
+
176
+ svg {
177
+ display: inline-block;
178
+ width: 100%;
179
+ height: 100%;
180
+ color: $link-color;
181
+ visibility: hidden;
182
+ }
183
+ }
184
+
185
+ .anchor-heading:hover,
186
+ .anchor-heading:focus,
187
+ h1:hover > .anchor-heading,
188
+ h2:hover > .anchor-heading,
189
+ h3:hover > .anchor-heading,
190
+ h4:hover > .anchor-heading,
191
+ h5:hover > .anchor-heading,
192
+ h6:hover > .anchor-heading {
193
+ svg {
194
+ visibility: visible;
195
+ }
196
+ }
197
+
198
+ summary {
199
+ cursor: pointer;
200
+ }
201
+
202
+ h1,
203
+ h2,
204
+ h3,
205
+ h4,
206
+ h5,
207
+ h6,
208
+ #toctitle {
209
+ position: relative;
210
+ margin-top: 1.5em;
211
+ margin-bottom: 0.25em;
212
+
213
+ + table,
214
+ + .table-wrapper,
215
+ + .code-example,
216
+ + .highlighter-rouge,
217
+ + .sectionbody .listingblock {
218
+ margin-top: 1em;
219
+ }
220
+
221
+ + p:not(.label) {
222
+ margin-top: 0;
223
+ }
224
+ }
225
+
226
+ > h1:first-child,
227
+ > h2:first-child,
228
+ > h3:first-child,
229
+ > h4:first-child,
230
+ > h5:first-child,
231
+ > h6:first-child,
232
+ > .sect1:first-child > h2,
233
+ > .sect2:first-child > h3,
234
+ > .sect3:first-child > h4,
235
+ > .sect4:first-child > h5,
236
+ > .sect5:first-child > h6 {
237
+ margin-top: $sp-2;
238
+ }
239
+ }