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
@@ -0,0 +1,239 @@
1
+ @charset "UTF-8";
2
+
3
+ // Styles for rendered markdown in the .main-content container
4
+ // stylelint-disable selector-no-type, max-nesting-depth, selector-max-compound-selectors, selector-max-type, selector-max-specificity, selector-max-id
5
+
6
+ .main-content {
7
+ line-height: $content-line-height;
8
+
9
+ ol,
10
+ ul,
11
+ dl,
12
+ pre,
13
+ address,
14
+ blockquote,
15
+ .table-wrapper {
16
+ margin-top: 0.5em;
17
+ }
18
+
19
+ a {
20
+ overflow: hidden;
21
+ text-overflow: ellipsis;
22
+ }
23
+
24
+ ul,
25
+ ol {
26
+ padding-left: 1.5em;
27
+ }
28
+
29
+ li {
30
+ .highlight {
31
+ margin-top: $sp-1;
32
+ }
33
+ }
34
+
35
+ ol {
36
+ list-style-type: none;
37
+ counter-reset: step-counter;
38
+
39
+ > li {
40
+ position: relative;
41
+
42
+ &::before {
43
+ position: absolute;
44
+ top: 0.2em;
45
+ left: -1.6em;
46
+ color: $grey-dk-000;
47
+ content: counter(step-counter);
48
+ counter-increment: step-counter;
49
+ @include fs-3;
50
+
51
+ @include mq(sm) {
52
+ top: 0.11em;
53
+ }
54
+ }
55
+
56
+ ol {
57
+ counter-reset: sub-counter;
58
+
59
+ > li {
60
+ &::before {
61
+ content: counter(sub-counter, lower-alpha);
62
+ counter-increment: sub-counter;
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+
69
+ ul {
70
+ list-style: none;
71
+
72
+ > li {
73
+ &::before {
74
+ position: absolute;
75
+ margin-left: -1.4em;
76
+ color: $grey-dk-000;
77
+ content: "•";
78
+ }
79
+ }
80
+ }
81
+
82
+ .task-list-item {
83
+ &::before {
84
+ content: "";
85
+ }
86
+ }
87
+
88
+ .task-list-item-checkbox {
89
+ margin-right: 0.6em;
90
+ margin-left: -1.4em;
91
+
92
+ // The same margin-left is used above for ul > li::before
93
+ }
94
+
95
+ hr + * {
96
+ margin-top: 0;
97
+ }
98
+
99
+ h1:first-of-type {
100
+ margin-top: 0.5em;
101
+ }
102
+
103
+ dl {
104
+ display: grid;
105
+ grid-template: auto / 10em 1fr;
106
+ }
107
+
108
+ dt,
109
+ dd {
110
+ margin: 0.25em 0;
111
+ }
112
+
113
+ dt {
114
+ grid-column: 1;
115
+ font-weight: 500;
116
+ text-align: right;
117
+
118
+ &::after {
119
+ content: ":";
120
+ }
121
+ }
122
+
123
+ dd {
124
+ grid-column: 2;
125
+ margin-bottom: 0;
126
+ margin-left: 1em;
127
+
128
+ blockquote,
129
+ div,
130
+ dl,
131
+ dt,
132
+ h1,
133
+ h2,
134
+ h3,
135
+ h4,
136
+ h5,
137
+ h6,
138
+ li,
139
+ ol,
140
+ p,
141
+ pre,
142
+ table,
143
+ ul,
144
+ .table-wrapper {
145
+ &:first-child {
146
+ margin-top: 0;
147
+ }
148
+ }
149
+ }
150
+
151
+ dd,
152
+ ol,
153
+ ul {
154
+ dl:first-child {
155
+ dt:first-child,
156
+ dd:nth-child(2) {
157
+ margin-top: 0;
158
+ }
159
+ }
160
+ }
161
+
162
+ .anchor-heading {
163
+ position: absolute;
164
+ right: -$sp-4;
165
+ width: $sp-5;
166
+ height: 100%;
167
+ padding-right: $sp-1;
168
+ padding-left: $sp-1;
169
+ overflow: visible;
170
+
171
+ @include mq(md) {
172
+ right: auto;
173
+ left: -$sp-5;
174
+ }
175
+
176
+ svg {
177
+ display: inline-block;
178
+ width: 100%;
179
+ height: 100%;
180
+ color: $link-color;
181
+ visibility: hidden;
182
+ }
183
+ }
184
+
185
+ .anchor-heading:hover,
186
+ .anchor-heading:focus,
187
+ h1:hover > .anchor-heading,
188
+ h2:hover > .anchor-heading,
189
+ h3:hover > .anchor-heading,
190
+ h4:hover > .anchor-heading,
191
+ h5:hover > .anchor-heading,
192
+ h6:hover > .anchor-heading {
193
+ svg {
194
+ visibility: visible;
195
+ }
196
+ }
197
+
198
+ summary {
199
+ cursor: pointer;
200
+ }
201
+
202
+ h1,
203
+ h2,
204
+ h3,
205
+ h4,
206
+ h5,
207
+ h6,
208
+ #toctitle {
209
+ position: relative;
210
+ margin-top: 1.5em;
211
+ margin-bottom: 0.25em;
212
+
213
+ + table,
214
+ + .table-wrapper,
215
+ + .code-example,
216
+ + .highlighter-rouge,
217
+ + .sectionbody .listingblock {
218
+ margin-top: 1em;
219
+ }
220
+
221
+ + p:not(.label) {
222
+ margin-top: 0;
223
+ }
224
+ }
225
+
226
+ > h1:first-child,
227
+ > h2:first-child,
228
+ > h3:first-child,
229
+ > h4:first-child,
230
+ > h5:first-child,
231
+ > h6:first-child,
232
+ > .sect1:first-child > h2,
233
+ > .sect2:first-child > h3,
234
+ > .sect3:first-child > h4,
235
+ > .sect4:first-child > h5,
236
+ > .sect5:first-child > h6 {
237
+ margin-top: $sp-2;
238
+ }
239
+ }
@@ -0,0 +1,30 @@
1
+ // stylelint-disable scss/at-extend-no-missing-placeholder
2
+ // Just the HM Docs styles
3
+ @import "hm-branding";
4
+ @import "hm-code";
5
+ @import "hm-colors";
6
+ @import "hm-notes";
7
+
8
+ // Overrides
9
+ iframe {
10
+ max-width: 100%;
11
+ }
12
+
13
+ details {
14
+ @extend .mb-4;
15
+ }
16
+
17
+ .main-content {
18
+ dl {
19
+ display: block;
20
+ }
21
+
22
+ dt {
23
+ font-weight: 700;
24
+ text-align: start;
25
+ }
26
+
27
+ dd + dt {
28
+ margin-top: 1em;
29
+ }
30
+ }
@@ -0,0 +1,259 @@
1
+ html {
2
+ font-size: $font-size-5 !important;
3
+ }
4
+
5
+ a {
6
+ outline-color: $link-color;
7
+ }
8
+
9
+ a:not([class]) {
10
+ text-decoration-color: $link-color;
11
+
12
+ &:hover {
13
+ background: $base-button-color-hover;
14
+ color: darken($link-color, 10%);
15
+ text-decoration-color: darken($link-color, 10%);
16
+ }
17
+ }
18
+
19
+ input::placeholder,
20
+ .search-label .search-icon {
21
+ color: $link-color;
22
+ }
23
+
24
+ input::placeholder {
25
+ @include fs-4;
26
+ }
27
+
28
+ hr {
29
+ margin: $sp-7 0;
30
+ }
31
+
32
+ h1,
33
+ h2,
34
+ h3,
35
+ h5,
36
+ h6 {
37
+ font-weight: 700;
38
+ }
39
+
40
+ h1 {
41
+ @include fs-9;
42
+
43
+ .main-content & {
44
+ margin-bottom: $sp-3;
45
+ }
46
+ }
47
+
48
+ h2 {
49
+ @include fs-7;
50
+
51
+ .main-content & {
52
+ margin-bottom: $sp-5;
53
+ }
54
+ }
55
+
56
+ h3 {
57
+ @include fs-6;
58
+ }
59
+
60
+ h4 {
61
+ @include fs-5;
62
+ }
63
+
64
+ h5 {
65
+ @include fs-5;
66
+ }
67
+
68
+ h6 {
69
+ @include fs-4;
70
+ }
71
+
72
+ .btn {
73
+ background-image: none;
74
+ border-radius: 3rem;
75
+ box-shadow: none;
76
+ align-items: center;
77
+ display: inline-flex;
78
+ font-weight: 700;
79
+ padding: $sp-3 $sp-4;
80
+
81
+ &:not(.btn-primary, .btn-purple, .btn-blue, .btn-green, .btn-outline) {
82
+ box-shadow: inset 0 0 0 2px $link-color;
83
+ }
84
+
85
+ &::after {
86
+ content: "\2192";
87
+ font-size: 144%;
88
+ font-weight: 400;
89
+ line-height: 0.8;
90
+ margin-left: $sp-2;
91
+ transition: transform ease 200ms;
92
+ }
93
+
94
+ &:hover {
95
+ &:not(.btn-primary, .btn-purple, .btn-blue, .btn-green) {
96
+ background: $base-button-color-hover;
97
+ }
98
+
99
+ &::after {
100
+ transform: translateX($sp-1);
101
+ }
102
+ }
103
+
104
+ &:focus,
105
+ &:focus:hover,
106
+ &.selected:focus {
107
+ box-shadow: 0 0 0 3px rgba($link-color, 0.4);
108
+
109
+ &:not(.btn-primary, .btn-purple, .btn-blue, .btn-green, .btn-outline) {
110
+ box-shadow: inset 0 0 0 2px $link-color, 0 0 0 3px rgba($link-color, 0.4);
111
+ }
112
+ }
113
+ }
114
+
115
+ .btn-primary:hover {
116
+ background: $btn-primary-color-hover;
117
+ }
118
+
119
+ .btn-outline {
120
+ &,
121
+ &:hover {
122
+ box-shadow: inset 0 0 0 2px $body-heading-color;
123
+ color: $body-heading-color;
124
+ }
125
+
126
+ &:focus,
127
+ &:focus:hover,
128
+ &.selected:focus {
129
+ box-shadow: inset 0 0 0 2px $body-heading-color,
130
+ 0 0 0 3px rgba($link-color, 0.4);
131
+ }
132
+ }
133
+
134
+ .label {
135
+ padding: $sp-1 $sp-2;
136
+ }
137
+
138
+ .site-title,
139
+ .site-button {
140
+ outline-offset: -1px;
141
+
142
+ &:hover {
143
+ background: $sidebar-color;
144
+ }
145
+ }
146
+
147
+ .site-header,
148
+ .main-header,
149
+ .side-bar {
150
+ border-color: $border-color-lt;
151
+ }
152
+
153
+ .side-bar {
154
+ background-color: $white;
155
+ }
156
+
157
+ .site-title,
158
+ .nav-list .nav-list-item .nav-list-link,
159
+ .site-footer {
160
+ @include mq(md) {
161
+ padding-left: $gutter-spacing-sm;
162
+ }
163
+ }
164
+
165
+ .site-title {
166
+ @include mq(md) {
167
+ font-size: rem(21px) !important;
168
+ padding-bottom: $gutter-spacing-sm;
169
+ padding-top: $gutter-spacing-sm;
170
+ }
171
+ }
172
+
173
+ .site-logo {
174
+ align-items: center;
175
+ display: flex;
176
+ font-weight: 700;
177
+
178
+ &::after {
179
+ content: "Documentation";
180
+ padding-left: rem(62px);
181
+
182
+ @include mq(md) {
183
+ padding-left: rem(53px);
184
+ }
185
+ }
186
+ }
187
+
188
+ .site-nav {
189
+ margin-bottom: $gutter-spacing-sm;
190
+ }
191
+
192
+ .nav-list .nav-list-item {
193
+ font-size: $font-size-5 !important;
194
+
195
+ .nav-list-expander,
196
+ .nav-list-link {
197
+ color: $nav-child-link-color;
198
+
199
+ &:hover,
200
+ &.active {
201
+ background: $sidebar-color;
202
+ }
203
+ }
204
+
205
+ .nav-list-link {
206
+ outline-offset: -1px;
207
+ text-decoration: underline;
208
+ text-underline-offset: rem(3px);
209
+
210
+ .nav-list .nav-list-item > &:hover,
211
+ &:hover,
212
+ &.active {
213
+ color: $link-color;
214
+ text-decoration: underline;
215
+ }
216
+
217
+ &.active {
218
+ font-weight: 700;
219
+ }
220
+
221
+ &.external {
222
+ padding-right: 1rem;
223
+ }
224
+ }
225
+ }
226
+
227
+ .search {
228
+ padding: $gutter-spacing-sm;
229
+ padding-bottom: 0;
230
+
231
+ @include mq(md) {
232
+ padding: 0;
233
+ }
234
+ }
235
+
236
+ .search-input {
237
+ padding-left: #{$gutter-spacing-sm + $sp-6};
238
+
239
+ html:not(.search-active) &:focus-visible {
240
+ box-shadow: inset 0 0 1em $grey-lt-100;
241
+ }
242
+
243
+ @include mq(md) {
244
+ padding-left: #{$gutter-spacing + $sp-6};
245
+ }
246
+ }
247
+
248
+ .search-label .search-icon {
249
+ height: rem(22px);
250
+ width: rem(22px);
251
+ }
252
+
253
+ .search-result {
254
+ outline-offset: -1px;
255
+ }
256
+
257
+ .aux-nav {
258
+ @include fs-4;
259
+ }
@@ -0,0 +1,153 @@
1
+ // HM styling just for code blocks and snippets.
2
+ :not(pre, figure) > code {
3
+ padding: $sp-1 $sp-2;
4
+ }
5
+
6
+ div.highlighter-rouge,
7
+ div.listingblock > div.content,
8
+ figure.highlight,
9
+ .highlight .table-wrapper td,
10
+ .highlight .table-wrapper pre {
11
+ background-color: $code-block-background-color;
12
+ color: $code-block-color;
13
+ }
14
+
15
+ code,
16
+ .highlight .table-wrapper td,
17
+ .highlight .table-wrapper pre {
18
+ font-size: $font-size-4 !important;
19
+ }
20
+
21
+ div.highlighter-rouge,
22
+ div.listingblock {
23
+ div.highlight {
24
+ padding: $sp-5;
25
+ }
26
+ }
27
+
28
+ // Mostly taken from OneDarkJekyll - Vivid.
29
+ // https://github.com/mgyongyosi/OneDarkJekyll/blob/master/syntax-one-dark-vivid.css
30
+ .highlight {
31
+ .c, // comment
32
+ .cm, // comment.multiline
33
+ .cp, // comment.preproc
34
+ .c1, // comment.single
35
+ .cs, // comment.special
36
+ .gu // generic.subheading
37
+ {
38
+ color: #989fae;
39
+ font-style: italic;
40
+ }
41
+
42
+ .err // error
43
+ {
44
+ color: #960050;
45
+ background-color: #1e0010;
46
+ }
47
+
48
+ .k, // keyword
49
+ .kc, // keyword.constant
50
+ .kd, // keyword.declaration
51
+ .kn, // keyword.namespace
52
+ .kp, // keyword.pseudo
53
+ .kr, // keyword.reserved
54
+ .kt // keyword.type
55
+ {
56
+ color: #e19ef5;
57
+ }
58
+
59
+ .l, // literal
60
+ .ld, // literal.date
61
+ .s, // literal.string
62
+ .sb, // literal.string.backtick
63
+ .sc, // literal.string.char
64
+ .sd, // literal.string.doc
65
+ .s1, // literal.string.single
66
+ .s2, // literal.string.double
67
+ .se, // literal.string.escape
68
+ .sh, // literal.string.heredoc
69
+ .si, // literal.string.interpol
70
+ .sx // literal.string.other
71
+ {
72
+ color: #a3eea0;
73
+ }
74
+
75
+ .n, // name
76
+ .nf, // name.function
77
+ .nn, // name.namespace
78
+ .nx, // name.other
79
+ .o, // operator
80
+ .p // punctuation
81
+ {
82
+ color: #dee2f7;
83
+ }
84
+
85
+ .ge // generic.emph
86
+ {
87
+ font-style: italic;
88
+ }
89
+
90
+ .gs // generic.strong
91
+ {
92
+ font-weight: 700;
93
+ }
94
+
95
+ .m, // literal.number
96
+ .il, // literal.number.integer.long
97
+ .mf, // literal.number.float
98
+ .mh, // literal.number.hex
99
+ .mi, // literal.number.integer
100
+ .mo, // literal.number.oct
101
+ .na // name.attribute
102
+ {
103
+ color: #eddc96;
104
+ }
105
+
106
+ .bp, // name.builtin.pseudo
107
+ .nb, // name.builtin
108
+ .nc, // name.class
109
+ .no, // name.constant
110
+ .nd, // name.decorator
111
+ .ni, // name.entity
112
+ .ne, // name.exception
113
+ .nl, // name.label
114
+ .nv, // name.variable
115
+ .py, // name.property
116
+ .vc, // name.variable.class
117
+ .vg // name.variable.global
118
+ {
119
+ color: #fdce68;
120
+ }
121
+
122
+ .nt, // name.tag
123
+ .vi // name.variable.instance
124
+ {
125
+ color: #f9867b;
126
+ }
127
+
128
+ .ow // operator.word
129
+ {
130
+ font-weight: 700;
131
+ }
132
+
133
+ .w // text.whitespace
134
+ {
135
+ color: #f8f8f2;
136
+ }
137
+
138
+ .sr, // literal.string.regex
139
+ .ss // literal.string.symbol
140
+ {
141
+ color: #7be2f9;
142
+ }
143
+
144
+ .gd // generic.deleted
145
+ {
146
+ color: #f92672;
147
+ }
148
+
149
+ .gi // generic.inserted
150
+ {
151
+ color: #a6e22e;
152
+ }
153
+ }
@@ -0,0 +1,15 @@
1
+ // Utility classes for HM colors.
2
+
3
+ // Text colors
4
+ @each $name, $color in $hm-colors {
5
+ .text-#{$name} {
6
+ color: $color !important;
7
+ }
8
+ }
9
+
10
+ // Background colors
11
+ @each $name, $color in $hm-colors {
12
+ .bg-#{$name} {
13
+ background-color: $color !important;
14
+ }
15
+ }
@@ -0,0 +1,38 @@
1
+ // HM styling just for callouts, notes, and warnings.
2
+ blockquote {
3
+ border-left: 0 none;
4
+ }
5
+
6
+ p,
7
+ blockquote {
8
+ &.highlight,
9
+ &.important,
10
+ &.important-title,
11
+ &.new,
12
+ &.note,
13
+ &.note-title,
14
+ &.warning {
15
+ border-left: 0 none;
16
+ box-shadow: none;
17
+ margin-bottom: $sp-7;
18
+ margin-top: $sp-7;
19
+ padding: $sp-5;
20
+
21
+ & > &,
22
+ & > div.opaque > & {
23
+ margin-bottom: $sp-4;
24
+ margin-top: $sp-4;
25
+ }
26
+
27
+ &::before,
28
+ &:is(.important-title) > p:first-child,
29
+ &:is(.note-title) > p:first-child {
30
+ @include fs-3;
31
+ letter-spacing: 1px;
32
+ }
33
+ }
34
+ }
35
+
36
+ div.opaque {
37
+ border-radius: $border-radius;
38
+ }