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