intia-theme 0.1.6 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/button.html +7 -0
  3. data/_includes/contact.html +70 -0
  4. data/_includes/footer.html +1 -1
  5. data/_includes/hero.html +18 -6
  6. data/_includes/highlighter.html +7 -0
  7. data/_includes/introduction.md +6 -0
  8. data/_includes/latest-story.html +35 -0
  9. data/_includes/left-right-blocks.html +46 -49
  10. data/_includes/stories.html +40 -0
  11. data/_includes/story-slider.html +3 -4
  12. data/_layouts/default.html +6 -3
  13. data/_layouts/plattform.html +0 -0
  14. data/_sass/_layout.scss +258 -9
  15. data/_sass/_main.scss +23 -8
  16. data/assets/img/arrow-down.png +0 -0
  17. data/assets/img/external-link.png +0 -0
  18. data/assets/img/logo-green-white.png +0 -0
  19. data/assets/img/logo-short-green.png +0 -0
  20. data/assets/img/logo-short.png +0 -0
  21. data/assets/js/main.js +42 -1
  22. data/assets/js/search.js +6 -0
  23. data/assets/templates/contact.png +0 -0
  24. data/assets/templates/glossary-abstract.png +0 -0
  25. data/assets/templates/glossary-full-entry.png +0 -0
  26. data/assets/templates/header-a.png +0 -0
  27. data/assets/templates/header-b.png +0 -0
  28. data/assets/templates/header-c.png +0 -0
  29. data/assets/templates/header-glossary.png +0 -0
  30. data/assets/templates/highlighter-a.png +0 -0
  31. data/assets/templates/highlighter-b.png +0 -0
  32. data/assets/templates/highlighter-c.png +0 -0
  33. data/assets/templates/highlighter-d.png +0 -0
  34. data/assets/templates/left-right-blocks.png +0 -0
  35. data/assets/templates/methods-filter.png +0 -0
  36. data/assets/templates/stories-a.png +0 -0
  37. data/assets/templates/stories-b.png +0 -0
  38. data/assets/templates/stories-teaser.png +0 -0
  39. data/assets/templates/textblock-highlight.png +0 -0
  40. data/assets/templates/textblock-with-image.png +0 -0
  41. data/assets/templates/textblock.png +0 -0
  42. data/assets/templates/tooltip.png +0 -0
  43. data/node_modules/@creativebulma/bulma-tooltip/LICENSE +21 -0
  44. data/node_modules/@creativebulma/bulma-tooltip/README.md +34 -0
  45. data/node_modules/@creativebulma/bulma-tooltip/dist/bulma-tooltip.css +1919 -0
  46. data/node_modules/@creativebulma/bulma-tooltip/dist/bulma-tooltip.min.css +2 -0
  47. data/node_modules/@creativebulma/bulma-tooltip/package.json +104 -0
  48. data/node_modules/@creativebulma/bulma-tooltip/src/docs/archetypes/default.md +6 -0
  49. data/node_modules/@creativebulma/bulma-tooltip/src/docs/config.toml +18 -0
  50. data/node_modules/@creativebulma/bulma-tooltip/src/docs/content/_index.md +27 -0
  51. data/node_modules/@creativebulma/bulma-tooltip/src/docs/content/changelog.md +11 -0
  52. data/node_modules/@creativebulma/bulma-tooltip/src/docs/content/get-started.md +128 -0
  53. data/node_modules/@creativebulma/bulma-tooltip/src/docs/content/how-to/customize.md +48 -0
  54. data/node_modules/@creativebulma/bulma-tooltip/src/docs/content/release/1.0.1.md +11 -0
  55. data/node_modules/@creativebulma/bulma-tooltip/src/docs/content/release/1.0.2.md +13 -0
  56. data/node_modules/@creativebulma/bulma-tooltip/src/docs/content/release/1.1.0.md +13 -0
  57. data/node_modules/@creativebulma/bulma-tooltip/src/docs/content/release/1.2.md +13 -0
  58. data/node_modules/@creativebulma/bulma-tooltip/src/docs/content/release/1.md +13 -0
  59. data/node_modules/@creativebulma/bulma-tooltip/src/docs/data/social.json +7 -0
  60. data/node_modules/@creativebulma/bulma-tooltip/src/docs/data/variables.json +62 -0
  61. data/node_modules/@creativebulma/bulma-tooltip/src/docs/data/versions.json +14 -0
  62. data/node_modules/@creativebulma/bulma-tooltip/src/docs/layouts/partials/head.html +26 -0
  63. data/node_modules/@creativebulma/bulma-tooltip/src/docs/static/css/bulma-tooltip.css +1919 -0
  64. data/node_modules/@creativebulma/bulma-tooltip/src/docs/static/css/bulma-tooltip.min.css +2 -0
  65. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/LICENSE +20 -0
  66. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/archetypes/changelog.md +11 -0
  67. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/archetypes/default.md +2 -0
  68. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/404.html +33 -0
  69. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/_default/_markup/render-link.html +1 -0
  70. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/_default/baseof.html +11 -0
  71. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/_default/list.html +0 -0
  72. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/_default/single.html +25 -0
  73. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/index.html +24 -0
  74. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/partials/footer.html +6 -0
  75. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/partials/head.html +25 -0
  76. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/partials/header.html +0 -0
  77. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/partials/menu.html +33 -0
  78. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/partials/navbar.html +31 -0
  79. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/api.html +71 -0
  80. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/button.html +17 -0
  81. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/changelog.html +13 -0
  82. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/link.html +13 -0
  83. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/notification.html +2 -0
  84. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/options.html +22 -0
  85. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/preview.html +31 -0
  86. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/tab.html +16 -0
  87. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/table.html +21 -0
  88. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/tabs.html +24 -0
  89. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/tag.html +35 -0
  90. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/layouts/shortcodes/variables.html +18 -0
  91. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/static/css/docs.css +375 -0
  92. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/static/images/clippy.svg +1 -0
  93. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/static/js/clipboard.min.js +7 -0
  94. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/static/js/docs.js +79 -0
  95. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/static/js/highlight.pack.js +3 -0
  96. data/node_modules/@creativebulma/bulma-tooltip/src/docs/themes/creativebulma/theme.toml +21 -0
  97. data/node_modules/@creativebulma/bulma-tooltip/src/sass/_animation.sass +4 -0
  98. data/node_modules/@creativebulma/bulma-tooltip/src/sass/_position.sass +124 -0
  99. data/node_modules/@creativebulma/bulma-tooltip/src/sass/_responsiveness.sass +151 -0
  100. data/node_modules/@creativebulma/bulma-tooltip/src/sass/_variables.sass +12 -0
  101. data/node_modules/@creativebulma/bulma-tooltip/src/sass/index.sass +131 -0
  102. data/package-lock.json +6 -0
  103. data/package.json +3 -0
  104. metadata +93 -3
  105. data/_includes/introduction.html +0 -8
@@ -0,0 +1,24 @@
1
+ <div class="tabs">
2
+ <ul>
3
+ {{ $tabTotal := .Get "tabTotal" }}
4
+ {{ range $i, $sequence := (seq $tabTotal) }}
5
+
6
+ {{ $tabID := $.Get "tabID" }}
7
+ {{ $tabName := (print "tabName" $sequence) }}
8
+ {{ $tabHREF := (print "tab" $tabID $sequence) }}
9
+
10
+ {{ if eq $sequence 1 }}
11
+ <li class="is-active" id="nav-{{ $tabID }}" data-toggle="tab" data-target="#{{ $tabHREF | urlize }}" role="tab" aria-selected="true">
12
+ <a>{{ $.Get $tabName }}</a>
13
+ </li>
14
+ {{ else }}
15
+ <li id="nav-{{ $tabID }}" data-toggle="tab" data-target="#{{ $tabHREF | urlize }}" role="tab" aria-selected="false">
16
+ <a>{{ $.Get $tabName }}</a>
17
+ </li>
18
+ {{ end }}
19
+ {{ end }}
20
+ </ul>
21
+ </div>
22
+ <div class="tab-content" id="{{ $.Get "tabID" }}">
23
+ {{ .Inner }}
24
+ </div>
@@ -0,0 +1,35 @@
1
+ {{ $type := .Get 0 }}
2
+ {{ $text := .Get 1 }}
3
+ {{ with eq $type "added" }}
4
+ <span class="tag is-capitalize is-info">{{ $type }}</span>
5
+ {{ end }}
6
+ {{ with eq $type "changed" }}
7
+ <span class="tag is-capitalize is-warning">{{ $type }}</span>
8
+ {{ end }}
9
+ {{ with eq $type "fixed" }}
10
+ <span class="tag is-capitalize is-success">{{ $type }}</span>
11
+ {{ end }}
12
+ {{ with eq $type "performance" }}
13
+ <span class="tag is-capitalize is-link">{{ $type }}</span>
14
+ {{ end }}
15
+ {{ with eq $type "security" }}
16
+ <span class="tag is-capitalize is-danger">{{ $type }}</span>
17
+ {{ end }}
18
+ {{ with eq $type "removed" }}
19
+ <span class="tag is-capitalize is-dark">{{ $type }}</span>
20
+ {{ end }}
21
+ {{ with eq $type "deprecated" }}
22
+ <span class="tag is-capitalize is-black">{{ $type }}</span>
23
+ {{ end }}
24
+ {{ with eq $type "info" }}
25
+ <span class="tag is-capitalize is-info">{{ $text }}</span>
26
+ {{ end }}
27
+ {{ with eq $type "success" }}
28
+ <span class="tag is-capitalize is-success">{{ $text }}</span>
29
+ {{ end }}
30
+ {{ with eq $type "warning" }}
31
+ <span class="tag is-capitalize is-warning">{{ $text }}</span>
32
+ {{ end }}
33
+ {{ with eq $type "danger" }}
34
+ <span class="tag is-capitalize is-danger">{{ $text }}</span>
35
+ {{ end }}
@@ -0,0 +1,18 @@
1
+ <table class="table is-hoverable">
2
+ <thead>
3
+ <tr>
4
+ <th class="is-narrow">Variable name</th>
5
+ <th>Description</th>
6
+ <th class="is-narrow">Default value</th>
7
+ </tr>
8
+ </thead>
9
+ <tbody>
10
+ {{ range .Site.Data.variables }}
11
+ <tr>
12
+ <td class="is-narrow">{{ .name }}</td>
13
+ <td>{{ .description | $.Page.RenderString }}</td>
14
+ <td class="is-narrow"><code>{{ .value }}</code></td>
15
+ </tr>
16
+ {{ end }}
17
+ </tbody>
18
+ </table>
@@ -0,0 +1,375 @@
1
+ html {
2
+ font-size: 15px;
3
+ font-weight: 400;
4
+ }
5
+
6
+ html,
7
+ body,
8
+ .is-fullheight {
9
+ height: 100%;
10
+ min-height: 100%;
11
+ overflow-y: auto;
12
+ }
13
+
14
+ body {
15
+ background-color: #fff;
16
+ color: #5a6270 !important;
17
+ font-family: Source Sans Pro, sans-serif;
18
+ }
19
+
20
+ .is-fullheight .navbar+.is-fullheight {
21
+ height: calc(100% - 3.25rem);
22
+ min-height: calc(100% - 3.25rem);
23
+ }
24
+
25
+ .brand {
26
+ line-height: 1.5;
27
+ padding: .5rem .75rem;
28
+ height: 3.25rem;
29
+ display: block;
30
+ font-weight: 700;
31
+ }
32
+
33
+ .navbar a:not(.button) {
34
+ color: #5a6270 !important;
35
+ text-decoration: none;
36
+ }
37
+ .navbar a:not(.button):hover {
38
+ color: #6056FF !important;
39
+ text-decoration: none;
40
+ }
41
+
42
+ .content h1,
43
+ .content h2 {
44
+ font-weight: 500;
45
+ }
46
+
47
+ .content h1+h2 {
48
+ margin-top: 0 !important;
49
+ font-size: 1.3em;
50
+ font-weight: 500;
51
+ color: #5A6270;
52
+ padding-bottom: calc(1.45rem - 1px);
53
+ border-bottom: 1px solid #dee2e7;
54
+ }
55
+
56
+ .content h2+h3 {
57
+ margin-top: 0 !important;
58
+ font-size: 1.125em;
59
+ font-weight: 500;
60
+ color: #5A6270;
61
+ padding-bottom: calc(1.45rem - 1px);
62
+ }
63
+
64
+ .content h1,
65
+ .content h2,
66
+ .content h3 {
67
+ color: #2f353f;
68
+ }
69
+
70
+ .content h4,
71
+ .content h5,
72
+ .content h6 {
73
+ color: #5a6270;
74
+ margin: 1em 0 .8em 0;
75
+ }
76
+
77
+ a:not(.button) {
78
+ color: #6056FF;
79
+ }
80
+
81
+ a:not(.button):hover {
82
+ text-decoration: underline;
83
+ }
84
+
85
+ .menu-list {
86
+ padding: 3rem 0;
87
+ }
88
+
89
+ .menu-list li ul {
90
+ font-size: .85rem;
91
+ }
92
+
93
+ .menu-item:not(.has-dropdown) {
94
+ padding: .5rem 1rem;
95
+ }
96
+
97
+ .menu {
98
+ background-color: transparent !important;
99
+ box-shadow: none !important;
100
+ border-right: 1px solid #DEE2E7;
101
+ overflow-y: auto;
102
+ }
103
+
104
+ .menu a {
105
+ color: #5a6270 !important;
106
+ }
107
+
108
+ .menu a:hover {
109
+ text-decoration: none;
110
+ }
111
+
112
+ ol li {
113
+ margin-bottom: 1.25em;
114
+ }
115
+
116
+ hr {
117
+ margin: 4rem 0;
118
+ }
119
+ hr.is-small {
120
+ margin: 2rem 0;
121
+ margin-bottom: 1rem;
122
+ }
123
+
124
+ code,
125
+ kbd,
126
+ pre,
127
+ samp {
128
+ font-family: "Consolas", menlo, monospace;
129
+ font-size: 92%;
130
+ }
131
+
132
+ code {
133
+ padding: .1em .3em;
134
+ border-radius: .3em;
135
+ font-size: .9em;
136
+ color: #6056FF;
137
+ background: #ebeef0;
138
+ overflow-x: auto;
139
+ }
140
+
141
+ code+.copy-to-clipboard {
142
+ margin-left: -1px;
143
+ border-left: 0 !important;
144
+ font-size: inherit !important;
145
+ vertical-align: middle;
146
+ height: 24px;
147
+ top: 0;
148
+ }
149
+
150
+ pre {
151
+ padding: 1rem;
152
+ background: #f5f6fa !important;
153
+ border: 0;
154
+ border-radius: 2px;
155
+ line-height: 1.15;
156
+ position: relative;
157
+ border: 1px solid rgb(222, 226, 231);
158
+ }
159
+
160
+ pre code {
161
+ color: #586e75;
162
+ background: inherit;
163
+ white-space: inherit;
164
+ border: 0;
165
+ padding: 0;
166
+ margin: 0;
167
+ font-size: 0.875em;
168
+ line-height: 1.375;
169
+ max-width: 100%;
170
+ width: 100%;
171
+ display: block;
172
+ overflow: auto;
173
+ }
174
+
175
+ .copy-to-clipboard {
176
+ background-image: url(../images/clippy.svg);
177
+ background-position: 50% 50%;
178
+ background-size: 16px 16px;
179
+ background-repeat: no-repeat;
180
+ width: 27px;
181
+ height: 1.45rem;
182
+ top: -1px;
183
+ display: inline-block;
184
+ vertical-align: middle;
185
+ position: relative;
186
+ color: #586e75;
187
+ background-color: #FFF7DD;
188
+ margin-left: -.2rem;
189
+ cursor: pointer;
190
+ border-radius: 0 2px 2px 0;
191
+ margin-bottom: 1px;
192
+ }
193
+
194
+ .copy-to-clipboard:hover {
195
+ background-color: #E8E2CD;
196
+ }
197
+
198
+ pre .copy-to-clipboard {
199
+ position: absolute;
200
+ right: 4px;
201
+ top: 4px;
202
+ background-color: white;
203
+ color: #ccc;
204
+ border-radius: 2px;
205
+ }
206
+
207
+ pre .copy-to-clipboard:hover {
208
+ background-color: whitesmoke;
209
+ color: #fff !important;
210
+ }
211
+
212
+ .notification {
213
+ background: #f9f9f9 !important;
214
+ border-left: 3px solid #6056FF;
215
+ color: #67757c !important;
216
+ }
217
+
218
+ .notification.is-white {
219
+ border-left-color: white;
220
+ }
221
+
222
+ .notification.is-black {
223
+ border-left-color: #0a0a0a;
224
+ }
225
+
226
+ .notification.is-light {
227
+ border-left-color: whitesmoke;
228
+ }
229
+
230
+ .notification.is-dark {
231
+ border-left-color: #2f3d4a;
232
+ }
233
+
234
+ .notification.is-primary {
235
+ border-left-color: #6056FF;
236
+ }
237
+
238
+ .notification.is-link {
239
+ border-left-color: #3273dc;
240
+ }
241
+
242
+ .notification.is-info {
243
+ border-left-color: #37aee3;
244
+ }
245
+
246
+ .notification.is-success {
247
+ border-left-color: #26c6da;
248
+ }
249
+
250
+ .notification.is-warning {
251
+ border-left-color: #ffb22b;
252
+ }
253
+
254
+ .notification.is-danger {
255
+ border-left-color: #ef5350;
256
+ }
257
+
258
+ .tabs {
259
+ margin-bottom: 0 !important;
260
+ }
261
+
262
+ .tabs ul {
263
+ margin-left: 0;
264
+ margin-top: 0;
265
+ }
266
+
267
+ .tabs ul li a {
268
+ color: #5a6270 !important;
269
+ border-bottom: 2px solid transparent;
270
+ padding: 1em;
271
+ }
272
+
273
+ .tabs ul li.is-active a {
274
+ color: #6056FF !important;
275
+ border-bottom-color: #6056FF !important;
276
+ }
277
+
278
+ .tabs ul li a:hover {
279
+ text-decoration: none;
280
+ }
281
+
282
+ .tab-content .tab-pane {
283
+ display: none;
284
+ padding: 1em;
285
+ }
286
+
287
+ .tab-content .tab-pane.is-active {
288
+ display: block;
289
+ }
290
+
291
+ .preview {
292
+ border: 1px solid rgb(222, 226, 231);
293
+ border-radius: 3px;
294
+ margin-bottom: 1.5rem;
295
+ }
296
+
297
+ .preview .tab-content .tab-pane:nth-child(2) {
298
+ background-color: #f5f6fa;
299
+ }
300
+
301
+ .preview .tab-content .tab-pane:nth-child(2) pre {
302
+ border: none !important;
303
+ }
304
+
305
+ .content table td {
306
+ padding: 1.25em .75em;
307
+ }
308
+
309
+ .symbol {
310
+ display: block;
311
+ font-size: 1.5rem;
312
+ padding: 1rem 0;
313
+ text-decoration: none !important;
314
+ }
315
+
316
+ .symbol .symbol-name {
317
+ font-size: 85.4%;
318
+ font-weight: 700;
319
+ color: #050607;
320
+ padding: 2px 5px 3px;
321
+ background-color: rgba(238, 240, 244, 0.74);
322
+ border-radius: 3px;
323
+ }
324
+
325
+ .symbol .symbol-separator {
326
+ background-color: transparent;
327
+ color: #aaafbd;
328
+ }
329
+
330
+ .symbol .symbol-type {
331
+ color: #7e879c;
332
+ font-weight: 400;
333
+ background-color: transparent;
334
+ }
335
+
336
+
337
+ .param {
338
+ margin-bottom: .5rem !important;
339
+ }
340
+
341
+ .param+.param-description {
342
+ margin-bottom: 1.5rem;
343
+ }
344
+
345
+ .param-name,
346
+ .param-type {
347
+ font-size: 85.4%;
348
+ font-weight: 700;
349
+ color: #050607;
350
+ padding: 2px 5px 3px;
351
+ background-color: rgba(238, 240, 244, 0.74);
352
+ border-radius: 3px;
353
+ }
354
+
355
+ .param-type {
356
+ font-size: 1em;
357
+ font-weight: 400;
358
+ color: #37aee3;
359
+ }
360
+
361
+ .param-type .param-type-separator {
362
+ color: #7a7a7a;
363
+ }
364
+
365
+ .param-separator {
366
+ background-color: transparent;
367
+ color: #aaafbd;
368
+ margin: .25rem;
369
+ }
370
+
371
+ .param-description {
372
+ padding: 10px 20px 7px;
373
+ border-top: 1px solid #eef0f5 !important;
374
+ background: #fbfbfb;
375
+ }
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="896" height="1024"><path d="M128 768h256v64H128v-64zm320-384H128v64h320v-64zm128 192V448L384 640l192 192V704h320V576H576zm-288-64H128v64h160v-64zM128 704h160v-64H128v64zm576 64h64v128c-1 18-7 33-19 45s-27 18-45 19H64c-35 0-64-29-64-64V192c0-35 29-64 64-64h192C256 57 313 0 384 0s128 57 128 128h192c35 0 64 29 64 64v320h-64V320H64v576h640V768zM128 256h512c0-35-29-64-64-64h-64c-35 0-64-29-64-64s-29-64-64-64-64 29-64 64-29 64-64 64h-64c-35 0-64 29-64 64z"/></svg>
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * clipboard.js v2.0.4
3
+ * https://zenorocha.github.io/clipboard.js
4
+ *
5
+ * Licensed MIT © Zeno Rocha
6
+ */
7
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return function(n){var o={};function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=n,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}}(),a=o(n(1)),c=o(n(3)),u=o(n(4));function o(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function o(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return n.resolveOptions(e),n.listenClick(t),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(o,c.default),i(o,[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===r(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,u.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return s("action",t)}},{key:"defaultTarget",value:function(t){var e=s("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return s("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),o}();function s(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}t.exports=l},function(t,e,n){"use strict";var o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}}(),a=n(2),c=(o=a)&&o.__esModule?o:{default:o};var u=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return i(e,[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,c.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,c.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":r(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),e}();t.exports=u},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,a=o.length;i<a;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=n},function(t,e,n){var d=n(5),h=n(6);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!d.string(e))throw new TypeError("Second argument must be a String");if(!d.fn(n))throw new TypeError("Third argument must be a Function");if(d.node(t))return s=e,f=n,(l=t).addEventListener(s,f),{destroy:function(){l.removeEventListener(s,f)}};if(d.nodeList(t))return a=t,c=e,u=n,Array.prototype.forEach.call(a,function(t){t.addEventListener(c,u)}),{destroy:function(){Array.prototype.forEach.call(a,function(t){t.removeEventListener(c,u)})}};if(d.string(t))return o=t,r=e,i=n,h(document.body,o,r,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,r,i,a,c,u,l,s,f}},function(t,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var a=n(7);function i(t,e,n,o,r){var i=function(e,n,t,o){return function(t){t.delegateTarget=a(t.target,n),t.delegateTarget&&o.call(e,t)}}.apply(this,arguments);return t.addEventListener(n,i,r),{destroy:function(){t.removeEventListener(n,i,r)}}}t.exports=function(t,e,n,o,r){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return i(t,e,n,o,r)}))}},function(t,e){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}}])});
@@ -0,0 +1,79 @@
1
+ document.addEventListener('DOMContentLoaded', function() {
2
+ // clipboard
3
+ var clipInit = false;
4
+ var codes = document.querySelectorAll('code') || [];
5
+ codes.forEach(function(code) {
6
+ var text = code.innerHTML;
7
+
8
+ if (text.length > 5) {
9
+ if (!clipInit) {
10
+ var text, clip = new ClipboardJS('.copy-to-clipboard', {
11
+ text: function(trigger) {
12
+ text = trigger.previousSibling.innerHTML;
13
+ return text.replace(/^\$\s/gm, '');
14
+ }
15
+ });
16
+
17
+ var inPre;
18
+ clip.on('success', function(e) {
19
+ e.clearSelection();
20
+ inPre = e.trigger.parentNode.tagName == 'PRE';
21
+ e.trigger.setAttribute('aria-label', 'Copied to clipboard!');
22
+ e.trigger.classList.add('tooltipped');
23
+ e.trigger.classList.add('tooltipped-' + (inPre ? 'w' : 's'));
24
+ });
25
+
26
+ clip.on('error', function(e) {
27
+ inPre = e.trigger.parentNode.tagName == 'PRE';
28
+ e.trigger.setAttribute('aria-label', fallbackMessage(e.action));
29
+ e.trigger.classList.add('tooltipped');
30
+ e.trigger.classList.add('tooltipped-' + (inPre ? 'w' : 's'));
31
+ document.addEventListener('copy', function(){
32
+ e.trigger.setAttribute('aria-label', 'Copied to clipboard!');
33
+ e.trigger.classList.add('tooltipped');
34
+ e.trigger.classList.add('tooltipped-' + (inPre ? 'w' : 's'));
35
+ });
36
+ });
37
+
38
+ clipInit = true;
39
+ }
40
+
41
+ var copyNode = document.createElement('div');
42
+ copyNode.classList.add('copy-to-clipboard');
43
+ copyNode.setAttribute('title', 'Copy to clipboard');
44
+
45
+ code.after(copyNode);
46
+ code.nextSibling.addEventListener('mouseleave', function() {
47
+ this.setAttribute('aria-label', null);
48
+ this.classList.remove('tooltipped');
49
+ this.classList.remove('tooltipped-s');
50
+ this.classList.remove('tooltipped-w');
51
+ });
52
+ }
53
+ });
54
+
55
+ const tabs = document.querySelectorAll('[data-toggle="tab"]') || [];
56
+ tabs.forEach(function(tab) {
57
+ tab.addEventListener('click', function(e) {
58
+ e.preventDefault();
59
+ e.stopPropagation();
60
+
61
+ const tabPane = document.querySelector(e.currentTarget.dataset.target);
62
+
63
+ const activeTab = e.currentTarget.closest('.tabs ul').querySelector('li.is-active');
64
+ const activeTabPane = document.querySelector(activeTab.dataset.target);
65
+ if (activeTab && !activeTab.isSameNode(e.currentTarget)) {
66
+ activeTab.classList.remove('is-active');
67
+ if (activeTabPane) {
68
+ activeTabPane.classList.remove('is-active');
69
+ }
70
+
71
+ }
72
+
73
+ e.currentTarget.classList.add('is-active');
74
+ if (tabPane) {
75
+ tabPane.classList.add('is-active');
76
+ }
77
+ });
78
+ });
79
+ }, false);