hdoc-tools 0.8.23 → 0.8.24

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 (37) hide show
  1. package/hdoc-build-pdf.js +169 -0
  2. package/hdoc-build.js +38 -8
  3. package/hdoc-init.js +0 -1
  4. package/hdoc-validate.js +0 -2
  5. package/hdoc.js +1 -1
  6. package/package.json +4 -2
  7. package/templates/pdf/css/custom-block.css +90 -0
  8. package/templates/pdf/css/fonts.css +221 -0
  9. package/templates/pdf/css/hdocs-pdf.css +242 -0
  10. package/templates/pdf/css/vars.css +393 -0
  11. package/templates/pdf/fonts/inter-cyrillic copy.woff2 +0 -0
  12. package/templates/pdf/fonts/inter-cyrillic-ext.woff2 +0 -0
  13. package/templates/pdf/fonts/inter-cyrillic.woff2 +0 -0
  14. package/templates/pdf/fonts/inter-greek-ext.woff2 +0 -0
  15. package/templates/pdf/fonts/inter-greek.woff2 +0 -0
  16. package/templates/pdf/fonts/inter-italic-cyrillic-ext.woff2 +0 -0
  17. package/templates/pdf/fonts/inter-italic-cyrillic.woff2 +0 -0
  18. package/templates/pdf/fonts/inter-italic-greek-ext.woff2 +0 -0
  19. package/templates/pdf/fonts/inter-italic-greek.woff2 +0 -0
  20. package/templates/pdf/fonts/inter-italic-latin-ext.woff2 +0 -0
  21. package/templates/pdf/fonts/inter-italic-latin.woff2 +0 -0
  22. package/templates/pdf/fonts/inter-italic-vietnamese.woff2 +0 -0
  23. package/templates/pdf/fonts/inter-latin-ext.woff2 +0 -0
  24. package/templates/pdf/fonts/inter-latin.woff2 +0 -0
  25. package/templates/pdf/fonts/inter-roman-cyrillic-ext.woff2 +0 -0
  26. package/templates/pdf/fonts/inter-roman-cyrillic.woff2 +0 -0
  27. package/templates/pdf/fonts/inter-roman-greek-ext.woff2 +0 -0
  28. package/templates/pdf/fonts/inter-roman-greek.woff2 +0 -0
  29. package/templates/pdf/fonts/inter-roman-latin-ext.woff2 +0 -0
  30. package/templates/pdf/fonts/inter-roman-latin.woff2 +0 -0
  31. package/templates/pdf/fonts/inter-roman-vietnamese.woff2 +0 -0
  32. package/templates/pdf/fonts/inter-vietnamese.woff2 +0 -0
  33. package/templates/pdf/images/hornbill-logo-full.svg +92 -0
  34. package/templates/pdf/template-footer.html +19 -0
  35. package/templates/pdf/template.html +13 -0
  36. package/templates/pdf-header-non-git.html +13 -0
  37. package/templates/pdf-header.html +17 -0
@@ -0,0 +1,242 @@
1
+ :root {
2
+ --htl-font-family-base: 'Inter var experimental', 'Inter var', 'Inter',
3
+ ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
4
+ Roboto, 'Helvetica Neue', Helvetica, Arial, 'Noto Sans', sans-serif,
5
+ 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
6
+ --htl-font-family-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco,
7
+ Consolas, 'Liberation Mono', 'Courier New', monospace;
8
+
9
+
10
+ --htl-default-font-size: 14px;
11
+ --htl-small-font-size: 12px;
12
+ --htl-smallest-font-size: 10px;
13
+ --htl-big-font-size: 16px;
14
+ --htl-biggest-font-size: 18px;
15
+ --htl-massive-font-size: 24px;
16
+
17
+ }
18
+
19
+ /**
20
+ * Component: Custom Block
21
+ * -------------------------------------------------------------------------- */
22
+
23
+ :root {
24
+ --htl-custom-block-code-font-size: var(--htl-default-font-size);
25
+
26
+ --htl-custom-block-info-border: rgba(23, 23, 23, 0.5);
27
+ --htl-custom-block-info-text: #171717;
28
+ --htl-custom-block-info-bg: #d7eaf8;
29
+ --htl-custom-block-info-code-bg: var(--htl-c-gray-light-4);
30
+
31
+
32
+ --htl-custom-block-tip-border: var(--htl-c-green-dimm-1);
33
+ --htl-custom-block-tip-text: var(--htl-c-green-darker);
34
+ --htl-custom-block-tip-bg: var(--htl-c-green-dimm-3);
35
+ --htl-custom-block-tip-code-bg: var(--htl-custom-block-tip-bg);
36
+
37
+ --htl-custom-block-caution-border: var(--htl-c-yellow-dimm-1);
38
+ --htl-custom-block-caution-text: var(--htl-c-yellow-darker);
39
+ --htl-custom-block-caution-bg: var(--htl-c-yellow-dimm-3);
40
+ --htl-custom-block-caution-code-bg: var(--htl-custom-block-caution-bg);
41
+
42
+ --htl-custom-block-warning-border: var(--htl-c-red-dimm-1);
43
+ --htl-custom-block-warning-text: var(--htl-c-red-darker);
44
+ --htl-custom-block-warning-bg: var(--htl-c-red-dimm-3);
45
+ --htl-custom-block-warning-code-bg: var(--htl-custom-block-warning-bg);
46
+
47
+ --htl-custom-block-details-border: var(--htl-c-divider-light);
48
+ --htl-custom-block-details-text: var(--htl-c-text-2);
49
+ --htl-custom-block-details-bg: var(--htl-c-white-soft);
50
+ --htl-custom-block-details-code-bg: var(---htl-custom-block-details-bg);
51
+
52
+ }
53
+
54
+
55
+ body {
56
+ font-family: var(--htl-font-family-base);
57
+ }
58
+
59
+ p {
60
+ font-size: var(--htl-default-font-size);
61
+ }
62
+
63
+ li {
64
+ font-size: var(--htl-default-font-size);
65
+ }
66
+
67
+
68
+ /**
69
+ * Table
70
+ * -------------------------------------------------------------------------- */
71
+
72
+ table {
73
+ display: block;
74
+ border-collapse: collapse;
75
+ margin: 20px 0;
76
+ font-size: var(--htl-default-font-size);
77
+ /* sets font-size for table and table rows/td/th etc*/
78
+ }
79
+
80
+ tr {
81
+ border-top: 1px solid var(--htl-c-divider);
82
+ transition: background-color 0.5s;
83
+ }
84
+
85
+ tr:nth-child(2n) {
86
+ background-color: var(--htl-c-bg-soft);
87
+ }
88
+
89
+ th,
90
+ td {
91
+ border: 1px solid var(--htl-c-divider);
92
+ padding: 10px 14px;
93
+ vertical-align: top;
94
+ }
95
+
96
+ th {
97
+ font-size: var(--htl-default-font-size);
98
+ font-weight: 600;
99
+ background-color: var(--htl-c-white-soft);
100
+ }
101
+
102
+ .dark th {
103
+ background-color: var(--htl-c-black);
104
+ }
105
+
106
+ hr {
107
+ margin: 16px 0;
108
+ border: none;
109
+ border-top: 1px solid var(--htl-c-divider-light);
110
+ }
111
+
112
+ img,
113
+ svg {
114
+ display: inline-block;
115
+ }
116
+
117
+ video,
118
+ canvas,
119
+ audio,
120
+ iframe,
121
+ embed,
122
+ object {
123
+ display:none;
124
+ }
125
+
126
+ figure {
127
+ margin: 0;
128
+ }
129
+
130
+ img,
131
+ video {
132
+ max-width: 100%;
133
+ height: auto;
134
+ }
135
+
136
+ .header {
137
+ width: 100%;
138
+ position: relative;
139
+ }
140
+
141
+ .header img {
142
+ width: 150px;
143
+ float: right;
144
+ }
145
+
146
+
147
+ .after-bullets li:not(:last-child)::after {
148
+ content: "•";
149
+ padding-left: 5px;
150
+ padding-right: 5px;
151
+ }
152
+
153
+ /* top nav bar */
154
+ .nav-bar-nav-list {
155
+ margin-left: -39px;
156
+ margin-top: -20px;
157
+ align-items: stretch;
158
+ display: flex;
159
+ font-size: var(--htl-small-font-size);
160
+ }
161
+
162
+ .nav-bar-nav-list .nav-bar-item {
163
+ flex-shrink: 0;
164
+ align-items: center;
165
+ display: flex;
166
+ font-size: var(--htl-small-font-size);
167
+ }
168
+
169
+ .hdoc-alert {
170
+ border: 1px solid transparent;
171
+ border-radius: 8px;
172
+ padding: 16px 16px 8px;
173
+ line-height: 24px;
174
+ font-size: var(--htl-default-font-size);
175
+ color: var(--htl-c-text-2);
176
+ margin: 10px 0;
177
+ }
178
+
179
+ .hdoc-alert p {
180
+ margin: 8 0;
181
+ }
182
+
183
+ .hdoc-alert .hdoc-alert-title .bi {
184
+ margin-right: 5px;
185
+
186
+ }
187
+
188
+ .hdoc-alert .hdoc-alert-title {
189
+ font-weight: 700;
190
+ margin: 0;
191
+ }
192
+
193
+ .hdoc-alert.alert-icon-note {
194
+ border-color: var(--htl-custom-block-details-border);
195
+ color: var(--htl-custom-block-details-text);
196
+ background-color: var(--htl-custom-block-details-bg);
197
+ }
198
+
199
+ .hdoc-alert.alert-icon-note code {
200
+ background-color: var(--htl-custom-block-details-code-bg);
201
+ }
202
+
203
+ .hdoc-alert.alert-icon-tip {
204
+ border-color: var(--htl-custom-block-tip-border);
205
+ color: var(--htl-custom-block-tip-text);
206
+ background-color: var(--htl-custom-block-tip-bg);
207
+ }
208
+
209
+ .hdoc-alert.alert-icon-tip code {
210
+ background-color: var(--htl-custom-block-tip-code-bg);
211
+ }
212
+
213
+ .hdoc-alert.alert-icon-important {
214
+ border-color: var(--htl-custom-block-info-border);
215
+ color: var(--htl-custom-block-info-text);
216
+ background-color: var(--htl-custom-block-info-bg);
217
+
218
+ }
219
+
220
+ .hdoc-alert.alert-icon-important code {
221
+ background-color: var(--htl-custom-block-info-code-bg);
222
+ }
223
+
224
+ .hdoc-alert.alert-icon-caution {
225
+ border-color: var(--htl-custom-block-caution-border);
226
+ color: var(--htl-custom-block-caution-text);
227
+ background-color: var(--htl-custom-block-caution-bg);
228
+ }
229
+
230
+ .hdoc-alert.alert-icon-caution code {
231
+ background-color: var(--htl-custom-block-caution-code-bg);
232
+ }
233
+
234
+ .hdoc-alert.alert-icon-warning {
235
+ border-color: var(--htl-custom-block-warning-border);
236
+ color: var(--htl-custom-block-warning-text);
237
+ background-color: var(--htl-custom-block-warning-bg);
238
+ }
239
+
240
+ .hdoc-alert.alert-icon-warning code {
241
+ background-color: var(--htl-custom-block-warning-code-bg);
242
+ }
@@ -0,0 +1,393 @@
1
+ /**
2
+ * Colors Base
3
+ *
4
+ * These are the pure base color presets. Most of the time, you should not be
5
+ * using these colors directly in the theme but rather use "Colors Theme"
6
+ * instead because those are "Theme (light or dark)" dependant.
7
+ * -------------------------------------------------------------------------- */
8
+
9
+ :root {
10
+ --htl-c-white: rgba(255, 255, 255, 1);
11
+ --htl-c-white-soft: #f9f9f9;
12
+ --htl-c-white-mute: #f1f1f1;
13
+
14
+ --htl-c-black: #1a1a1a;
15
+ --htl-c-black-pure: #000000;
16
+ --htl-c-black-soft: #242424;
17
+ --htl-c-black-mute: #2f2f2f;
18
+
19
+ --htl-c-gray: #8e8e8e;
20
+ --htl-c-gray-light-1: #aeaeae;
21
+ --htl-c-gray-light-2: #c7c7c7;
22
+ --htl-c-gray-light-3: #d1d1d1;
23
+ --htl-c-gray-light-4: #e5e5e5;
24
+ --htl-c-gray-light-5: #f2f2f2;
25
+ --htl-c-gray-dark-1: #636363;
26
+ --htl-c-gray-dark-2: #484848;
27
+ --htl-c-gray-dark-3: #3a3a3a;
28
+ --htl-c-gray-dark-4: #282828;
29
+ --htl-c-gray-dark-5: #202020;
30
+
31
+ --htl-c-divider-light-1: rgba(60, 60, 60, 0.29);
32
+ --htl-c-divider-light-2: rgba(60, 60, 60, 0.12);
33
+ --htl-c-divider-dark-1: rgba(84, 84, 84, 0.65);
34
+ --htl-c-divider-dark-2: rgba(84, 84, 84, 0.48);
35
+
36
+ --htl-c-text-light-1: var(--htl-c-indigo);
37
+ --htl-c-text-light-2: rgb(27, 27, 27);
38
+ --htl-c-text-light-3: rgba(60, 60, 60, 0.33);
39
+ --htl-c-text-light-4: rgba(60, 60, 60, 0.18);
40
+
41
+ --htl-c-text-dark-1: rgba(255, 255, 255, 0.87);
42
+ --htl-c-text-dark-2: rgba(235, 235, 235, 0.6);
43
+ --htl-c-text-dark-3: rgba(235, 235, 235, 0.38);
44
+ --htl-c-text-dark-4: rgba(235, 235, 235, 0.18);
45
+
46
+ --htl-c-indigo: #213547;
47
+ --htl-c-indigo-soft: #476582;
48
+ --htl-c-indigo-light: #aac8e4;
49
+ --htl-c-indigo-lighter: #c9def1;
50
+ --htl-c-indigo-dark: #1d2f3f;
51
+ --htl-c-indigo-darker: #14212e;
52
+
53
+ --htl-c-green: #42b883;
54
+ --htl-c-green-light: #42d392;
55
+ --htl-c-green-lighter: #35eb9a;
56
+ --htl-c-green-dark: #33a06f;
57
+ --htl-c-green-darker: #155f3e;
58
+ --htl-c-green-dimm-1: rgba(66, 184, 131, 0.5);
59
+ --htl-c-green-dimm-2: rgba(66, 184, 131, 0.25);
60
+ --htl-c-green-dimm-3: rgba(66, 184, 131, 0.05);
61
+
62
+ --htl-c-yellow: #ffc517;
63
+ --htl-c-yellow-light: #fcd253;
64
+ --htl-c-yellow-lighter: #fcfc7c;
65
+ --htl-c-yellow-dark: #e0ad15;
66
+ --htl-c-yellow-darker: #ad850e;
67
+ --htl-c-yellow-dimm-1: rgba(255, 197, 23, 0.5);
68
+ --htl-c-yellow-dimm-2: rgba(255, 197, 23, 0.25);
69
+ --htl-c-yellow-dimm-3: rgba(255, 197, 23, 0.05);
70
+
71
+ --htl-c-red: #ed3c50;
72
+ --htl-c-red-light: #f54e82;
73
+ --htl-c-red-lighter: #fd1d7c;
74
+ --htl-c-red-dark: #cd2d3f;
75
+ --htl-c-red-darker: #ab2131;
76
+ --htl-c-red-dimm-1: rgba(237, 60, 80, 0.5);
77
+ --htl-c-red-dimm-2: rgba(237, 60, 80, 0.25);
78
+ --htl-c-red-dimm-3: rgba(237, 60, 80, 0.05);
79
+
80
+ --htl-c-blue: #379cdbff;
81
+ --htl-c-blue-light: #75c7faff;
82
+ --htl-c-blue-lighter: #87cefaff;
83
+ --htl-c-blue-dark: #208fd4ff;
84
+ --htl-c-blue-darker: #187cbaff;
85
+ --htl-c-blue-dimm-1: rgba(55, 156, 219, 0.5);
86
+ --htl-c-blue-dimm-2: rgba(55, 156, 219, 0.25);
87
+ --htl-c-blue-dimm-3: rgba(55, 156, 219, 0.05);
88
+
89
+ }
90
+
91
+ /**
92
+ * Colors Theme
93
+ * -------------------------------------------------------------------------- */
94
+
95
+ :root {
96
+ --htl-c-bg: var(--htl-c-white);
97
+ --htl-c-bg-soft: var(--htl-c-white-soft);
98
+ --htl-c-bg-mute: var(--htl-c-white-mute);
99
+ --htl-c-bg-alt: var(--htl-c-white-soft);
100
+
101
+ --htl-c-divider: var(--htl-c-divider-light-1);
102
+ --htl-c-divider-light: var(--htl-c-divider-light-2);
103
+
104
+ --htl-c-divider-inverse: var(--htl-c-divider-dark-1);
105
+ --htl-c-divider-inverse-light: var(--htl-c-divider-dark-2);
106
+
107
+ --htl-c-text-1: var(--htl-c-text-light-1);
108
+ --htl-c-text-2: var(--htl-c-text-light-2);
109
+ --htl-c-text-3: var(--htl-c-text-light-3);
110
+ --htl-c-text-4: var(--htl-c-text-light-4);
111
+
112
+ --htl-c-text-inverse-1: var(--htl-c-text-dark-1);
113
+ --htl-c-text-inverse-2: var(--htl-c-text-dark-2);
114
+ --htl-c-text-inverse-3: var(--htl-c-text-dark-3);
115
+ --htl-c-text-inverse-4: var(--htl-c-text-dark-4);
116
+
117
+ --htl-c-text-code: var(--htl-c-indigo-soft);
118
+
119
+ --htl-c-brand: var(--htl-c-blue);
120
+ --htl-c-brand-light: var(--htl-c-blue-light);
121
+ --htl-c-brand-lighter: var(--htl-c-blue-lighter);
122
+ --htl-c-brand-dark: var(--htl-c-blue-dark);
123
+ --htl-c-brand-darker: var(--htl-c-blue-darker);
124
+
125
+ --htl-c-sponsor: #fd1d7c;
126
+ }
127
+
128
+ .dark {
129
+ --htl-c-bg: var(--htl-c-black-soft);
130
+ --htl-c-bg-soft: var(--htl-c-black-mute);
131
+ --htl-c-bg-mute: var(--htl-c-gray-dark-3);
132
+ --htl-c-bg-alt: var(--htl-c-black);
133
+
134
+ --htl-c-divider: var(--htl-c-divider-dark-1);
135
+ --htl-c-divider-light: var(--htl-c-divider-dark-2);
136
+
137
+ --htl-c-divider-inverse: var(--htl-c-divider-light-1);
138
+ --htl-c-divider-inverse-light: var(--htl-c-divider-light-2);
139
+
140
+ --htl-c-text-1: var(--htl-c-text-dark-1);
141
+ --htl-c-text-2: var(--htl-c-text-dark-2);
142
+ --htl-c-text-3: var(--htl-c-text-dark-3);
143
+ --htl-c-text-4: var(--htl-c-text-dark-4);
144
+
145
+ --htl-c-text-inverse-1: var(--htl-c-text-light-1);
146
+ --htl-c-text-inverse-2: var(--htl-c-text-light-2);
147
+ --htl-c-text-inverse-3: var(--htl-c-text-light-3);
148
+ --htl-c-text-inverse-4: var(--htl-c-text-light-4);
149
+
150
+ --htl-c-text-code: var(--htl-c-indigo-lighter);
151
+ }
152
+
153
+ /**
154
+ * Typography
155
+ * -------------------------------------------------------------------------- */
156
+
157
+ :root {
158
+ --htl-font-family-base: 'Inter var experimental', 'Inter var', 'Inter',
159
+ ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
160
+ Roboto, 'Helvetica Neue', Helvetica, Arial, 'Noto Sans', sans-serif,
161
+ 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
162
+ --htl-font-family-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco,
163
+ Consolas, 'Liberation Mono', 'Courier New', monospace;
164
+
165
+
166
+ --htl-default-font-size:14px;
167
+ --htl-small-font-size:12px;
168
+ --htl-smallest-font-size:10px;
169
+ --htl-big-font-size:16px;
170
+ --htl-biggest-font-size:18px;
171
+ --htl-massive-font-size:24px;
172
+
173
+ }
174
+
175
+ /**
176
+ * Shadows
177
+ * -------------------------------------------------------------------------- */
178
+
179
+ :root {
180
+ --htl-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
181
+ --htl-shadow-2: 0 3px 12px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.07);
182
+ --htl-shadow-3: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
183
+ --htl-shadow-4: 0 14px 44px rgba(0, 0, 0, 0.12), 0 3px 9px rgba(0, 0, 0, 0.12);
184
+ --htl-shadow-5: 0 18px 56px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.16);
185
+ }
186
+
187
+ /**
188
+ * Z-indexes
189
+ * -------------------------------------------------------------------------- */
190
+
191
+ :root {
192
+ --htl-z-index-local-nav: 10;
193
+ --htl-z-index-nav: 20;
194
+ --htl-z-index-layout-top: 30;
195
+ --htl-z-index-backdrop: 40;
196
+ --htl-z-index-sidebar: 50;
197
+ --htl-z-index-footer: 60;
198
+ }
199
+
200
+ /**
201
+ * Icons
202
+ * -------------------------------------------------------------------------- */
203
+
204
+ :root {
205
+ --htl-icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' height='20' width='20' stroke='rgba(128,128,128,1)' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2'/%3E%3C/svg%3E");
206
+ --htl-icon-copied: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' height='20' width='20' stroke='rgba(128,128,128,1)' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2m-6 9 2 2 4-4'/%3E%3C/svg%3E");
207
+ }
208
+
209
+ /**
210
+ * Layouts
211
+ * -------------------------------------------------------------------------- */
212
+
213
+ :root {
214
+ --htl-layout-max-width: 1440px;
215
+ }
216
+
217
+ /**
218
+ * Component: Code
219
+ * -------------------------------------------------------------------------- */
220
+
221
+ :root {
222
+ --htl-code-line-height: 1.7;
223
+ --htl-code-font-size: var(--htl-default-font-size);
224
+
225
+ --htl-code-block-color: var(--htl-c-text-dark-1);
226
+ --htl-code-block-bg: #292d3e;
227
+
228
+ --htl-code-line-highlight-color: rgba(0, 0, 0, 0.5);
229
+ --htl-code-line-number-color: var(--htl-c-text-dark-3);
230
+
231
+ --htl-code-line-diff-add-color: rgba(125, 191, 123, 0.1);
232
+ --htl-code-line-diff-add-symbol-color: rgba(125, 191, 123, 0.5);
233
+
234
+ --htl-code-line-diff-remove-color: rgba(255, 128, 128, 0.05);
235
+ --htl-code-line-diff-remove-symbol-color: rgba(255, 128, 128, 0.5);
236
+
237
+ --htl-code-line-error-color: var(--htl-c-red-dimm-2);
238
+ --htl-code-line-warning-color: var(--htl-c-yellow-dimm-2);
239
+
240
+ --htl-code-copy-code-hover-bg: rgba(255, 255, 255, 0.05);
241
+ --htl-code-copy-code-active-text: var(--htl-c-text-dark-2);
242
+ }
243
+
244
+ .dark {
245
+ --htl-code-block-bg: var(--htl-c-bg-alt);
246
+ }
247
+
248
+ /**
249
+ * Component: Button
250
+ * -------------------------------------------------------------------------- */
251
+
252
+ :root {
253
+ --htl-button-brand-border: var(--htl-c-brand-light);
254
+ --htl-button-brand-text: var(--htl-c-text-dark-1);
255
+ --htl-button-brand-bg: var(--htl-c-brand);
256
+ --htl-button-brand-hover-border: var(--htl-c-brand-light);
257
+ --htl-button-brand-hover-text: var(--htl-c-text-dark-1);
258
+ --htl-button-brand-hover-bg: var(--htl-c-brand-light);
259
+ --htl-button-brand-active-border: var(--htl-c-brand-light);
260
+ --htl-button-brand-active-text: var(--htl-c-text-dark-1);
261
+ --htl-button-brand-active-bg: var(--htl-button-brand-bg);
262
+
263
+ --htl-button-alt-border: var(--htl-c-gray-light-3);
264
+ --htl-button-alt-text: var(--htl-c-text-light-1);
265
+ --htl-button-alt-bg: var(--htl-c-gray-light-5);
266
+ --htl-button-alt-hover-border: var(--htl-c-gray-light-3);
267
+ --htl-button-alt-hover-text: var(--htl-c-text-light-1);
268
+ --htl-button-alt-hover-bg: var(--htl-c-gray-light-4);
269
+ --htl-button-alt-active-border: var(--htl-c-gray-light-3);
270
+ --htl-button-alt-active-text: var(--htl-c-text-light-1);
271
+ --htl-button-alt-active-bg: var(--htl-c-gray-light-3);
272
+
273
+ --htl-button-sponsor-border: var(--htl-c-gray-light-3);
274
+ --htl-button-sponsor-text: var(--htl-c-text-light-2);
275
+ --htl-button-sponsor-bg: transparent;
276
+ --htl-button-sponsor-hover-border: var(--htl-c-sponsor);
277
+ --htl-button-sponsor-hover-text: var(--htl-c-sponsor);
278
+ --htl-button-sponsor-hover-bg: transparent;
279
+ --htl-button-sponsor-active-border: var(--htl-c-sponsor);
280
+ --htl-button-sponsor-active-text: var(--htl-c-sponsor);
281
+ --htl-button-sponsor-active-bg: transparent;
282
+ }
283
+
284
+ .dark {
285
+ --htl-button-brand-border: var(--htl-c-brand-light);
286
+ --htl-button-brand-text: var(--htl-c-text-dark-1);
287
+ --htl-button-brand-bg: var(--htl-c-brand-dark);
288
+ --htl-button-brand-hover-border: var(--htl-c-brand-lighter);
289
+ --htl-button-brand-hover-text: var(--htl-c-text-dark-1);
290
+ --htl-button-brand-hover-bg: var(--htl-c-brand);
291
+ --htl-button-brand-active-border: var(--htl-c-brand-lighter);
292
+ --htl-button-brand-active-text: var(--htl-c-text-dark-1);
293
+ --htl-button-brand-active-bg: var(--htl-button-brand-bg);
294
+
295
+ --htl-button-alt-border: var(--htl-c-gray-dark-2);
296
+ --htl-button-alt-text: var(--htl-c-text-dark-1);
297
+ --htl-button-alt-bg: var(--htl-c-bg-mute);
298
+ --htl-button-alt-hover-border: var(--htl-c-gray-dark-2);
299
+ --htl-button-alt-hover-text: var(--htl-c-text-dark-1);
300
+ --htl-button-alt-hover-bg: var(--htl-c-gray-dark-2);
301
+ --htl-button-alt-active-border: var(--htl-c-gray-dark-2);
302
+ --htl-button-alt-active-text: var(--htl-c-text-dark-1);
303
+ --htl-button-alt-active-bg: var(--htl-button-alt-bg);
304
+
305
+ --htl-button-sponsor-border: var(--htl-c-gray-dark-1);
306
+ --htl-button-sponsor-text: var(--htl-c-text-dark-2);
307
+ }
308
+
309
+ /**
310
+ * Component: Custom Block
311
+ * -------------------------------------------------------------------------- */
312
+
313
+ :root {
314
+ --htl-custom-block-code-font-size: var(--htl-default-font-size);
315
+
316
+ --htl-custom-block-info-border: rgba(23, 23, 23, 0.5);
317
+ --htl-custom-block-info-text: #171717;
318
+ --htl-custom-block-info-bg: #d7eaf8;
319
+ --htl-custom-block-info-code-bg: var(--htl-c-gray-light-4);
320
+
321
+
322
+ --htl-custom-block-tip-border: var(--htl-c-green-dimm-1);
323
+ --htl-custom-block-tip-text: var(--htl-c-green-darker);
324
+ --htl-custom-block-tip-bg: var(--htl-c-green-dimm-3);
325
+ --htl-custom-block-tip-code-bg: var(--htl-custom-block-tip-bg);
326
+
327
+ --htl-custom-block-caution-border: var(--htl-c-yellow-dimm-1);
328
+ --htl-custom-block-caution-text: var(--htl-c-yellow-darker);
329
+ --htl-custom-block-caution-bg: var(--htl-c-yellow-dimm-3);
330
+ --htl-custom-block-caution-code-bg: var(--htl-custom-block-caution-bg);
331
+
332
+ --htl-custom-block-warning-border: var(--htl-c-red-dimm-1);
333
+ --htl-custom-block-warning-text: var(--htl-c-red-darker);
334
+ --htl-custom-block-warning-bg: var(--htl-c-red-dimm-3);
335
+ --htl-custom-block-warning-code-bg: var(--htl-custom-block-warning-bg);
336
+
337
+ --htl-custom-block-details-border: var(--htl-c-divider-light);
338
+ --htl-custom-block-details-text: var(--htl-c-text-2);
339
+ --htl-custom-block-details-bg: var(--htl-c-white-soft);
340
+ --htl-custom-block-details-code-bg: var(---htl-custom-block-details-bg);
341
+
342
+ }
343
+
344
+ .dark {
345
+ --htl-custom-block-details-border: var(--htl-c-divider-light);
346
+ --htl-custom-block-details-bg: var(--htl-c-black-mute);
347
+ --htl-custom-block-details-code-bg: var(--htl-c-gray-dark-4);
348
+
349
+ --htl-custom-block-tip-border: var(--htl-c-green-dimm-2);
350
+ --htl-custom-block-tip-text: var(--htl-c-green-light);
351
+
352
+ --htl-custom-block-caution-border: var(--htl-c-yellow-dimm-2);
353
+ --htl-custom-block-caution-text: var(--htl-c-yellow-light);
354
+
355
+ --htl-custom-block-warning-border: var(--htl-c-red-dimm-2);
356
+ --htl-custom-block-warning-text: var(--htl-c-red-light);
357
+ }
358
+
359
+ /**
360
+ * Component: Nav
361
+ * -------------------------------------------------------------------------- */
362
+
363
+ :root {
364
+ --htl-nav-height: var(--htl-nav-height-mobile);
365
+ --htl-nav-height-mobile: 56px;
366
+ --htl-nav-height-desktop: 72px;
367
+ }
368
+
369
+ @media (min-width: 960px) {
370
+ :root {
371
+ --htl-nav-height: var(--htl-nav-height-desktop);
372
+ }
373
+ }
374
+
375
+ /**
376
+ * Component: Sidebar
377
+ * -------------------------------------------------------------------------- */
378
+
379
+ :root {
380
+ --htl-sidebar-width: 272px;
381
+ }
382
+
383
+ /**
384
+ * Component: Home
385
+ * -------------------------------------------------------------------------- */
386
+
387
+ :root {
388
+ --htl-home-hero-name-color: var(--htl-c-brand);
389
+ --htl-home-hero-name-background: transparent;
390
+
391
+ --htl-home-hero-image-background-image: none;
392
+ --htl-home-hero-image-filter: none;
393
+ }