o2c-opendoc-theme 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +2 -0
  4. data/_includes/directory.html +127 -0
  5. data/_includes/document-title.txt +57 -0
  6. data/_includes/toc.html +127 -0
  7. data/_includes/toolbar.html +68 -0
  8. data/_includes/welcome.html +5 -0
  9. data/_layouts/default.html +147 -0
  10. data/_layouts/home.html +4 -0
  11. data/_layouts/iframe.html +13 -0
  12. data/_layouts/page.html +4 -0
  13. data/_layouts/print.html +27 -0
  14. data/_sass/_base.scss +398 -0
  15. data/_sass/_constants.scss +87 -0
  16. data/_sass/_iframe.scss +7 -0
  17. data/_sass/_layout.scss +419 -0
  18. data/_sass/_nav.scss +592 -0
  19. data/_sass/_print.scss +70 -0
  20. data/_sass/_syntax-highlighting.scss +61 -0
  21. data/_sass/_toolbar.scss +372 -0
  22. data/_sass/_welcome.scss +41 -0
  23. data/assets/export.md +30 -0
  24. data/assets/images/chevron-up-white.svg +1 -0
  25. data/assets/images/chevron-up.svg +1 -0
  26. data/assets/images/close.svg +17 -0
  27. data/assets/images/favicon.ico +0 -0
  28. data/assets/images/feedback-hover.svg +3 -0
  29. data/assets/images/feedback-mobile.svg +1 -0
  30. data/assets/images/feedback.svg +1 -0
  31. data/assets/images/github-hover.svg +3 -0
  32. data/assets/images/github.svg +1 -0
  33. data/assets/images/home.svg +14 -0
  34. data/assets/images/index-img.png +0 -0
  35. data/assets/images/logo-order2cash.svg +65 -0
  36. data/assets/images/logo.png +0 -0
  37. data/assets/images/menu.svg +1 -0
  38. data/assets/images/opendoc-logo-full.svg +10 -0
  39. data/assets/images/pdf-hover.svg +11 -0
  40. data/assets/images/pdf.svg +9 -0
  41. data/assets/images/search-icon-dark.svg +19 -0
  42. data/assets/images/search-icon-white.svg +12 -0
  43. data/assets/images/share.svg +1 -0
  44. data/assets/images/sidebar-hover.svg +3 -0
  45. data/assets/images/sidebar.svg +1 -0
  46. data/assets/images/vertical-dots.svg +1 -0
  47. data/assets/images/x-mobile.svg +1 -0
  48. data/assets/index.html +5 -0
  49. data/assets/js/banner.js +20 -0
  50. data/assets/js/google_analytics.js +11 -0
  51. data/assets/js/header.js +31 -0
  52. data/assets/js/helpers.js +24 -0
  53. data/assets/js/lunr.min.js +6 -0
  54. data/assets/js/navigation.js +214 -0
  55. data/assets/js/page-index.js +57 -0
  56. data/assets/js/pqueue.js +373 -0
  57. data/assets/js/pre-loader.js +43 -0
  58. data/assets/js/search.js +580 -0
  59. data/assets/js/toolbar.js +144 -0
  60. data/assets/pdfs/empty +0 -0
  61. data/assets/siteIndex.json +56 -0
  62. data/assets/startup/build.sh +41 -0
  63. data/assets/startup/docprint.html +20 -0
  64. data/assets/startup/pdf-gen.js +397 -0
  65. data/assets/startup/prebuild-lunr-index.js +52 -0
  66. data/assets/styles/main.scss +13 -0
  67. data/assets/styles/normalize.css +427 -0
  68. data/assets/vendor/babel-polyfill.min.js +3 -0
  69. data/assets/vendor/dom4.js +2 -0
  70. data/assets/vendor/fetch.umd.js +531 -0
  71. data/assets/vendor/headroom.min.js +7 -0
  72. data/assets/vendor/jump.min.js +2 -0
  73. data/assets/vendor/mark.min.js +7 -0
  74. data/assets/vendor/popper.min.js +5 -0
  75. data/assets/vendor/web-share-shim.bundle.min.js +2 -0
  76. metadata +159 -0
@@ -0,0 +1,87 @@
1
+ // Variables
2
+ // ============================================================================
3
+ // Fonts
4
+ $base-font-family: "Noto Sans", "Lucida Sans", "Arial", sans-serif;
5
+ $header-font-family: "Noto Serif", "Lucida Bright", "Times New Roman", serif;
6
+ $base-font-size: 18px;
7
+ $button-font-size: 16px;
8
+ $mobile-font-size: 15px;
9
+ $mobile-button-font-size: 14px;
10
+ $nav-font-size: 15px;
11
+ $base-font-weight: 400;
12
+ $mono-font-family: "Fira Mono", monospace;
13
+ // Colors
14
+ $slate-gray: #454f5b;
15
+ $primary-text-color: $slate-gray;
16
+ $secondary-text-color: #999;
17
+ $header-text-color: $slate-gray;
18
+ $subheader-text-color: #9b9b9b;
19
+ $selected-text-color: #000;
20
+ $divider-color: #d8d8d8;
21
+ $base-background-color: #fff;
22
+ $border-color: #edeced;
23
+ $well-background-color: #eeeeee;
24
+ $search-box-background-color: #f3f3f3;
25
+ $nav-text-color: #a3a9ad;
26
+ $nav-background-hover-color: rgba($primary-brand-color, 0.1);
27
+ $dark-button-color: #272e36;
28
+ $highlight-color: #FFF59D;
29
+ // Spacing
30
+ // 1em -> 14px
31
+ $base-line-height: 30px;
32
+ $base-horizontal-padding: 1em;
33
+ $base-vertical-padding: 0.5em;
34
+ $block-spacing: 1.5rem;
35
+ $item-spacing: 1rem;
36
+ $inline-spacing: 0.2em;
37
+ $base-border-radius: 0.2rem;
38
+ // Breakpoints, if this breakpoint is changed, be sure to change those in the .js files too
39
+ $desktop-screen-breakpoint: 992px;
40
+ $large-screen-breakpoint: 1400px;
41
+
42
+ // Variables
43
+ // ============================================================================
44
+ $small-spacing: 10px;
45
+ $spacing: 12px;
46
+ $med-spacing: 1.5 * $spacing;
47
+ $large-spacing: 2 * $spacing;
48
+ $desktop-spacing: 3.25 * $large-spacing;
49
+ $site-padding: 27px;
50
+ $max-content-width: 864px;
51
+ $body-padding: calc((100vw - 420px - #{$max-content-width}) / 2);
52
+ $body-full-view-padding: calc((100vw - #{$max-content-width}) / 2);
53
+ $body-sidebar-right-padding: 50px;
54
+
55
+ $site-header-height: 80px;
56
+ $mobile-site-header-height: 60px;
57
+ $doc-header-height: 80px;
58
+ $toggled-doc-header-height: 80px;
59
+ $site-nav-collapse-duration: 0.2s;
60
+ $site-nav-collapse-timing: ease-out;
61
+ $site-nav-width: 30vw;
62
+ $back-to-docs-width: $doc-header-height - 1px;
63
+ $mobile-back-to-docs-width: $mobile-site-header-height - 1px;
64
+
65
+ $max-site-nav-width: 420px;
66
+ $site-nav-shadow-inset: inset -7px 0 13px -5px rgba(0, 0, 0, 0.15);
67
+ $site-nav-shadow-outset: 7px 0 13px 5px rgba(0, 0, 0, 0.15);
68
+ $site-doc-header-height: $site-header-height + $doc-header-height;
69
+ $mobile-site-doc-header-height: $mobile-site-header-height + $doc-header-height;
70
+
71
+ $toolbar-button-height: 50px;
72
+ $toolbar-container-height: calc(#{$toolbar-button-height} * 3);
73
+
74
+ $fab-button-size: 50px;
75
+ $fab-transtition-duration: 0.2s;
76
+
77
+ // z-index
78
+ // ============================================================================
79
+ $site-main-z-index: 0;
80
+ $desktop-navigation-z-index: 1;
81
+ $doc-header-z-index: 2;
82
+ $fab-z-index: 3;
83
+ $fab-trigger-z-index: 3;
84
+ $site-header-z-index: 10;
85
+ $mobile-navigation-z-index: 11;
86
+ $search-results-z-index: 12;
87
+ $toolbar-z-index: 12;
@@ -0,0 +1,7 @@
1
+ .iframe {
2
+ &.site-main {
3
+ padding: 10px;
4
+ top: 0;
5
+ left: 0;
6
+ }
7
+ }
@@ -0,0 +1,419 @@
1
+ // Body
2
+ // ----
3
+ body {
4
+ -webkit-overflow-scrolling: touch;
5
+ overflow-x: hidden;
6
+ box-sizing: border-box;
7
+
8
+ mark {
9
+ font-weight: bold;
10
+ background-color: $highlight-color;
11
+ }
12
+ @include mobile-screen {
13
+ &.menu-toggled {
14
+ // Prevents scrolling main body when scrolling nav
15
+ overflow: hidden;
16
+ }
17
+ }
18
+ }
19
+
20
+ .site-header {
21
+ // site-header should be beneath mobile-menu
22
+ box-sizing: border-box;
23
+ z-index: $site-header-z-index;
24
+ height: $site-header-height;
25
+ background: white;
26
+ position: fixed;
27
+ top: 0;
28
+ left: 0;
29
+ right: 0;
30
+ border-bottom: 1px solid $divider-color;
31
+ display: flex;
32
+ justify-content: space-between;
33
+ align-items: center;
34
+ padding: 0 $site-padding;
35
+
36
+ a {
37
+ line-height: 1;
38
+ &:hover {
39
+ text-decoration: none;
40
+ }
41
+ }
42
+
43
+ @include mobile-screen {
44
+ padding: 0 $spacing 0 $large-spacing;
45
+ height: $mobile-site-header-height;
46
+ right: $mobile-site-header-height;
47
+ }
48
+
49
+ .site-header-left {
50
+ display: flex;
51
+ align-items: baseline;
52
+
53
+ .site-header-text {
54
+ color: $primary-brand-color;
55
+ margin: 0;
56
+ font-family: $header-font-family;
57
+ font-size: 25px;
58
+ }
59
+
60
+ .site-last-updated {
61
+ margin: 0;
62
+ font-size: 11px;
63
+ letter-spacing: 0.6px;
64
+ color: $subheader-text-color;
65
+ margin-left: $large-spacing;
66
+ }
67
+
68
+ @include mobile-screen {
69
+ display: none;
70
+ }
71
+ }
72
+
73
+ .site-header-right {
74
+ display: flex;
75
+ flex-direction: row;
76
+ align-items: center;
77
+
78
+ #contact-us {
79
+ margin-right: calc(2 * #{$large-spacing});
80
+ font-size: 12px;
81
+ color: $header-text-color;
82
+ font-weight: bold;
83
+ letter-spacing: 1px;
84
+ text-transform: uppercase;
85
+
86
+ span {
87
+ text-decoration: none;
88
+ }
89
+
90
+ @include mobile-screen {
91
+ display: none;
92
+ }
93
+ }
94
+
95
+ .agency-logo {
96
+ max-width: 180px;
97
+ max-height: 44px;
98
+ }
99
+
100
+ .top-mobile-btn {
101
+ display: none;
102
+ }
103
+
104
+ @include mobile-screen {
105
+ // Uncomment if u wanna put another button in the mobile header
106
+ // flex-direction: row-reverse;
107
+ // justify-content: space-between;
108
+ width: 100%;
109
+ justify-content: space-between;
110
+
111
+ .agency-logo {
112
+ max-width: 150px;
113
+ max-height: 30px;
114
+ }
115
+
116
+ .top-mobile-btn {
117
+ @include flex-center();
118
+ width: $mobile-site-header-height;
119
+ height: $mobile-site-header-height;
120
+ cursor: pointer;
121
+ img {
122
+ height: 24px;
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
128
+
129
+ .index .doc-header {
130
+ @include desktop-screen {
131
+ display: none;
132
+ }
133
+ }
134
+
135
+ // Document Header
136
+ // -----------
137
+ .doc-header {
138
+ position: fixed;
139
+ z-index: $doc-header-z-index;
140
+ top: $mobile-site-header-height;
141
+ left: 0;
142
+ right: 0;
143
+ display: flex;
144
+ justify-content: space-between;
145
+ box-sizing: border-box;
146
+ align-self: stretch;
147
+ padding: 0 calc(2 * #{$spacing});
148
+ height: $doc-header-height;
149
+ background: white;
150
+ transition-duration: $site-nav-collapse-duration;
151
+ transition-property: height, padding, top, left;
152
+ transition-timing-function: $site-nav-collapse-timing;
153
+ // to allow mobile menu to be visible outside of doc-header
154
+ overflow: visible;
155
+
156
+ @include mobile-screen {
157
+ &.headroom--pinned {
158
+ top: $mobile-site-header-height;
159
+ }
160
+
161
+ &.headroom--unpinned {
162
+ top: -$doc-header-height;
163
+ }
164
+ }
165
+
166
+ @include desktop-screen {
167
+ padding: 0 $desktop-spacing;
168
+ left: $site-nav-width;
169
+ top: $site-header-height;
170
+
171
+ body.menu-toggled & {
172
+ left: 0;
173
+ transform: none;
174
+ height: $toggled-doc-header-height;
175
+ padding: 0 $site-padding;
176
+
177
+ .description-container {
178
+ display: flex;
179
+ align-items: baseline;
180
+ flex: 1;
181
+ flex-direction: column;
182
+ }
183
+ .description-title {
184
+ margin-bottom: 0;
185
+ margin-right: 30px;
186
+ }
187
+ }
188
+ }
189
+
190
+ @include large-screen {
191
+ left: $max-site-nav-width;
192
+ }
193
+
194
+ background-color: $base-background-color;
195
+ border-bottom: 1px solid $divider-color;
196
+ // Other
197
+ flex-direction: row;
198
+ align-items: center;
199
+
200
+ // Children
201
+ .description-container {
202
+ margin-right: $large-spacing;
203
+ width: 100%;
204
+
205
+ #document-title {
206
+ font-size: 20px;
207
+ color: $primary-brand-color;
208
+ overflow: hidden;
209
+ white-space: nowrap;
210
+ text-overflow: ellipsis;
211
+ // Max two lines (currently, max one line)
212
+ // line-height: 1.3em;
213
+ // max-height: 2.6em;
214
+ margin-bottom: 0;
215
+ }
216
+ #document-subtitle {
217
+ margin-top: 0.5em;
218
+ font-size: 11px;
219
+ letter-spacing: 0.6px;
220
+ overflow: hidden;
221
+ white-space: nowrap;
222
+ text-overflow: ellipsis;
223
+ color: #9b9b9b;
224
+ text-transform: uppercase;
225
+ }
226
+ }
227
+ }
228
+
229
+ // Site Main
230
+ //----------
231
+ .site-main {
232
+ position: relative;
233
+ z-index: $site-main-z-index;
234
+ left: 0;
235
+ right: 0;
236
+ top: 0;
237
+ padding-top: $mobile-site-doc-header-height;
238
+ padding-left: $large-spacing;
239
+ padding-right: $large-spacing;
240
+ padding-bottom: $spacing;
241
+ height: auto;
242
+ overflow: hidden;
243
+
244
+ // On small screens fill the screen with content
245
+ // Shift everything right when menu is open
246
+ box-sizing: border-box;
247
+ transition-duration: $site-nav-collapse-duration;
248
+ transition-property: left, top;
249
+ transition-timing-function: $site-nav-collapse-timing;
250
+
251
+ // On medium screens fill the residual space
252
+ // Expand to fill when the menu is closed
253
+ @include desktop-screen {
254
+ left: $site-nav-width;
255
+ padding-top: $site-doc-header-height;
256
+ padding-left: $desktop-spacing;
257
+ padding-right: $desktop-spacing + $body-sidebar-right-padding;
258
+ padding-bottom: $large-spacing;
259
+ width: 100vw - $site-nav-width;
260
+ height: auto;
261
+
262
+ body.menu-toggled & {
263
+ left: 0;
264
+ padding-top: $toggled-doc-header-height + $site-header-height;
265
+ padding-left: $body-full-view-padding;
266
+ padding-right: calc(#{$body-full-view-padding} + #{$body-sidebar-right-padding});
267
+ transform: none;
268
+ width: 100vw;
269
+ height: auto;
270
+ }
271
+ }
272
+
273
+ @include large-screen {
274
+ left: $max-site-nav-width;
275
+ padding-left: $body-padding;
276
+ padding-right: calc(#{$body-padding} + #{$body-sidebar-right-padding});
277
+ width: calc(100vw - #{$max-site-nav-width});
278
+ }
279
+
280
+ h1 {
281
+ padding-top: calc(1.6 * #{$block-spacing});
282
+ }
283
+ h2 {
284
+ padding-top: calc(1.4 * #{$block-spacing} + #{$mobile-site-header-height});
285
+ }
286
+ h3 {
287
+ padding-top: calc(1.2 * #{$block-spacing} + #{$mobile-site-header-height});
288
+ }
289
+ h4 {
290
+ padding-top: calc(1 * #{$block-spacing} + #{$mobile-site-header-height});
291
+ }
292
+ h5 {
293
+ padding-top: calc(0.8 * #{$block-spacing} + #{$mobile-site-header-height});
294
+ }
295
+ h6 {
296
+ padding-top: calc(0.6 * #{$block-spacing} + #{$mobile-site-header-height});
297
+ }
298
+ a {
299
+ text-decoration: underline;
300
+ // This css part looks complicated but is required to prevent highlighting
301
+ // text with inline links to include padding-top
302
+ &[href*="#"]:before {
303
+ display: inline;
304
+ content: "";
305
+ text-decoration: none;
306
+ position: relative;
307
+ top: -$mobile-site-header-height;
308
+ visibility: hidden;
309
+ }
310
+ }
311
+
312
+ h2,
313
+ h3,
314
+ h4,
315
+ h5,
316
+ h6 {
317
+ margin-top: -$mobile-site-header-height;
318
+ }
319
+
320
+ @include desktop-screen {
321
+ h1 {
322
+ padding-top: calc(2 * #{$block-spacing});
323
+ }
324
+ h2 {
325
+ padding-top: calc(1.8 * #{$block-spacing} + #{$site-doc-header-height});
326
+ }
327
+ h3 {
328
+ padding-top: calc(1.6 * #{$block-spacing} + #{$site-doc-header-height});
329
+ }
330
+ h4 {
331
+ padding-top: calc(1.4 * #{$block-spacing} + #{$site-doc-header-height});
332
+ }
333
+ h5 {
334
+ padding-top: calc(1.2 * #{$block-spacing} + #{$site-doc-header-height});
335
+ }
336
+ h6 {
337
+ padding-top: calc(1 * #{$block-spacing} + #{$site-doc-header-height});
338
+ }
339
+ a[href*="#"]:before {
340
+ top: -$site-doc-header-height;
341
+ }
342
+ h2,
343
+ h3,
344
+ h4,
345
+ h5,
346
+ h6 {
347
+ margin-top: calc(-1 * #{$site-doc-header-height});
348
+ }
349
+ }
350
+ }
351
+
352
+ .site-branding {
353
+ position: relative;
354
+ padding-top: $large-spacing;
355
+ padding-bottom: $large-spacing;
356
+ font-size: calc(#{$base-font-size} - 5px);
357
+ color: $secondary-text-color;
358
+ text-align: center;
359
+ transition-duration: $site-nav-collapse-duration;
360
+ transition-timing-function: $site-nav-collapse-timing;
361
+ a img {
362
+ height: 16px;
363
+ margin-bottom: -3px;
364
+ cursor: pointer;
365
+ }
366
+
367
+ @include desktop-screen {
368
+ padding-right: calc(#{$body-padding} + #{$body-sidebar-right-padding});
369
+ font-size: calc(#{$base-font-size} - 3px);
370
+ text-align: right;
371
+ a img {
372
+ height: 18px;
373
+ }
374
+ body.menu-toggled & {
375
+ padding-right: calc(#{$body-full-view-padding} + #{$body-sidebar-right-padding});
376
+ }
377
+ }
378
+ }
379
+
380
+ //custom-scrollbar
381
+ /* width */
382
+ ::-webkit-scrollbar {
383
+ width: 14px;
384
+ }
385
+
386
+ /* Track */
387
+ ::-webkit-scrollbar-track {
388
+ background: rgb(250, 250, 250);
389
+ }
390
+
391
+ /* Handle */
392
+ ::-webkit-scrollbar-thumb {
393
+ background: #d8d8d8;
394
+ -webkit-border-radius: 12px;
395
+ border-radius: 12px;
396
+ border: 4px solid rgba(0, 0, 0, 0);
397
+ background-clip: padding-box;
398
+ }
399
+
400
+ ::-webkit-scrollbar-thumb:hover {
401
+ background: #c8c8c8;
402
+ -webkit-border-radius: 12px;
403
+ border-radius: 12px;
404
+ border: 4px solid rgba(0, 0, 0, 0);
405
+ background-clip: padding-box;
406
+ }
407
+
408
+ //Examples
409
+ .examples-box {
410
+ padding: 10px;
411
+ border: 1px solid $divider-color;
412
+ border-radius: $base-border-radius;
413
+ }
414
+
415
+ //Videos
416
+ .opendoc-video {
417
+ text-align: center;
418
+ overflow: hidden;
419
+ }