arctic-ui 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.
- checksums.yaml +7 -0
- data/.circleci/config.yml +36 -0
- data/.gitignore +12 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +98 -0
- data/LICENSE.txt +21 -0
- data/README.md +28 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/core-api.gemspec +41 -0
- data/documentation/.editorconfig +15 -0
- data/documentation/.gitignore +24 -0
- data/documentation/.travis.yml +10 -0
- data/documentation/CHANGELOG.md +137 -0
- data/documentation/CODE_OF_CONDUCT.md +46 -0
- data/documentation/Gemfile +11 -0
- data/documentation/Gemfile.lock +129 -0
- data/documentation/LICENSE +13 -0
- data/documentation/Procfile +1 -0
- data/documentation/README.md +118 -0
- data/documentation/config.rb +57 -0
- data/documentation/deploy.sh +215 -0
- data/documentation/font-selection.json +148 -0
- data/documentation/lib/multilang.rb +16 -0
- data/documentation/lib/nesting_unique_head.rb +22 -0
- data/documentation/lib/toc_data.rb +30 -0
- data/documentation/lib/unique_head.rb +24 -0
- data/documentation/source/fonts/slate.eot +0 -0
- data/documentation/source/fonts/slate.svg +14 -0
- data/documentation/source/fonts/slate.ttf +0 -0
- data/documentation/source/fonts/slate.woff +0 -0
- data/documentation/source/fonts/slate.woff2 +0 -0
- data/documentation/source/images/logo.png +0 -0
- data/documentation/source/images/navbar.png +0 -0
- data/documentation/source/includes/_errors.md +17 -0
- data/documentation/source/index.html.md +179 -0
- data/documentation/source/javascripts/all.js +2 -0
- data/documentation/source/javascripts/all_nosearch.js +16 -0
- data/documentation/source/javascripts/app/_lang.js +164 -0
- data/documentation/source/javascripts/app/_search.js +98 -0
- data/documentation/source/javascripts/app/_toc.js +114 -0
- data/documentation/source/javascripts/lib/_energize.js +169 -0
- data/documentation/source/javascripts/lib/_imagesloaded.min.js +7 -0
- data/documentation/source/javascripts/lib/_jquery.highlight.js +108 -0
- data/documentation/source/javascripts/lib/_jquery.js +9831 -0
- data/documentation/source/javascripts/lib/_lunr.js +1910 -0
- data/documentation/source/layouts/layout.erb +116 -0
- data/documentation/source/stylesheets/_icon-font.scss +38 -0
- data/documentation/source/stylesheets/_normalize.scss +427 -0
- data/documentation/source/stylesheets/_rtl.scss +140 -0
- data/documentation/source/stylesheets/_variables.scss +103 -0
- data/documentation/source/stylesheets/_variables2.scss +147 -0
- data/documentation/source/stylesheets/print.css.scss +148 -0
- data/documentation/source/stylesheets/screen.css.scss +707 -0
- data/lib/arctic/ui.rb +21 -0
- data/lib/arctic/ui/api.rb +69 -0
- data/lib/arctic/ui/configuration.rb +26 -0
- data/lib/arctic/ui/version.rb +5 -0
- metadata +288 -0
@@ -0,0 +1,707 @@
|
|
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
|
+
&.warning {
|
503
|
+
background-color: $aside-warning-bg;
|
504
|
+
}
|
505
|
+
|
506
|
+
&.success {
|
507
|
+
background-color: $aside-success-bg;
|
508
|
+
}
|
509
|
+
}
|
510
|
+
|
511
|
+
aside:before {
|
512
|
+
vertical-align: middle;
|
513
|
+
padding-right: 0.2em;
|
514
|
+
@extend %base-font
|
515
|
+
}
|
516
|
+
|
517
|
+
aside.notice:before {
|
518
|
+
@extend %icon-info-sign;
|
519
|
+
}
|
520
|
+
|
521
|
+
aside.warning:before {
|
522
|
+
@extend %icon-exclamation-sign;
|
523
|
+
}
|
524
|
+
|
525
|
+
aside.success:before {
|
526
|
+
@extend %icon-ok-sign;
|
527
|
+
}
|
528
|
+
|
529
|
+
.search-highlight {
|
530
|
+
padding: 2px;
|
531
|
+
margin: -2px;
|
532
|
+
border-radius: $border-radius;
|
533
|
+
background-color: $search-highlight;
|
534
|
+
}
|
535
|
+
}
|
536
|
+
|
537
|
+
////////////////////////////////////////////////////////////////////////////////
|
538
|
+
// CODE SAMPLE STYLES
|
539
|
+
////////////////////////////////////////////////////////////////////////////////
|
540
|
+
// This is all the stuff that appears in the right half of the page
|
541
|
+
|
542
|
+
.content {
|
543
|
+
pre, blockquote {
|
544
|
+
background-color: $code-annotation-bg;
|
545
|
+
color: $white;
|
546
|
+
|
547
|
+
margin: 0;
|
548
|
+
width: $examples-width;
|
549
|
+
|
550
|
+
float:right;
|
551
|
+
clear:right;
|
552
|
+
|
553
|
+
box-sizing: border-box;
|
554
|
+
|
555
|
+
@extend %right-col;
|
556
|
+
|
557
|
+
&>p { margin: 0; }
|
558
|
+
|
559
|
+
a {
|
560
|
+
color: $white;
|
561
|
+
text-decoration: none;
|
562
|
+
border-bottom: $solid-border;
|
563
|
+
}
|
564
|
+
}
|
565
|
+
|
566
|
+
pre {
|
567
|
+
@extend %code-font;
|
568
|
+
padding-top: 2em;
|
569
|
+
padding-bottom: 2em;
|
570
|
+
padding: 2em $main-padding;
|
571
|
+
}
|
572
|
+
|
573
|
+
blockquote {
|
574
|
+
&>p {
|
575
|
+
background-color: rgba($code-bg, 0.3);
|
576
|
+
padding: $code-annotation-padding 2em;
|
577
|
+
color: $base-grey-10;
|
578
|
+
}
|
579
|
+
}
|
580
|
+
}
|
581
|
+
|
582
|
+
////////////////////////////////////////////////////////////////////////////////
|
583
|
+
// RESPONSIVE DESIGN
|
584
|
+
////////////////////////////////////////////////////////////////////////////////
|
585
|
+
// These are the styles for phones and tablets
|
586
|
+
// There are also a couple styles disperesed
|
587
|
+
|
588
|
+
@media (max-width: $tablet-width) {
|
589
|
+
.content {
|
590
|
+
padding-top: $main-padding;
|
591
|
+
}
|
592
|
+
.toc-wrapper {
|
593
|
+
left: -$nav-width;
|
594
|
+
|
595
|
+
&.open {
|
596
|
+
left: 0;
|
597
|
+
}
|
598
|
+
}
|
599
|
+
|
600
|
+
.page-wrapper {
|
601
|
+
margin-left: 0;
|
602
|
+
}
|
603
|
+
|
604
|
+
#nav-button {
|
605
|
+
display: block;
|
606
|
+
}
|
607
|
+
|
608
|
+
.toc-link {
|
609
|
+
padding-top: 0.3em;
|
610
|
+
padding-bottom: 0.3em;
|
611
|
+
}
|
612
|
+
}
|
613
|
+
|
614
|
+
@media (max-width: $phone-width) {
|
615
|
+
.dark-box {
|
616
|
+
display: none;
|
617
|
+
}
|
618
|
+
|
619
|
+
%left-col {
|
620
|
+
margin-right: 0;
|
621
|
+
}
|
622
|
+
|
623
|
+
.toc-wrapper .lang-selector {
|
624
|
+
display: block;
|
625
|
+
margin: $nav-padding 0;
|
626
|
+
}
|
627
|
+
|
628
|
+
.page-wrapper .lang-selector {
|
629
|
+
display: none;
|
630
|
+
}
|
631
|
+
|
632
|
+
%right-col {
|
633
|
+
width: auto;
|
634
|
+
float: none;
|
635
|
+
}
|
636
|
+
|
637
|
+
%right-col + %left-col {
|
638
|
+
margin-top: $main-padding;
|
639
|
+
}
|
640
|
+
}
|
641
|
+
|
642
|
+
.highlight .c, .highlight .cm, .highlight .c1, .highlight .cs {
|
643
|
+
color: #909090;
|
644
|
+
}
|
645
|
+
|
646
|
+
.highlight, .highlight .w {
|
647
|
+
background-color: $code-annotation-bg;
|
648
|
+
}
|
649
|
+
|
650
|
+
.private, .deprecated {
|
651
|
+
@extend %label-font;
|
652
|
+
color: $white;
|
653
|
+
background-color: $base-grey-70;
|
654
|
+
border-radius: $border-radius;
|
655
|
+
padding: 1px $nav-v-padding;
|
656
|
+
border-radius: 3px;
|
657
|
+
}
|
658
|
+
|
659
|
+
.faux-toc-link {
|
660
|
+
@extend %nav-font;
|
661
|
+
padding: 10px;
|
662
|
+
line-height: 36px;
|
663
|
+
text-decoration: none;
|
664
|
+
color: $tg-slate;
|
665
|
+
}
|
666
|
+
|
667
|
+
a[data-title=Resources] {
|
668
|
+
font-weight: 100;
|
669
|
+
text-transform: uppercase;
|
670
|
+
font-size: 0.9em;
|
671
|
+
padding-top: 30px;
|
672
|
+
}
|
673
|
+
|
674
|
+
#resources {
|
675
|
+
margin-bottom: 0px;
|
676
|
+
font-weight: bold;
|
677
|
+
& + p {
|
678
|
+
display: none;
|
679
|
+
}
|
680
|
+
& + p + h1 {
|
681
|
+
padding-top: 0.6em;
|
682
|
+
margin-top: 0px;
|
683
|
+
border-top: 0;
|
684
|
+
}
|
685
|
+
}
|
686
|
+
|
687
|
+
.content pre.tab-json--inline {
|
688
|
+
float: left;
|
689
|
+
clear: none;
|
690
|
+
background-color: $examples-bg;
|
691
|
+
border-radius: $border-radius;
|
692
|
+
margin-bottom: 15px;
|
693
|
+
margin-left: 28px;
|
694
|
+
width: 47%;
|
695
|
+
.w {
|
696
|
+
background-color: $examples-bg;
|
697
|
+
}
|
698
|
+
.p {
|
699
|
+
color: $white;
|
700
|
+
}
|
701
|
+
.s2 {
|
702
|
+
color: #a6e22e;
|
703
|
+
}
|
704
|
+
.mi {
|
705
|
+
color: #f6574d;
|
706
|
+
}
|
707
|
+
}
|