just-the-hm-docs 1.0.0.rc1

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