fni-docs-theme 0.4.2
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/LICENSE.txt +21 -0
- data/README.md +19 -0
- data/Rakefile +1 -0
- data/_includes/css/custom.scss.liquid +1 -0
- data/_includes/css/just-the-docs.scss.liquid +7 -0
- data/_includes/fix_linenos.html +65 -0
- data/_includes/footer_custom.html +3 -0
- data/_includes/head.html +39 -0
- data/_includes/head_custom.html +0 -0
- data/_includes/header_custom.html +0 -0
- data/_includes/js/custom.js +0 -0
- data/_includes/nav.html +31 -0
- data/_includes/title.html +5 -0
- data/_includes/vendor/anchor_headings.html +144 -0
- data/_layouts/about.html +5 -0
- data/_layouts/default.html +199 -0
- data/_layouts/home.html +5 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +5 -0
- data/_layouts/table_wrappers.html +7 -0
- data/_layouts/vendor/compress.html +10 -0
- data/_sass/base.scss +108 -0
- data/_sass/buttons.scss +118 -0
- data/_sass/code.scss +340 -0
- data/_sass/color_schemes/dark.scss +17 -0
- data/_sass/color_schemes/light.scss +0 -0
- data/_sass/content.scss +231 -0
- data/_sass/custom/custom.scss +0 -0
- data/_sass/labels.scss +37 -0
- data/_sass/layout.scss +205 -0
- data/_sass/modules.scss +20 -0
- data/_sass/navigation.scss +219 -0
- data/_sass/print.scss +40 -0
- data/_sass/search.scss +324 -0
- data/_sass/support/_functions.scss +9 -0
- data/_sass/support/_variables.scss +153 -0
- data/_sass/support/mixins/_buttons.scss +27 -0
- data/_sass/support/mixins/_layout.scss +34 -0
- data/_sass/support/mixins/_typography.scss +84 -0
- data/_sass/support/mixins/mixins.scss +3 -0
- data/_sass/support/support.scss +3 -0
- data/_sass/tables.scss +58 -0
- data/_sass/typography.scss +64 -0
- data/_sass/utilities/_colors.scss +239 -0
- data/_sass/utilities/_layout.scss +95 -0
- data/_sass/utilities/_lists.scss +17 -0
- data/_sass/utilities/_spacing.scss +165 -0
- data/_sass/utilities/_typography.scss +91 -0
- data/_sass/utilities/utilities.scss +5 -0
- data/_sass/vendor/normalize.scss/README.md +7 -0
- data/_sass/vendor/normalize.scss/normalize.scss +349 -0
- 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/images/just-the-docs.png +0 -0
- data/assets/images/search.svg +1 -0
- data/assets/js/jtd-nav.js +35 -0
- data/assets/js/just-the-docs.js +471 -0
- data/assets/js/vendor/lunr.min.js +6 -0
- data/assets/js/zzzz-search-data.json +72 -0
- data/bin/just-the-docs +16 -0
- data/lib/fni-docs-theme.rb +1 -0
- data/lib/generators/nav-generator.rb +31 -0
- data/lib/tasks/search.rake +86 -0
- metadata +200 -0
data/_sass/print.scss
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
// stylelint-disable selector-max-specificity, selector-max-id, selector-max-type, selector-no-qualifying-type, primer/no-override,
|
2
|
+
|
3
|
+
@media print {
|
4
|
+
.site-footer,
|
5
|
+
.site-button,
|
6
|
+
#edit-this-page,
|
7
|
+
#back-to-top,
|
8
|
+
.site-nav,
|
9
|
+
.main-header {
|
10
|
+
display: none !important;
|
11
|
+
}
|
12
|
+
|
13
|
+
.side-bar {
|
14
|
+
width: 100%;
|
15
|
+
height: auto;
|
16
|
+
border-right: 0 !important;
|
17
|
+
}
|
18
|
+
|
19
|
+
.site-header {
|
20
|
+
border-bottom: 1px solid $border-color;
|
21
|
+
}
|
22
|
+
|
23
|
+
.site-title {
|
24
|
+
font-size: $root-font-size !important;
|
25
|
+
font-weight: 700 !important;
|
26
|
+
}
|
27
|
+
|
28
|
+
.text-small {
|
29
|
+
font-size: 8pt !important;
|
30
|
+
}
|
31
|
+
|
32
|
+
pre.highlight {
|
33
|
+
border: 1px solid $border-color;
|
34
|
+
}
|
35
|
+
|
36
|
+
.main {
|
37
|
+
max-width: none;
|
38
|
+
margin-left: 0;
|
39
|
+
}
|
40
|
+
}
|
data/_sass/search.scss
ADDED
@@ -0,0 +1,324 @@
|
|
1
|
+
//
|
2
|
+
// Search input and autocomplete
|
3
|
+
//
|
4
|
+
|
5
|
+
.search {
|
6
|
+
position: relative;
|
7
|
+
z-index: 2;
|
8
|
+
flex-grow: 1;
|
9
|
+
height: $sp-10;
|
10
|
+
padding: $sp-2;
|
11
|
+
transition: padding linear #{$transition-duration / 2};
|
12
|
+
|
13
|
+
@include mq(md) {
|
14
|
+
position: relative !important;
|
15
|
+
width: auto !important;
|
16
|
+
height: 100% !important;
|
17
|
+
padding: 0;
|
18
|
+
transition: none;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
.search-input-wrap {
|
23
|
+
position: relative;
|
24
|
+
z-index: 1;
|
25
|
+
height: $sp-8;
|
26
|
+
overflow: hidden;
|
27
|
+
border-radius: $border-radius;
|
28
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
|
29
|
+
transition: height linear #{$transition-duration / 2};
|
30
|
+
|
31
|
+
@include mq(md) {
|
32
|
+
position: absolute;
|
33
|
+
width: 100%;
|
34
|
+
max-width: $search-results-width;
|
35
|
+
height: 100% !important;
|
36
|
+
border-radius: 0;
|
37
|
+
box-shadow: none;
|
38
|
+
transition: width ease $transition-duration;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
.search-input {
|
43
|
+
position: absolute;
|
44
|
+
width: 100%;
|
45
|
+
height: 100%;
|
46
|
+
padding-top: $sp-2;
|
47
|
+
padding-right: $gutter-spacing-sm;
|
48
|
+
padding-bottom: $sp-2;
|
49
|
+
padding-left: #{$gutter-spacing-sm + $sp-5};
|
50
|
+
font-size: 16px;
|
51
|
+
color: $body-text-color;
|
52
|
+
background-color: $search-background-color;
|
53
|
+
border-top: 0;
|
54
|
+
border-right: 0;
|
55
|
+
border-bottom: 0;
|
56
|
+
border-left: 0;
|
57
|
+
border-radius: 0;
|
58
|
+
|
59
|
+
@include mq(md) {
|
60
|
+
padding-top: $gutter-spacing-sm;
|
61
|
+
padding-bottom: $gutter-spacing-sm;
|
62
|
+
padding-left: #{$gutter-spacing + $sp-5};
|
63
|
+
font-size: 14px;
|
64
|
+
background-color: $body-background-color;
|
65
|
+
transition: padding-left linear #{$transition-duration / 2};
|
66
|
+
}
|
67
|
+
|
68
|
+
&:focus {
|
69
|
+
outline: 0;
|
70
|
+
|
71
|
+
+ .search-label .search-icon {
|
72
|
+
color: $link-color;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
.search-label {
|
78
|
+
position: absolute;
|
79
|
+
display: flex;
|
80
|
+
height: 100%;
|
81
|
+
padding-left: $gutter-spacing-sm;
|
82
|
+
|
83
|
+
@include mq(md) {
|
84
|
+
padding-left: $gutter-spacing;
|
85
|
+
transition: padding-left linear #{$transition-duration / 2};
|
86
|
+
}
|
87
|
+
|
88
|
+
.search-icon {
|
89
|
+
width: #{$sp-4 * 1.2};
|
90
|
+
height: #{$sp-4 * 1.2};
|
91
|
+
align-self: center;
|
92
|
+
color: $grey-dk-000;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
.search-results {
|
97
|
+
position: absolute;
|
98
|
+
left: 0;
|
99
|
+
display: none;
|
100
|
+
width: 100%;
|
101
|
+
max-height: calc(100% - #{$sp-10});
|
102
|
+
overflow-y: auto;
|
103
|
+
background-color: $search-background-color;
|
104
|
+
border-bottom-right-radius: $border-radius;
|
105
|
+
border-bottom-left-radius: $border-radius;
|
106
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
|
107
|
+
|
108
|
+
@include mq(md) {
|
109
|
+
top: 100%;
|
110
|
+
width: $search-results-width;
|
111
|
+
max-height: calc(100vh - 200%) !important;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
.search-results-list {
|
116
|
+
padding-left: 0;
|
117
|
+
margin-bottom: $sp-1;
|
118
|
+
list-style: none;
|
119
|
+
@include fs-4;
|
120
|
+
|
121
|
+
@include mq(md) {
|
122
|
+
@include fs-3;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
.search-results-list-item {
|
127
|
+
padding: 0;
|
128
|
+
margin: 0;
|
129
|
+
}
|
130
|
+
|
131
|
+
.search-result {
|
132
|
+
display: block;
|
133
|
+
padding-top: $sp-1;
|
134
|
+
padding-right: $sp-3;
|
135
|
+
padding-bottom: $sp-1;
|
136
|
+
padding-left: $sp-3;
|
137
|
+
|
138
|
+
&:hover,
|
139
|
+
&.active {
|
140
|
+
background-color: $feedback-color;
|
141
|
+
}
|
142
|
+
}
|
143
|
+
|
144
|
+
.search-result-title {
|
145
|
+
display: block;
|
146
|
+
padding-top: $sp-2;
|
147
|
+
padding-bottom: $sp-2;
|
148
|
+
|
149
|
+
@include mq(sm) {
|
150
|
+
display: inline-block;
|
151
|
+
width: 40%;
|
152
|
+
padding-right: $sp-2;
|
153
|
+
vertical-align: top;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
.search-result-doc {
|
158
|
+
display: flex;
|
159
|
+
align-items: center;
|
160
|
+
word-wrap: break-word;
|
161
|
+
|
162
|
+
&.search-result-doc-parent {
|
163
|
+
opacity: 0.5;
|
164
|
+
@include fs-3;
|
165
|
+
|
166
|
+
@include mq(md) {
|
167
|
+
@include fs-2;
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
.search-result-icon {
|
172
|
+
width: $sp-4;
|
173
|
+
height: $sp-4;
|
174
|
+
margin-right: $sp-2;
|
175
|
+
color: $link-color;
|
176
|
+
flex-shrink: 0;
|
177
|
+
}
|
178
|
+
|
179
|
+
.search-result-doc-title {
|
180
|
+
overflow: auto;
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
.search-result-section {
|
185
|
+
margin-left: #{$sp-4 + $sp-2};
|
186
|
+
word-wrap: break-word;
|
187
|
+
}
|
188
|
+
|
189
|
+
.search-result-rel-url {
|
190
|
+
display: block;
|
191
|
+
margin-left: #{$sp-4 + $sp-2};
|
192
|
+
overflow: hidden;
|
193
|
+
color: $search-result-preview-color;
|
194
|
+
text-overflow: ellipsis;
|
195
|
+
white-space: nowrap;
|
196
|
+
@include fs-1;
|
197
|
+
}
|
198
|
+
|
199
|
+
.search-result-previews {
|
200
|
+
display: block;
|
201
|
+
padding-top: $sp-2;
|
202
|
+
padding-bottom: $sp-2;
|
203
|
+
padding-left: $sp-4;
|
204
|
+
margin-left: $sp-2;
|
205
|
+
color: $search-result-preview-color;
|
206
|
+
word-wrap: break-word;
|
207
|
+
border-left: $border;
|
208
|
+
border-left-color: $border-color;
|
209
|
+
@include fs-2;
|
210
|
+
|
211
|
+
@include mq(sm) {
|
212
|
+
display: inline-block;
|
213
|
+
width: 60%;
|
214
|
+
padding-left: $sp-2;
|
215
|
+
margin-left: 0;
|
216
|
+
vertical-align: top;
|
217
|
+
}
|
218
|
+
}
|
219
|
+
|
220
|
+
.search-result-preview + .search-result-preview {
|
221
|
+
margin-top: $sp-1;
|
222
|
+
}
|
223
|
+
|
224
|
+
.search-result-highlight {
|
225
|
+
font-weight: bold;
|
226
|
+
}
|
227
|
+
|
228
|
+
.search-no-result {
|
229
|
+
padding-top: $sp-2;
|
230
|
+
padding-right: $sp-3;
|
231
|
+
padding-bottom: $sp-2;
|
232
|
+
padding-left: $sp-3;
|
233
|
+
@include fs-3;
|
234
|
+
}
|
235
|
+
|
236
|
+
.search-button {
|
237
|
+
position: fixed;
|
238
|
+
right: $sp-4;
|
239
|
+
bottom: $sp-4;
|
240
|
+
display: flex;
|
241
|
+
width: $sp-9;
|
242
|
+
height: $sp-9;
|
243
|
+
background-color: $search-background-color;
|
244
|
+
border: 1px solid rgba($link-color, 0.3);
|
245
|
+
border-radius: #{$sp-9 / 2};
|
246
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
|
247
|
+
align-items: center;
|
248
|
+
justify-content: center;
|
249
|
+
}
|
250
|
+
|
251
|
+
.search-overlay {
|
252
|
+
position: fixed;
|
253
|
+
top: 0;
|
254
|
+
left: 0;
|
255
|
+
z-index: 1;
|
256
|
+
width: 0;
|
257
|
+
height: 0;
|
258
|
+
background-color: rgba(0, 0, 0, 0.3);
|
259
|
+
opacity: 0;
|
260
|
+
transition: opacity ease $transition-duration, width 0s $transition-duration,
|
261
|
+
height 0s $transition-duration;
|
262
|
+
}
|
263
|
+
|
264
|
+
.search-active {
|
265
|
+
.search {
|
266
|
+
position: fixed;
|
267
|
+
top: 0;
|
268
|
+
left: 0;
|
269
|
+
width: 100%;
|
270
|
+
height: 100%;
|
271
|
+
padding: 0;
|
272
|
+
}
|
273
|
+
|
274
|
+
.search-input-wrap {
|
275
|
+
height: $sp-10;
|
276
|
+
border-radius: 0;
|
277
|
+
|
278
|
+
@include mq(md) {
|
279
|
+
width: $search-results-width;
|
280
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
|
281
|
+
}
|
282
|
+
}
|
283
|
+
|
284
|
+
.search-input {
|
285
|
+
background-color: $search-background-color;
|
286
|
+
|
287
|
+
@include mq(md) {
|
288
|
+
padding-left: 2.3rem;
|
289
|
+
}
|
290
|
+
}
|
291
|
+
|
292
|
+
.search-label {
|
293
|
+
@include mq(md) {
|
294
|
+
padding-left: 0.6rem;
|
295
|
+
}
|
296
|
+
}
|
297
|
+
|
298
|
+
.search-results {
|
299
|
+
display: block;
|
300
|
+
}
|
301
|
+
|
302
|
+
.search-overlay {
|
303
|
+
width: 100%;
|
304
|
+
height: 100%;
|
305
|
+
opacity: 1;
|
306
|
+
transition: opacity ease $transition-duration, width 0s, height 0s;
|
307
|
+
}
|
308
|
+
|
309
|
+
@include mq(md) {
|
310
|
+
.main {
|
311
|
+
position: fixed;
|
312
|
+
right: 0;
|
313
|
+
left: 0;
|
314
|
+
}
|
315
|
+
}
|
316
|
+
|
317
|
+
.main-header {
|
318
|
+
padding-top: $sp-10;
|
319
|
+
|
320
|
+
@include mq(md) {
|
321
|
+
padding-top: 0;
|
322
|
+
}
|
323
|
+
}
|
324
|
+
}
|
@@ -0,0 +1,153 @@
|
|
1
|
+
//
|
2
|
+
// Typography
|
3
|
+
//
|
4
|
+
|
5
|
+
$body-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
|
6
|
+
Roboto, "Helvetica Neue", Arial, sans-serif !default;
|
7
|
+
$mono-font-family: "SFMono-Regular", Menlo, Consolas, Monospace !default;
|
8
|
+
$root-font-size: 16px !default; // Base font-size for rems
|
9
|
+
$body-line-height: 1.4 !default;
|
10
|
+
$content-line-height: 1.6 !default;
|
11
|
+
$body-heading-line-height: 1.25 !default;
|
12
|
+
|
13
|
+
//
|
14
|
+
// Font size
|
15
|
+
// `-sm` suffix is the size at the small (and above) media query
|
16
|
+
//
|
17
|
+
|
18
|
+
$font-size-1: 9px !default;
|
19
|
+
$font-size-1-sm: 10px !default;
|
20
|
+
$font-size-2: 11px !default; //h4 - uppercased!, h6 not uppercased, text-small
|
21
|
+
$font-size-3: 12px !default; //h5
|
22
|
+
$font-size-4: 14px !default;
|
23
|
+
$font-size-5: 16px !default; //h3
|
24
|
+
$font-size-6: 18px !default; //h2
|
25
|
+
$font-size-7: 24px !default;
|
26
|
+
$font-size-8: 32px !default; //h1
|
27
|
+
$font-size-9: 36px !default;
|
28
|
+
$font-size-10: 42px !default;
|
29
|
+
$font-size-10-sm: 48px !default;
|
30
|
+
|
31
|
+
//
|
32
|
+
// Colors
|
33
|
+
//
|
34
|
+
|
35
|
+
$white: #fff !default;
|
36
|
+
|
37
|
+
$grey-dk-000: #959396 !default;
|
38
|
+
$grey-dk-100: #5c5962 !default;
|
39
|
+
$grey-dk-200: #44434d !default;
|
40
|
+
$grey-dk-250: #302d36 !default;
|
41
|
+
$grey-dk-300: #27262b !default;
|
42
|
+
|
43
|
+
$grey-lt-000: #f5f6fa !default;
|
44
|
+
$grey-lt-100: #eeebee !default;
|
45
|
+
$grey-lt-200: #ecebed !default;
|
46
|
+
$grey-lt-300: #e6e1e8 !default;
|
47
|
+
|
48
|
+
$purple-000: #7253ed !default;
|
49
|
+
$purple-100: #5e41d0 !default;
|
50
|
+
$purple-200: #4e26af !default;
|
51
|
+
$purple-300: #381885 !default;
|
52
|
+
|
53
|
+
$blue-000: #2c84fa !default;
|
54
|
+
$blue-100: #2869e6 !default;
|
55
|
+
$blue-200: #264caf !default;
|
56
|
+
$blue-300: #183385 !default;
|
57
|
+
|
58
|
+
$green-000: #41d693 !default;
|
59
|
+
$green-100: #11b584 !default;
|
60
|
+
$green-200: #009c7b !default;
|
61
|
+
$green-300: #026e57 !default;
|
62
|
+
|
63
|
+
$yellow-000: #ffeb82 !default;
|
64
|
+
$yellow-100: #fadf50 !default;
|
65
|
+
$yellow-200: #f7d12e !default;
|
66
|
+
$yellow-300: #e7af06 !default;
|
67
|
+
|
68
|
+
$red-000: #f77e7e !default;
|
69
|
+
$red-100: #f96e65 !default;
|
70
|
+
$red-200: #e94c4c !default;
|
71
|
+
$red-300: #dd2e2e !default;
|
72
|
+
|
73
|
+
$body-background-color: $white !default;
|
74
|
+
$sidebar-color: $grey-lt-000 !default;
|
75
|
+
$search-background-color: $white !default;
|
76
|
+
$table-background-color: $white !default;
|
77
|
+
$code-background-color: $grey-lt-000 !default;
|
78
|
+
$feedback-color: darken($sidebar-color, 3%) !default;
|
79
|
+
|
80
|
+
$body-text-color: $grey-dk-100 !default;
|
81
|
+
$body-heading-color: $grey-dk-300 !default;
|
82
|
+
$search-result-preview-color: $grey-dk-000 !default;
|
83
|
+
$nav-child-link-color: $grey-dk-100 !default;
|
84
|
+
$link-color: $purple-000 !default;
|
85
|
+
$btn-primary-color: $purple-100 !default;
|
86
|
+
$base-button-color: #f7f7f7 !default;
|
87
|
+
|
88
|
+
//
|
89
|
+
// Spacing
|
90
|
+
//
|
91
|
+
|
92
|
+
$spacing-unit: 1rem; // 1rem == 16px
|
93
|
+
|
94
|
+
$spacers: (
|
95
|
+
sp-0: 0,
|
96
|
+
sp-1: $spacing-unit * 0.25,
|
97
|
+
sp-2: $spacing-unit * 0.5,
|
98
|
+
sp-3: $spacing-unit * 0.75,
|
99
|
+
sp-4: $spacing-unit,
|
100
|
+
sp-5: $spacing-unit * 1.5,
|
101
|
+
sp-6: $spacing-unit * 2,
|
102
|
+
sp-7: $spacing-unit * 2.5,
|
103
|
+
sp-8: $spacing-unit * 3,
|
104
|
+
sp-9: $spacing-unit * 3.5,
|
105
|
+
sp-10: $spacing-unit * 4,
|
106
|
+
) !default;
|
107
|
+
|
108
|
+
$sp-1: map-get($spacers, sp-1) !default; // 0.25 rem == 4px
|
109
|
+
$sp-2: map-get($spacers, sp-2) !default; // 0.5 rem == 8px
|
110
|
+
$sp-3: map-get($spacers, sp-3) !default; // 0.75 rem == 12px
|
111
|
+
$sp-4: map-get($spacers, sp-4) !default; // 1 rem == 16px
|
112
|
+
$sp-5: map-get($spacers, sp-5) !default; // 1.5 rem == 24px
|
113
|
+
$sp-6: map-get($spacers, sp-6) !default; // 2 rem == 32px
|
114
|
+
$sp-7: map-get($spacers, sp-7) !default; // 2.5 rem == 40px
|
115
|
+
$sp-8: map-get($spacers, sp-8) !default; // 3 rem == 48px
|
116
|
+
$sp-9: map-get($spacers, sp-9) !default; // 3.5 rem == 56px
|
117
|
+
$sp-10: map-get($spacers, sp-10) !default; // 4 rem == 64px
|
118
|
+
|
119
|
+
//
|
120
|
+
// Borders
|
121
|
+
//
|
122
|
+
|
123
|
+
$border: 1px solid !default;
|
124
|
+
$border-radius: 4px !default;
|
125
|
+
$border-color: $grey-lt-100 !default;
|
126
|
+
|
127
|
+
//
|
128
|
+
// Grid system
|
129
|
+
//
|
130
|
+
|
131
|
+
$gutter-spacing: $sp-6 !default;
|
132
|
+
$gutter-spacing-sm: $sp-4 !default;
|
133
|
+
$nav-width: 264px !default;
|
134
|
+
$nav-width-md: 248px !default;
|
135
|
+
$nav-list-item-height: $sp-6 !default;
|
136
|
+
$nav-list-item-height-sm: $sp-8 !default;
|
137
|
+
$nav-list-expander-right: true;
|
138
|
+
$content-width: 800px !default;
|
139
|
+
$header-height: 60px !default;
|
140
|
+
$search-results-width: $content-width - $nav-width !default;
|
141
|
+
$transition-duration: 400ms;
|
142
|
+
|
143
|
+
//
|
144
|
+
// Media queries in pixels
|
145
|
+
//
|
146
|
+
|
147
|
+
$media-queries: (
|
148
|
+
xs: 320px,
|
149
|
+
sm: 500px,
|
150
|
+
md: $content-width,
|
151
|
+
lg: $content-width + $nav-width,
|
152
|
+
xl: 1400px,
|
153
|
+
) !default;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
// Colored button
|
2
|
+
|
3
|
+
@mixin btn-color($fg, $bg) {
|
4
|
+
color: $fg;
|
5
|
+
background-color: darken($bg, 2%);
|
6
|
+
background-image: linear-gradient(lighten($bg, 5%), darken($bg, 2%));
|
7
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.12);
|
8
|
+
|
9
|
+
&:hover,
|
10
|
+
&.zeroclipboard-is-hover {
|
11
|
+
color: $fg;
|
12
|
+
background-color: darken($bg, 4%);
|
13
|
+
background-image: linear-gradient((lighten($bg, 2%), darken($bg, 4%)));
|
14
|
+
}
|
15
|
+
|
16
|
+
&:active,
|
17
|
+
&.selected,
|
18
|
+
&.zeroclipboard-is-active {
|
19
|
+
background-color: darken($bg, 5%);
|
20
|
+
background-image: none;
|
21
|
+
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
|
22
|
+
}
|
23
|
+
|
24
|
+
&.selected:hover {
|
25
|
+
background-color: darken($bg, 10%);
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
// Media query
|
2
|
+
|
3
|
+
// Media query mixin
|
4
|
+
// Usage:
|
5
|
+
// @include mq(md) {
|
6
|
+
// ..medium and up styles
|
7
|
+
// }
|
8
|
+
@mixin mq($name) {
|
9
|
+
// Retrieves the value from the key
|
10
|
+
$value: map-get($media-queries, $name);
|
11
|
+
|
12
|
+
// If the key exists in the map
|
13
|
+
@if $value != null {
|
14
|
+
// Prints a media query based on the value
|
15
|
+
@media (min-width: rem($value)) {
|
16
|
+
@content;
|
17
|
+
}
|
18
|
+
} @else {
|
19
|
+
@warn "No value could be retrieved from `#{$media-query}`. "
|
20
|
+
+ "Please make sure it is defined in `$media-queries` map.";
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
// Responsive container
|
25
|
+
|
26
|
+
@mixin container {
|
27
|
+
padding-right: $gutter-spacing-sm;
|
28
|
+
padding-left: $gutter-spacing-sm;
|
29
|
+
|
30
|
+
@include mq(md) {
|
31
|
+
padding-right: $gutter-spacing;
|
32
|
+
padding-left: $gutter-spacing;
|
33
|
+
}
|
34
|
+
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
@mixin fs-1 {
|
2
|
+
font-size: $font-size-1 !important;
|
3
|
+
|
4
|
+
@include mq(sm) {
|
5
|
+
font-size: $font-size-1-sm !important;
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin fs-2 {
|
10
|
+
font-size: $font-size-2 !important;
|
11
|
+
|
12
|
+
@include mq(sm) {
|
13
|
+
font-size: $font-size-3 !important;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
@mixin fs-3 {
|
18
|
+
font-size: $font-size-3 !important;
|
19
|
+
|
20
|
+
@include mq(sm) {
|
21
|
+
font-size: $font-size-4 !important;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
@mixin fs-4 {
|
26
|
+
font-size: $font-size-4 !important;
|
27
|
+
|
28
|
+
@include mq(sm) {
|
29
|
+
font-size: $font-size-5 !important;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
@mixin fs-5 {
|
34
|
+
font-size: $font-size-5 !important;
|
35
|
+
|
36
|
+
@include mq(sm) {
|
37
|
+
font-size: $font-size-6 !important;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
@mixin fs-6 {
|
42
|
+
font-size: $font-size-6 !important;
|
43
|
+
|
44
|
+
@include mq(sm) {
|
45
|
+
font-size: $font-size-7 !important;
|
46
|
+
line-height: $body-heading-line-height;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
@mixin fs-7 {
|
51
|
+
font-size: $font-size-7 !important;
|
52
|
+
line-height: $body-heading-line-height;
|
53
|
+
|
54
|
+
@include mq(sm) {
|
55
|
+
font-size: $font-size-8 !important;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
@mixin fs-8 {
|
60
|
+
font-size: $font-size-8 !important;
|
61
|
+
line-height: $body-heading-line-height;
|
62
|
+
|
63
|
+
@include mq(sm) {
|
64
|
+
font-size: $font-size-9 !important;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
@mixin fs-9 {
|
69
|
+
font-size: $font-size-9 !important;
|
70
|
+
line-height: $body-heading-line-height;
|
71
|
+
|
72
|
+
@include mq(sm) {
|
73
|
+
font-size: $font-size-10 !important;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
@mixin fs-10 {
|
78
|
+
font-size: $font-size-10 !important;
|
79
|
+
line-height: $body-heading-line-height;
|
80
|
+
|
81
|
+
@include mq(sm) {
|
82
|
+
font-size: $font-size-10-sm !important;
|
83
|
+
}
|
84
|
+
}
|