just-the-docs 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/_includes/css/custom.scss.liquid +1 -0
- data/_includes/css/just-the-docs.scss.liquid +7 -0
- data/_includes/head.html +4 -4
- data/_includes/nav.html +15 -4
- data/_layouts/default.html +43 -6
- data/_layouts/table_wrappers.html +1 -1
- data/_sass/base.scss +14 -17
- data/_sass/code.scss +207 -68
- data/_sass/color_schemes/dark.scss +0 -1
- data/_sass/color_schemes/light.scss +0 -0
- data/_sass/content.scss +33 -0
- data/_sass/custom/custom.scss +0 -129
- data/_sass/labels.scss +5 -4
- data/_sass/layout.scss +3 -2
- data/_sass/modules.scss +19 -0
- data/_sass/support/_functions.scss +2 -3
- data/_sass/support/_variables.scss +7 -6
- data/_sass/support/mixins/_layout.scss +1 -3
- data/_sass/support/mixins/_typography.scss +6 -1
- data/_sass/typography.scss +9 -7
- data/_sass/utilities/_layout.scss +74 -17
- data/_sass/utilities/_spacing.scss +69 -25
- data/assets/css/just-the-docs-dark.scss +3 -0
- data/assets/css/just-the-docs-default.scss +8 -0
- data/assets/css/just-the-docs-light.scss +3 -0
- data/assets/js/just-the-docs.js +14 -0
- data/assets/js/search-data.json +1 -1
- data/lib/tasks/search.rake +2 -2
- metadata +10 -7
- data/_sass/overrides.scss +0 -3
- data/assets/css/dark-mode-preview.scss +0 -45
- data/assets/css/just-the-docs.scss +0 -49
- data/assets/js/dark-mode-preview.js +0 -23
File without changes
|
data/_sass/content.scss
CHANGED
@@ -8,6 +8,16 @@
|
|
8
8
|
.page-content {
|
9
9
|
line-height: $content-line-height;
|
10
10
|
|
11
|
+
ol,
|
12
|
+
ul,
|
13
|
+
dl,
|
14
|
+
pre,
|
15
|
+
address,
|
16
|
+
blockquote,
|
17
|
+
.table-wrapper {
|
18
|
+
margin-top: 0.5em;
|
19
|
+
}
|
20
|
+
|
11
21
|
a {
|
12
22
|
overflow: hidden;
|
13
23
|
text-overflow: ellipsis;
|
@@ -19,6 +29,12 @@
|
|
19
29
|
padding-left: 1.5em;
|
20
30
|
}
|
21
31
|
|
32
|
+
li {
|
33
|
+
.highlight {
|
34
|
+
margin-top: $sp-1;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
22
38
|
ol {
|
23
39
|
list-style-type: none;
|
24
40
|
counter-reset: step-counter;
|
@@ -156,5 +172,22 @@
|
|
156
172
|
h5,
|
157
173
|
h6 {
|
158
174
|
position: relative;
|
175
|
+
margin-top: 1.5em;
|
176
|
+
margin-bottom: 0.25em;
|
177
|
+
|
178
|
+
&:first-child {
|
179
|
+
margin-top: $sp-2;
|
180
|
+
}
|
181
|
+
|
182
|
+
+ table,
|
183
|
+
+ .table-wrapper,
|
184
|
+
+ .code-example,
|
185
|
+
+ .highlighter-rouge {
|
186
|
+
margin-top: 1em;
|
187
|
+
}
|
188
|
+
|
189
|
+
+ p {
|
190
|
+
margin-top: 0;
|
191
|
+
}
|
159
192
|
}
|
160
193
|
}
|
data/_sass/custom/custom.scss
CHANGED
@@ -1,129 +0,0 @@
|
|
1
|
-
////
|
2
|
-
//// Typography
|
3
|
-
////
|
4
|
-
|
5
|
-
//$body-font-family: -apple-system, BlinkMacSystemFont, "helvetica neue", helvetica, roboto, noto, "segoe ui", arial, sans-serif;
|
6
|
-
//$mono-font-family: "SFMono-Regular", Menlo, Consolas, Monospace;
|
7
|
-
//$root-font-size: 16px; // Base font-size for rems
|
8
|
-
//$body-line-height: 1.4;
|
9
|
-
//$content-line-height: 1.5;
|
10
|
-
//$body-heading-line-height: 1.15;
|
11
|
-
|
12
|
-
////
|
13
|
-
//// Colors
|
14
|
-
////
|
15
|
-
|
16
|
-
//$white: #fff;
|
17
|
-
|
18
|
-
//$grey-dk-000: #959396;
|
19
|
-
//$grey-dk-100: #5c5962;
|
20
|
-
//$grey-dk-200: #44434d;
|
21
|
-
//$grey-dk-250: #302d36;
|
22
|
-
//$grey-dk-300: #27262b;
|
23
|
-
|
24
|
-
//$grey-lt-000: #f5f6fa;
|
25
|
-
//$grey-lt-100: #eeebee;
|
26
|
-
//$grey-lt-200: #ecebed;
|
27
|
-
//$grey-lt-300: #e6e1e8;
|
28
|
-
|
29
|
-
//$purple-000: #7253ed;
|
30
|
-
//$purple-100: #5e41d0;
|
31
|
-
//$purple-200: #4e26af;
|
32
|
-
//$purple-300: #381885;
|
33
|
-
|
34
|
-
//$blue-000: #2c84fa;
|
35
|
-
//$blue-100: #2869e6;
|
36
|
-
//$blue-200: #264caf;
|
37
|
-
//$blue-300: #183385;
|
38
|
-
|
39
|
-
//$green-000: #41d693;
|
40
|
-
//$green-100: #11b584;
|
41
|
-
//$green-200: #009c7b;
|
42
|
-
//$green-300: #026e57;
|
43
|
-
|
44
|
-
//$yellow-000: #ffeb82;
|
45
|
-
//$yellow-100: #fadf50;
|
46
|
-
//$yellow-200: #f7d12e;
|
47
|
-
//$yellow-300: #e7af06;
|
48
|
-
|
49
|
-
//$red-000: #f77e7e;
|
50
|
-
//$red-100: #f96e65;
|
51
|
-
//$red-200: #e94c4c;
|
52
|
-
//$red-300: #dd2e2e;
|
53
|
-
|
54
|
-
//$body-background-color: $white;
|
55
|
-
//$sidebar-color: $grey-lt-000;
|
56
|
-
//$search-background-color: $white;
|
57
|
-
//$table-background-color: $white;
|
58
|
-
//$code-background-color: $grey-lt-000;
|
59
|
-
|
60
|
-
//$body-text-color: $grey-dk-100;
|
61
|
-
//$body-heading-color: $grey-dk-300;
|
62
|
-
//$search-result-preview-color: $grey-dk-000;
|
63
|
-
//$nav-child-link-color: $grey-dk-100;
|
64
|
-
//$link-color: $purple-000;
|
65
|
-
//$btn-primary-color: $purple-100;
|
66
|
-
//$base-button-color: #f7f7f7;
|
67
|
-
|
68
|
-
////
|
69
|
-
//// Spacing
|
70
|
-
////
|
71
|
-
|
72
|
-
//$spacing-unit: 1rem; // 1rem == 16px
|
73
|
-
|
74
|
-
//$spacers: (
|
75
|
-
//sp-0: 0,
|
76
|
-
//sp-1: $spacing-unit * 0.25,
|
77
|
-
//sp-2: $spacing-unit * 0.5,
|
78
|
-
//sp-3: $spacing-unit * 0.75,
|
79
|
-
//sp-4: $spacing-unit,
|
80
|
-
//sp-5: $spacing-unit * 1.5,
|
81
|
-
//sp-6: $spacing-unit * 2,
|
82
|
-
//sp-7: $spacing-unit * 2.5,
|
83
|
-
//sp-8: $spacing-unit * 3,
|
84
|
-
//sp-9: $spacing-unit * 3.5,
|
85
|
-
//sp-10: $spacing-unit * 4
|
86
|
-
//);
|
87
|
-
|
88
|
-
//$sp-1: map-get($spacers, sp-1); // 0.25 rem == 4px
|
89
|
-
//$sp-2: map-get($spacers, sp-2); // 0.5 rem == 8px
|
90
|
-
//$sp-3: map-get($spacers, sp-3); // 0.75 rem == 12px
|
91
|
-
//$sp-4: map-get($spacers, sp-4); // 1 rem == 16px
|
92
|
-
//$sp-5: map-get($spacers, sp-5); // 1.5 rem == 24px
|
93
|
-
//$sp-6: map-get($spacers, sp-6); // 2 rem == 32px
|
94
|
-
//$sp-7: map-get($spacers, sp-7); // 2.5 rem == 40px
|
95
|
-
//$sp-8: map-get($spacers, sp-8); // 3 rem == 48px
|
96
|
-
//$sp-9: map-get($spacers, sp-9); // 4 rem == 48px
|
97
|
-
//$sp-10: map-get($spacers, sp-10); // 4.5 rem == 48px
|
98
|
-
|
99
|
-
////
|
100
|
-
//// Borders
|
101
|
-
////
|
102
|
-
|
103
|
-
//$border: 1px solid;
|
104
|
-
//$border-radius: 4px;
|
105
|
-
//$border-color: $grey-lt-100;
|
106
|
-
|
107
|
-
////
|
108
|
-
//// Grid system
|
109
|
-
////
|
110
|
-
|
111
|
-
//$gutter-spacing: $sp-6;
|
112
|
-
//$gutter-spacing-sm: $sp-4;
|
113
|
-
//$nav-width: 264px;
|
114
|
-
//$nav-width-md: 248px;
|
115
|
-
//$content-width: 800px;
|
116
|
-
//$header-height: 60px;
|
117
|
-
//$search-results-width: 500px;
|
118
|
-
|
119
|
-
////
|
120
|
-
//// Media queries in pixels
|
121
|
-
////
|
122
|
-
|
123
|
-
//$media-queries: (
|
124
|
-
//xs: 320px,
|
125
|
-
//sm: 500px,
|
126
|
-
//md: $content-width,
|
127
|
-
//lg: $content-width + $nav-width,
|
128
|
-
//xl: 1400px
|
129
|
-
//);
|
data/_sass/labels.scss
CHANGED
@@ -6,16 +6,17 @@
|
|
6
6
|
.label-blue {
|
7
7
|
display: inline-block;
|
8
8
|
padding-top: 0.16em;
|
9
|
-
padding-right: 0.
|
9
|
+
padding-right: 0.56em;
|
10
10
|
padding-bottom: 0.16em;
|
11
|
-
padding-left: 0.
|
12
|
-
margin-right: $sp-
|
13
|
-
margin-left: $sp-
|
11
|
+
padding-left: 0.56em;
|
12
|
+
margin-right: $sp-2;
|
13
|
+
margin-left: $sp-2;
|
14
14
|
color: $white;
|
15
15
|
text-transform: uppercase;
|
16
16
|
vertical-align: middle;
|
17
17
|
background-color: $blue-100;
|
18
18
|
@include fs-2;
|
19
|
+
border-radius: 12px;
|
19
20
|
}
|
20
21
|
|
21
22
|
.label-green {
|
data/_sass/layout.scss
CHANGED
@@ -58,7 +58,9 @@
|
|
58
58
|
}
|
59
59
|
|
60
60
|
@include mq(lg) {
|
61
|
-
margin-left: calc(
|
61
|
+
margin-left: calc(
|
62
|
+
(100% - #{$nav-width + $content-width}) / 2 + #{$nav-width}
|
63
|
+
);
|
62
64
|
}
|
63
65
|
}
|
64
66
|
|
@@ -104,7 +106,6 @@
|
|
104
106
|
.navigation,
|
105
107
|
.site-header,
|
106
108
|
.site-footer {
|
107
|
-
|
108
109
|
width: 100%;
|
109
110
|
|
110
111
|
@include mq(lg) {
|
data/_sass/modules.scss
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
//
|
2
|
+
// Import external dependencies
|
3
|
+
//
|
4
|
+
@import "./vendor/normalize.scss/normalize.scss";
|
5
|
+
|
6
|
+
//
|
7
|
+
// Modules
|
8
|
+
//
|
9
|
+
@import "./base";
|
10
|
+
@import "./layout";
|
11
|
+
@import "./content";
|
12
|
+
@import "./navigation";
|
13
|
+
@import "./typography";
|
14
|
+
@import "./labels";
|
15
|
+
@import "./buttons";
|
16
|
+
@import "./search";
|
17
|
+
@import "./tables";
|
18
|
+
@import "./code";
|
19
|
+
@import "./utilities/utilities";
|
@@ -2,12 +2,13 @@
|
|
2
2
|
// Typography
|
3
3
|
//
|
4
4
|
|
5
|
-
$body-font-family: -apple-system, BlinkMacSystemFont, "helvetica neue",
|
5
|
+
$body-font-family: -apple-system, BlinkMacSystemFont, "helvetica neue",
|
6
|
+
helvetica, roboto, noto, "segoe ui", arial, sans-serif !default;
|
6
7
|
$mono-font-family: "SFMono-Regular", Menlo, Consolas, Monospace !default;
|
7
|
-
$root-font-size: 16px !default;
|
8
|
+
$root-font-size: 16px !default; // Base font-size for rems
|
8
9
|
$body-line-height: 1.4 !default;
|
9
|
-
$content-line-height: 1.
|
10
|
-
$body-heading-line-height: 1.
|
10
|
+
$content-line-height: 1.6 !default;
|
11
|
+
$body-heading-line-height: 1.25 !default;
|
11
12
|
|
12
13
|
//
|
13
14
|
// Colors
|
@@ -82,7 +83,7 @@ $spacers: (
|
|
82
83
|
sp-7: $spacing-unit * 2.5,
|
83
84
|
sp-8: $spacing-unit * 3,
|
84
85
|
sp-9: $spacing-unit * 3.5,
|
85
|
-
sp-10: $spacing-unit * 4
|
86
|
+
sp-10: $spacing-unit * 4,
|
86
87
|
) !default;
|
87
88
|
|
88
89
|
$sp-1: map-get($spacers, sp-1) !default; // 0.25 rem == 4px
|
@@ -125,5 +126,5 @@ $media-queries: (
|
|
125
126
|
sm: 500px,
|
126
127
|
md: $content-width,
|
127
128
|
lg: $content-width + $nav-width,
|
128
|
-
xl: 1400px
|
129
|
+
xl: 1400px,
|
129
130
|
) !default;
|
@@ -25,7 +25,7 @@
|
|
25
25
|
}
|
26
26
|
|
27
27
|
@mixin fs-4 {
|
28
|
-
font-size:
|
28
|
+
font-size: 15px !important;
|
29
29
|
|
30
30
|
@include mq(sm) {
|
31
31
|
font-size: 16px !important;
|
@@ -45,11 +45,13 @@
|
|
45
45
|
|
46
46
|
@include mq(sm) {
|
47
47
|
font-size: 24px !important;
|
48
|
+
line-height: $body-heading-line-height;
|
48
49
|
}
|
49
50
|
}
|
50
51
|
|
51
52
|
@mixin fs-7 {
|
52
53
|
font-size: 24px !important;
|
54
|
+
line-height: $body-heading-line-height;
|
53
55
|
|
54
56
|
@include mq(sm) {
|
55
57
|
font-size: 32px !important;
|
@@ -58,6 +60,7 @@
|
|
58
60
|
|
59
61
|
@mixin fs-8 {
|
60
62
|
font-size: 32px !important;
|
63
|
+
line-height: $body-heading-line-height;
|
61
64
|
|
62
65
|
@include mq(sm) {
|
63
66
|
font-size: 36px !important;
|
@@ -66,6 +69,7 @@
|
|
66
69
|
|
67
70
|
@mixin fs-9 {
|
68
71
|
font-size: 36px !important;
|
72
|
+
line-height: $body-heading-line-height;
|
69
73
|
|
70
74
|
@include mq(sm) {
|
71
75
|
font-size: 42px !important;
|
@@ -74,6 +78,7 @@
|
|
74
78
|
|
75
79
|
@mixin fs-10 {
|
76
80
|
font-size: 42px !important;
|
81
|
+
line-height: $body-heading-line-height;
|
77
82
|
|
78
83
|
@include mq(sm) {
|
79
84
|
font-size: 48px !important;
|
data/_sass/typography.scss
CHANGED
@@ -22,7 +22,7 @@ h3,
|
|
22
22
|
h4,
|
23
23
|
.text-delta {
|
24
24
|
@include fs-2;
|
25
|
-
font-weight:
|
25
|
+
font-weight: 400;
|
26
26
|
text-transform: uppercase;
|
27
27
|
letter-spacing: 0.1em;
|
28
28
|
}
|
@@ -39,12 +39,6 @@ h6,
|
|
39
39
|
color: $grey-dk-200;
|
40
40
|
}
|
41
41
|
|
42
|
-
li {
|
43
|
-
.highlight {
|
44
|
-
margin-top: $sp-2;
|
45
|
-
}
|
46
|
-
}
|
47
|
-
|
48
42
|
.text-small {
|
49
43
|
@include fs-2;
|
50
44
|
}
|
@@ -53,6 +47,14 @@ li {
|
|
53
47
|
font-family: $mono-font-family !important;
|
54
48
|
}
|
55
49
|
|
50
|
+
.text-left {
|
51
|
+
text-align: left !important;
|
52
|
+
}
|
53
|
+
|
56
54
|
.text-center {
|
57
55
|
text-align: center !important;
|
58
56
|
}
|
57
|
+
|
58
|
+
.text-right {
|
59
|
+
text-align: right !important;
|
60
|
+
}
|
@@ -5,11 +5,21 @@
|
|
5
5
|
|
6
6
|
// Display
|
7
7
|
|
8
|
-
.d-block {
|
9
|
-
|
10
|
-
|
11
|
-
.d-
|
12
|
-
|
8
|
+
.d-block {
|
9
|
+
display: block !important;
|
10
|
+
}
|
11
|
+
.d-flex {
|
12
|
+
display: flex !important;
|
13
|
+
}
|
14
|
+
.d-inline {
|
15
|
+
display: inline !important;
|
16
|
+
}
|
17
|
+
.d-inline-block {
|
18
|
+
display: inline-block !important;
|
19
|
+
}
|
20
|
+
.d-none {
|
21
|
+
display: none !important;
|
22
|
+
}
|
13
23
|
|
14
24
|
@each $media-query in map-keys($media-queries) {
|
15
25
|
@for $i from 1 through length($spacers) {
|
@@ -18,21 +28,68 @@
|
|
18
28
|
$scale: #{$i - 1};
|
19
29
|
|
20
30
|
// .d-sm-block, .d-md-none, .d-lg-inline
|
21
|
-
.d-#{$media-query}-block {
|
22
|
-
|
23
|
-
|
24
|
-
.d-#{$media-query}-
|
25
|
-
|
26
|
-
|
31
|
+
.d-#{$media-query}-block {
|
32
|
+
display: block !important;
|
33
|
+
}
|
34
|
+
.d-#{$media-query}-flex {
|
35
|
+
display: flex !important;
|
36
|
+
}
|
37
|
+
.d-#{$media-query}-inline {
|
38
|
+
display: inline !important;
|
39
|
+
}
|
40
|
+
.d-#{$media-query}-inline-block {
|
41
|
+
display: inline-block !important;
|
42
|
+
}
|
43
|
+
.d-#{$media-query}-none {
|
44
|
+
display: none !important;
|
45
|
+
}
|
27
46
|
}
|
28
47
|
}
|
29
48
|
}
|
30
49
|
|
50
|
+
// Horizontal alignment
|
51
|
+
|
52
|
+
.float-left {
|
53
|
+
float: left !important;
|
54
|
+
}
|
55
|
+
|
56
|
+
.float-right {
|
57
|
+
float: right !important;
|
58
|
+
}
|
59
|
+
|
60
|
+
.flex-justify-start {
|
61
|
+
justify-content: flex-start !important;
|
62
|
+
}
|
63
|
+
|
64
|
+
.flex-justify-end {
|
65
|
+
justify-content: flex-end !important;
|
66
|
+
}
|
67
|
+
|
68
|
+
.flex-justify-between {
|
69
|
+
justify-content: space-between !important;
|
70
|
+
}
|
71
|
+
|
72
|
+
.flex-justify-around {
|
73
|
+
justify-content: space-around !important;
|
74
|
+
}
|
75
|
+
|
31
76
|
// Vertical alignment
|
32
77
|
|
33
|
-
.v-align-baseline {
|
34
|
-
|
35
|
-
|
36
|
-
.v-align-
|
37
|
-
|
38
|
-
|
78
|
+
.v-align-baseline {
|
79
|
+
vertical-align: baseline !important;
|
80
|
+
}
|
81
|
+
.v-align-bottom {
|
82
|
+
vertical-align: bottom !important;
|
83
|
+
}
|
84
|
+
.v-align-middle {
|
85
|
+
vertical-align: middle !important;
|
86
|
+
}
|
87
|
+
.v-align-text-bottom {
|
88
|
+
vertical-align: text-bottom !important;
|
89
|
+
}
|
90
|
+
.v-align-text-top {
|
91
|
+
vertical-align: text-top !important;
|
92
|
+
}
|
93
|
+
.v-align-top {
|
94
|
+
vertical-align: top !important;
|
95
|
+
}
|