arctic-vendor 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +51 -0
  3. data/CHANGELOG.md +12 -0
  4. data/Gemfile.lock +2 -3
  5. data/documentation/CHANGELOG.md +137 -0
  6. data/documentation/CODE_OF_CONDUCT.md +46 -0
  7. data/documentation/Gemfile +11 -0
  8. data/documentation/Gemfile.lock +130 -0
  9. data/documentation/LICENSE +13 -0
  10. data/documentation/Procfile +1 -0
  11. data/documentation/README.md +118 -0
  12. data/documentation/build/fonts/slate.eot +0 -0
  13. data/documentation/build/fonts/slate.svg +14 -0
  14. data/documentation/build/fonts/slate.ttf +0 -0
  15. data/documentation/build/fonts/slate.woff +0 -0
  16. data/documentation/build/fonts/slate.woff2 +0 -0
  17. data/documentation/build/images/logo.png +0 -0
  18. data/documentation/build/images/navbar.png +0 -0
  19. data/documentation/build/index.html +564 -0
  20. data/documentation/build/javascripts/all.js +131 -0
  21. data/documentation/build/javascripts/all_nosearch.js +31 -0
  22. data/documentation/build/stylesheets/print.css +1 -0
  23. data/documentation/build/stylesheets/screen.css +1 -0
  24. data/documentation/config.rb +57 -0
  25. data/documentation/deploy.sh +215 -0
  26. data/documentation/font-selection.json +148 -0
  27. data/documentation/lib/multilang.rb +16 -0
  28. data/documentation/lib/nesting_unique_head.rb +22 -0
  29. data/documentation/lib/toc_data.rb +30 -0
  30. data/documentation/lib/unique_head.rb +24 -0
  31. data/documentation/source/fonts/slate.eot +0 -0
  32. data/documentation/source/fonts/slate.svg +14 -0
  33. data/documentation/source/fonts/slate.ttf +0 -0
  34. data/documentation/source/fonts/slate.woff +0 -0
  35. data/documentation/source/fonts/slate.woff2 +0 -0
  36. data/documentation/source/images/logo.png +0 -0
  37. data/documentation/source/images/navbar.png +0 -0
  38. data/documentation/source/includes/_errors.md +17 -0
  39. data/documentation/source/index.html.md +150 -0
  40. data/documentation/source/javascripts/all.js +2 -0
  41. data/documentation/source/javascripts/all_nosearch.js +16 -0
  42. data/documentation/source/javascripts/app/_lang.js +164 -0
  43. data/documentation/source/javascripts/app/_search.js +98 -0
  44. data/documentation/source/javascripts/app/_toc.js +114 -0
  45. data/documentation/source/javascripts/lib/_energize.js +169 -0
  46. data/documentation/source/javascripts/lib/_imagesloaded.min.js +7 -0
  47. data/documentation/source/javascripts/lib/_jquery.highlight.js +108 -0
  48. data/documentation/source/javascripts/lib/_jquery.js +9831 -0
  49. data/documentation/source/javascripts/lib/_lunr.js +1910 -0
  50. data/documentation/source/layouts/layout.erb +116 -0
  51. data/documentation/source/stylesheets/_icon-font.scss +38 -0
  52. data/documentation/source/stylesheets/_normalize.scss +427 -0
  53. data/documentation/source/stylesheets/_rtl.scss +140 -0
  54. data/documentation/source/stylesheets/_variables.scss +103 -0
  55. data/documentation/source/stylesheets/_variables2.scss +147 -0
  56. data/documentation/source/stylesheets/print.css.scss +148 -0
  57. data/documentation/source/stylesheets/screen.css.scss +712 -0
  58. data/lib/arctic/vendor/api.rb +38 -4
  59. data/lib/arctic/vendor/product.rb +47 -0
  60. data/lib/arctic/vendor/vendor.rb +7 -6
  61. data/lib/arctic/vendor/version.rb +1 -1
  62. data/vendor.gemspec +1 -1
  63. metadata +57 -16
@@ -0,0 +1,712 @@
1
+ @charset "utf-8";
2
+
3
+ @import url("//fonts.googleapis.com/css?family=Open+Sans:400,600,700");
4
+ @import url("//fonts.googleapis.com/css?family=Raleway:300,500,700");
5
+
6
+ @import 'normalize';
7
+ @import 'variables'; //revert to tripit defaults
8
+ @import 'variables2'; // tradegecko overrides
9
+ @import 'icon-font';
10
+
11
+ /*
12
+ Copyright 2008-2013 Concur Technologies, Inc.
13
+
14
+ Licensed under the Apache License, Version 2.0 (the "License"); you may
15
+ not use this file except in compliance with the License. You may obtain
16
+ a copy of the License at
17
+
18
+ http://www.apache.org/licenses/LICENSE-2.0
19
+
20
+ Unless required by applicable law or agreed to in writing, software
21
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
22
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
23
+ License for the specific language governing permissions and limitations
24
+ under the License.
25
+ */
26
+
27
+ ////////////////////////////////////////////////////////////////////////////////
28
+ // GENERAL STUFF
29
+ ////////////////////////////////////////////////////////////////////////////////
30
+
31
+ html, body {
32
+ color: $main-text;
33
+ padding: 0;
34
+ margin: 0;
35
+ text-rendering: optimizeLegibility;
36
+ -webkit-font-smoothing: antialiased;
37
+ -moz-osx-font-smoothing: grayscale;
38
+ @extend %default-font;
39
+ background-color: $main-bg;
40
+ height: 100%;
41
+ -webkit-text-size-adjust: none; /* Never autoresize text */
42
+ }
43
+
44
+ ////////////////////////////////////////////////////////////////////////////////
45
+ // TABLE OF CONTENTS
46
+ ////////////////////////////////////////////////////////////////////////////////
47
+
48
+ #toc > ul > li > a > span {
49
+ float: right;
50
+ background-color: #2484FF;
51
+ border-radius: 40px;
52
+ width: 20px;
53
+ }
54
+
55
+ .toc-wrapper {
56
+ transition: left 0.3s ease-in-out;
57
+
58
+ overflow-y: auto;
59
+ overflow-x: hidden;
60
+ position: fixed;
61
+ z-index: 30;
62
+ top: 0;
63
+ left: 0;
64
+ bottom: 0;
65
+ width: $nav-width;
66
+ background-color: $nav-bg;
67
+ padding: $nav-padding;
68
+ box-sizing: border-box;
69
+
70
+ @extend %nav-font;
71
+
72
+ // language selector for mobile devices
73
+ .lang-selector {
74
+ display: none;
75
+ a {
76
+ padding-top: 0.5em;
77
+ padding-bottom: 0.5em;
78
+ }
79
+ }
80
+
81
+ // This is the logo at the top of the ToC
82
+ &>img {
83
+ display: block;
84
+ max-width: 100%;
85
+ }
86
+
87
+ &>.search {
88
+ position: relative;
89
+ margin: $nav-padding 0;
90
+
91
+ input {
92
+ background: $base-grey-5;
93
+ padding: $nav-padding 0 $nav-padding 30px;
94
+ box-sizing: border-box;
95
+ width: $nav-width - ($nav-padding * 2);
96
+ border: 0;
97
+ outline: none;
98
+ border-radius: $border-radius; /* ios has a default border radius */
99
+ color: $nav-text;
100
+ }
101
+
102
+ &:before {
103
+ position: absolute;
104
+ top: $nav-padding + 3px;
105
+ left: $nav-padding;
106
+ color: $nav-text;
107
+ @extend %icon-search;
108
+ }
109
+ }
110
+
111
+ .logo {
112
+ margin: auto;
113
+ margin-bottom: $logo-margin;
114
+ }
115
+
116
+ .search-results {
117
+ margin-top: 0;
118
+ box-sizing: border-box;
119
+ height: 0;
120
+ overflow-y: auto;
121
+ overflow-x: hidden;
122
+ transition-property: height, margin;
123
+ transition-duration: 180ms;
124
+ transition-timing-function: ease-in-out;
125
+ background: $nav-subitem-bg;
126
+ &.visible {
127
+ height: 30%;
128
+ margin-bottom: 1em;
129
+ }
130
+
131
+ li {
132
+ margin: 1em $nav-padding;
133
+ }
134
+
135
+ a {
136
+ color: $nav-text;
137
+ text-decoration: none;
138
+
139
+ &:hover {
140
+ text-decoration: none;
141
+ color: $main-text;
142
+ }
143
+ }
144
+ }
145
+
146
+ // The Table of Contents is composed of multiple nested
147
+ // unordered lists. These styles remove the default
148
+ // styling of an unordered list because it is ugly.
149
+ ul, li {
150
+ list-style: none;
151
+ margin: 0;
152
+ padding: 0;
153
+ line-height: 36px;
154
+ }
155
+
156
+ li {
157
+ color: $nav-text;
158
+ transition-property: background;
159
+ transition-timing-function: linear;
160
+ transition-duration: 200ms;
161
+ a {
162
+ color: $nav-text;
163
+ text-decoration: none;
164
+ }
165
+ }
166
+
167
+ // This is the currently selected ToC entry
168
+ .toc-link.active {
169
+ background-color: $nav-active-bg;
170
+ color: $nav-active-parent-text;
171
+ border-radius: $border-radius;
172
+ }
173
+
174
+ // this is parent links of the currently selected ToC entry
175
+ .toc-link.active-parent {
176
+ background-color: $nav-active-parent-bg;
177
+ color: $nav-active-parent-text;
178
+ border-radius: $border-radius;
179
+ }
180
+
181
+ .toc-list-h2 {
182
+ display: none;
183
+ background-color: $nav-subitem-bg;
184
+ font-weight: 500;
185
+ }
186
+
187
+ .toc-h2 {
188
+ padding-left: $nav-padding + $nav-indent;
189
+ font-size: 12px;
190
+ }
191
+
192
+ .toc-footer {
193
+ padding: $nav-padding 0;
194
+ margin-top: 1em;
195
+ border-top: $dotted-border;
196
+
197
+ li,a {
198
+ color: $nav-footer-text;
199
+ text-decoration: none;
200
+ }
201
+
202
+ a:hover {
203
+ text-decoration: none;
204
+ }
205
+
206
+ li {
207
+ @extend %small-font;
208
+ text-decoration: none;
209
+ }
210
+ }
211
+ }
212
+
213
+ .toc-link, .toc-footer li {
214
+ padding: 0 $nav-padding 0 $nav-padding;
215
+ display: block;
216
+ overflow-x: hidden;
217
+ white-space: nowrap;
218
+ text-overflow: ellipsis;
219
+ text-decoration: none;
220
+ color: #fff;
221
+ transition-property: background;
222
+ transition-timing-function: linear;
223
+ transition-duration: 130ms;
224
+ }
225
+
226
+ // button to show navigation on mobile devices
227
+ #nav-button {
228
+ span {
229
+ display: block;
230
+ margin-top: $nav-v-padding;
231
+ padding: $nav-padding;
232
+ background-color: $tg-slate;
233
+ border-radius: 0 3px 3px 0;
234
+ }
235
+ padding: 0 1.5em 5em 0; // increase touch size area
236
+ display: none;
237
+ position: fixed;
238
+ top: 0;
239
+ left: 0;
240
+ z-index: 100;
241
+ color: $tg-slate;
242
+ text-decoration: none;
243
+ font-weight: bold;
244
+ line-height: 16px;
245
+ img {
246
+ height: 16px;
247
+ vertical-align: bottom;
248
+ }
249
+
250
+ transition: left 0.3s ease-in-out;
251
+
252
+ &.open {left: $nav-width}
253
+ }
254
+
255
+
256
+ ////////////////////////////////////////////////////////////////////////////////
257
+ // PAGE LAYOUT AND CODE SAMPLE BACKGROUND
258
+ ////////////////////////////////////////////////////////////////////////////////
259
+
260
+ .page-wrapper {
261
+ margin-left: $nav-width;
262
+ position: relative;
263
+ z-index: 10;
264
+ background-color: $main-bg;
265
+ min-height: 100%;
266
+
267
+ padding-bottom: 1px; // prevent margin overflow
268
+
269
+ // The dark box is what gives the code samples their dark background.
270
+ // It sits essentially under the actual content block, which has a
271
+ // transparent background.
272
+ // I know, it's hackish, but it's the simplist way to make the left
273
+ // half of the content always this background color.
274
+ .dark-box {
275
+ width: $examples-width;
276
+ background-color: $examples-bg;
277
+ position: absolute;
278
+ right: 0;
279
+ top: 0;
280
+ bottom: 0;
281
+ }
282
+
283
+ .lang-selector {
284
+ position: fixed;
285
+ z-index: 50;
286
+ padding: 1em $main-padding;
287
+ background-color: $code-annotation-bg;
288
+ }
289
+ }
290
+
291
+ .lang-selector {
292
+ background-color: $code-annotation-bg;
293
+ border-radius: $border-radius;
294
+ width: 100%;
295
+
296
+ a {
297
+ display: block;
298
+ float:left;
299
+ color: $lang-select-text;
300
+ text-decoration: none;
301
+ padding: 0 10px;
302
+ line-height: 30px;
303
+ outline: 0;
304
+
305
+ &:active, &:focus {
306
+ background-color: $lang-select-pressed-bg;
307
+ color: $lang-select-pressed-text;
308
+ border-radius: $border-radius;
309
+ }
310
+
311
+ &.active {
312
+ background-color: $lang-select-active-bg;
313
+ color: $lang-select-active-text;
314
+ border-radius: $border-radius;
315
+ font-weight: 600;
316
+ }
317
+ }
318
+
319
+ &:after {
320
+ content: '';
321
+ clear: both;
322
+ display: block;
323
+ }
324
+ }
325
+
326
+ ////////////////////////////////////////////////////////////////////////////////
327
+ // CONTENT STYLES
328
+ ////////////////////////////////////////////////////////////////////////////////
329
+ // This is all the stuff with the light background in the left half of the page
330
+
331
+ .content {
332
+ // fixes webkit rendering bug for some: see #538
333
+ -webkit-transform: translateZ(0);
334
+ // to place content above the dark box
335
+ position: relative;
336
+ z-index: 30;
337
+
338
+ &:after {
339
+ content: '';
340
+ display: block;
341
+ clear: both;
342
+ }
343
+
344
+ &>h1, &>h2, &>h3, &>h4, &>h5, &>h6, &>p, &>table, &>ul, &>ol, &>aside, &>dl {
345
+ margin-right: $examples-width;
346
+ padding: 0 $main-padding;
347
+ box-sizing: border-box;
348
+ display: block;
349
+
350
+ @extend %left-col;
351
+ }
352
+
353
+ &>ul, &>ol {
354
+ padding-left: $main-padding + 15px;
355
+ }
356
+
357
+ // the div is the toc hidden div for placeholding stuff
358
+ &>h1, &>h2, &>div {
359
+ clear:both;
360
+ }
361
+
362
+ h1 {
363
+ @extend %header-font;
364
+ font-size: 25px;
365
+ padding-top: 1.0em;
366
+ padding-bottom: 0.5em;
367
+ margin-bottom: $h1-margin-bottom;
368
+ margin-top: 5em;
369
+ }
370
+
371
+ h1:first-child, div:first-child + h1 {
372
+ border-top-width: 0;
373
+ margin-top: 0;
374
+ }
375
+
376
+ h2 {
377
+ @extend %header-font;
378
+ font-size: 24px;
379
+ margin-bottom: 0;
380
+ padding-top: 2em;
381
+ padding-bottom: 0.5em;
382
+ }
383
+
384
+ // h2s right after h1s should bump right up
385
+ // against the h1s.
386
+ h1 + h2, h1 + div + h2 {
387
+ margin-top: $h1-margin-bottom * -1;
388
+ border-top: none;
389
+ }
390
+
391
+ h3, h4, h5, h6 {
392
+ @extend %header-font;
393
+ font-size: 18px;
394
+ margin-top: 2.5em;
395
+ margin-bottom: 0.8em;
396
+ }
397
+
398
+ h4, h5, h6 {
399
+ font-size: 10px;
400
+ }
401
+
402
+ hr {
403
+ margin: 2em 0;
404
+ border-top: 2px solid $examples-bg;
405
+ border-bottom: 2px solid $main-bg;
406
+ }
407
+
408
+ table {
409
+ margin-bottom: 1em;
410
+ overflow: auto;
411
+ th,td {
412
+ text-align: left;
413
+ vertical-align: top;
414
+ line-height: 1.6;
415
+ }
416
+
417
+ th {
418
+ padding: 5px 10px;
419
+ border-bottom: $solid-border;
420
+ vertical-align: bottom;
421
+ }
422
+
423
+ td {
424
+ padding: 10px;
425
+ }
426
+
427
+ tr:last-child {
428
+ border-bottom: $solid-border;
429
+ }
430
+
431
+ tr:nth-child(odd)>td {
432
+ background-color: lighten($main-bg,3.2%);
433
+ }
434
+
435
+ tr:nth-child(even)>td {
436
+ background-color: darken($main-bg,.5%);
437
+ }
438
+ }
439
+
440
+ dt {
441
+ font-weight: bold;
442
+ }
443
+
444
+ dd {
445
+ margin-left: 15px;
446
+ }
447
+
448
+ p, li, dt, dd {
449
+ line-height: 1.8;
450
+ margin-top: 0;
451
+ }
452
+
453
+ a {
454
+ font-weight: 700;
455
+ text-decoration: none;
456
+ color: $content-link;
457
+ transition: linear 50ms;
458
+ &:hover {
459
+ color: $content-link-hover;
460
+ }
461
+ }
462
+
463
+ img {
464
+ max-width: 100%;
465
+ }
466
+
467
+ .screenshot {
468
+ margin: 28px;
469
+ text-align: center;
470
+ margin-right: 50%;
471
+ padding: 30px;
472
+ box-sizing: border-box;
473
+ display: block;
474
+ background-color: $base-grey-10;
475
+ }
476
+
477
+ code {
478
+ background-color: rgba($code-bg, .05);
479
+ padding: 3px;
480
+ border-radius: $border-radius;
481
+ @extend %break-words;
482
+ @extend %code-font;
483
+ }
484
+
485
+ pre>code {
486
+ background-color: transparent;
487
+ padding: 0;
488
+ }
489
+
490
+ aside {
491
+ padding-top: 1em;
492
+ padding-bottom: 1em;
493
+ margin-bottom: 28px;
494
+ margin-left: 28px;
495
+ width: 47%;
496
+ background: $aside-notice-bg;
497
+ line-height: 1.6;
498
+ border-radius: $border-radius;
499
+ color: $white;
500
+ display: inline-table;
501
+
502
+ code {
503
+ color: $white;
504
+ background-color: rgba(0,0,0,0.4);
505
+ }
506
+
507
+ &.warning {
508
+ background-color: $aside-warning-bg;
509
+ }
510
+
511
+ &.success {
512
+ background-color: $aside-success-bg;
513
+ }
514
+ }
515
+
516
+ aside:before {
517
+ vertical-align: middle;
518
+ padding-right: 0.2em;
519
+ @extend %base-font
520
+ }
521
+
522
+ aside.notice:before {
523
+ @extend %icon-info-sign;
524
+ }
525
+
526
+ aside.warning:before {
527
+ @extend %icon-exclamation-sign;
528
+ }
529
+
530
+ aside.success:before {
531
+ @extend %icon-ok-sign;
532
+ }
533
+
534
+ .search-highlight {
535
+ padding: 2px;
536
+ margin: -2px;
537
+ border-radius: $border-radius;
538
+ background-color: $search-highlight;
539
+ }
540
+ }
541
+
542
+ ////////////////////////////////////////////////////////////////////////////////
543
+ // CODE SAMPLE STYLES
544
+ ////////////////////////////////////////////////////////////////////////////////
545
+ // This is all the stuff that appears in the right half of the page
546
+
547
+ .content {
548
+ pre, blockquote {
549
+ background-color: $code-annotation-bg;
550
+ color: $white;
551
+
552
+ margin: 0;
553
+ width: $examples-width;
554
+
555
+ float:right;
556
+ clear:right;
557
+
558
+ box-sizing: border-box;
559
+
560
+ @extend %right-col;
561
+
562
+ &>p { margin: 0; }
563
+
564
+ a {
565
+ color: $white;
566
+ text-decoration: none;
567
+ border-bottom: $solid-border;
568
+ }
569
+ }
570
+
571
+ pre {
572
+ @extend %code-font;
573
+ padding-top: 2em;
574
+ padding-bottom: 2em;
575
+ padding: 2em $main-padding;
576
+ }
577
+
578
+ blockquote {
579
+ &>p {
580
+ background-color: rgba($code-bg, 0.3);
581
+ padding: $code-annotation-padding 2em;
582
+ color: $base-grey-10;
583
+ }
584
+ }
585
+ }
586
+
587
+ ////////////////////////////////////////////////////////////////////////////////
588
+ // RESPONSIVE DESIGN
589
+ ////////////////////////////////////////////////////////////////////////////////
590
+ // These are the styles for phones and tablets
591
+ // There are also a couple styles disperesed
592
+
593
+ @media (max-width: $tablet-width) {
594
+ .content {
595
+ padding-top: $main-padding;
596
+ }
597
+ .toc-wrapper {
598
+ left: -$nav-width;
599
+
600
+ &.open {
601
+ left: 0;
602
+ }
603
+ }
604
+
605
+ .page-wrapper {
606
+ margin-left: 0;
607
+ }
608
+
609
+ #nav-button {
610
+ display: block;
611
+ }
612
+
613
+ .toc-link {
614
+ padding-top: 0.3em;
615
+ padding-bottom: 0.3em;
616
+ }
617
+ }
618
+
619
+ @media (max-width: $phone-width) {
620
+ .dark-box {
621
+ display: none;
622
+ }
623
+
624
+ %left-col {
625
+ margin-right: 0;
626
+ }
627
+
628
+ .toc-wrapper .lang-selector {
629
+ display: block;
630
+ margin: $nav-padding 0;
631
+ }
632
+
633
+ .page-wrapper .lang-selector {
634
+ display: none;
635
+ }
636
+
637
+ %right-col {
638
+ width: auto;
639
+ float: none;
640
+ }
641
+
642
+ %right-col + %left-col {
643
+ margin-top: $main-padding;
644
+ }
645
+ }
646
+
647
+ .highlight .c, .highlight .cm, .highlight .c1, .highlight .cs {
648
+ color: #909090;
649
+ }
650
+
651
+ .highlight, .highlight .w {
652
+ background-color: $code-annotation-bg;
653
+ }
654
+
655
+ .private, .deprecated {
656
+ @extend %label-font;
657
+ color: $white;
658
+ background-color: $base-grey-70;
659
+ border-radius: $border-radius;
660
+ padding: 1px $nav-v-padding;
661
+ border-radius: 3px;
662
+ }
663
+
664
+ .faux-toc-link {
665
+ @extend %nav-font;
666
+ padding: 10px;
667
+ line-height: 36px;
668
+ text-decoration: none;
669
+ color: $tg-slate;
670
+ }
671
+
672
+ a[data-title=Resources] {
673
+ font-weight: 100;
674
+ text-transform: uppercase;
675
+ font-size: 0.9em;
676
+ padding-top: 30px;
677
+ }
678
+
679
+ #resources {
680
+ margin-bottom: 0px;
681
+ font-weight: bold;
682
+ & + p {
683
+ display: none;
684
+ }
685
+ & + p + h1 {
686
+ padding-top: 0.6em;
687
+ margin-top: 0px;
688
+ border-top: 0;
689
+ }
690
+ }
691
+
692
+ .content pre.tab-json--inline {
693
+ float: left;
694
+ clear: none;
695
+ background-color: $examples-bg;
696
+ border-radius: $border-radius;
697
+ margin-bottom: 15px;
698
+ margin-left: 28px;
699
+ width: 47%;
700
+ .w {
701
+ background-color: $examples-bg;
702
+ }
703
+ .p {
704
+ color: $white;
705
+ }
706
+ .s2 {
707
+ color: #a6e22e;
708
+ }
709
+ .mi {
710
+ color: #f6574d;
711
+ }
712
+ }