nk_jtb 0.13.0 → 0.13.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.
- package/package.json +1 -1
- package/src/base/_base.scss +1 -1
- package/src/components/_menu.scss +6 -5
- package/src/extras/_nk-docs.scss +45 -41
- package/src/utilities/_state.scss +12 -9
package/package.json
CHANGED
package/src/base/_base.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
1
|
+
@use '../variables' as *;
|
|
2
|
+
@use '../functions/colorFunctions' as *;
|
|
3
3
|
|
|
4
4
|
.menu {
|
|
5
5
|
display: flex;
|
|
@@ -9,12 +9,13 @@
|
|
|
9
9
|
list-style: none;
|
|
10
10
|
margin-left: 0; // remove margin for ul
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
li {
|
|
13
|
+
margin: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
13
16
|
:where(a, li a, .menu-item) {
|
|
14
17
|
color: inherit;
|
|
15
18
|
padding: $menu-padding-y $menu-padding-x;
|
|
16
|
-
// this was initially set to display block but it is too difficult to
|
|
17
|
-
// work with icons and chevrons on the anchor element.
|
|
18
19
|
display: flex;
|
|
19
20
|
align-items: center;
|
|
20
21
|
|
package/src/extras/_nk-docs.scss
CHANGED
|
@@ -123,40 +123,42 @@ $question-color: #2299dd !default;
|
|
|
123
123
|
|
|
124
124
|
question {
|
|
125
125
|
color: $question-color;
|
|
126
|
-
margin-
|
|
127
|
-
font-size: 1.1rem;
|
|
126
|
+
margin-block-start: $content-gap;
|
|
128
127
|
font-weight: 700;
|
|
129
128
|
font-style: italic;
|
|
129
|
+
display: block;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
132
|
+
// make the margin between the question and the following content smaller.
|
|
133
|
+
//
|
|
134
|
+
// <p><question></question></p>
|
|
135
|
+
// <p></p>
|
|
136
|
+
//
|
|
137
|
+
p:has(question) > p {
|
|
138
|
+
margin-block-start: 0.5rem;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
//
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
141
|
+
// removed 14-02-25 i do not think this is needed
|
|
142
|
+
// h3:has(question) + p {
|
|
143
|
+
// + ul {
|
|
144
|
+
// margin-top: 0.5rem;
|
|
145
|
+
// margin-left: 1.5rem;
|
|
146
|
+
// }
|
|
147
|
+
// }
|
|
146
148
|
|
|
147
|
-
// this is a hack to make the question play nice with the `h3` tag
|
|
148
|
-
h3 {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
149
|
+
// // this is a hack to make the question play nice with the `h3` tag
|
|
150
|
+
// h3 {
|
|
151
|
+
// > question {
|
|
152
|
+
// margin-top: 0;
|
|
153
|
+
// }
|
|
154
|
+
// &:has(question) {
|
|
155
|
+
// display: inline-flex;
|
|
156
|
+
// align-items: center;
|
|
157
|
+
// a {
|
|
158
|
+
// margin-right: 0.5rem;
|
|
159
|
+
// }
|
|
160
|
+
// }
|
|
161
|
+
// }
|
|
160
162
|
|
|
161
163
|
// ==========================================================================
|
|
162
164
|
// -- --
|
|
@@ -203,15 +205,6 @@ h3 {
|
|
|
203
205
|
background: red;
|
|
204
206
|
margin-top: 0.5rem !important;
|
|
205
207
|
}
|
|
206
|
-
|
|
207
|
-
// all lists on a page
|
|
208
|
-
.list-space-all {
|
|
209
|
-
~ ul li {
|
|
210
|
-
margin-top: 0.5rem;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
|
|
215
208
|
}
|
|
216
209
|
|
|
217
210
|
.mermaid > svg {
|
|
@@ -229,11 +222,6 @@ h3 {
|
|
|
229
222
|
}
|
|
230
223
|
}
|
|
231
224
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
225
|
////
|
|
238
226
|
/// @group spacing-hacks
|
|
239
227
|
////
|
|
@@ -251,3 +239,19 @@ h3 {
|
|
|
251
239
|
.adjacent-list-space-1 + ul li:not(:first-child) {
|
|
252
240
|
margin-block-start: 1rem;
|
|
253
241
|
}
|
|
242
|
+
|
|
243
|
+
.adjacent-list-space-05 + ul li:not(:first-child) {
|
|
244
|
+
margin-block-start: 0.5rem;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.indent-all-lists-2 ~ ul {
|
|
248
|
+
margin-inline-start: 2rem;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
// all lists on a page
|
|
253
|
+
.list-space-all-1 {
|
|
254
|
+
~ ul li {
|
|
255
|
+
margin-top: 1rem;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use '../functions/helpers' as *;
|
|
2
|
+
@use '../variables' as *;
|
|
3
|
+
@use '../mixins/media' as *;
|
|
1
4
|
|
|
2
5
|
// ==========================================================================
|
|
3
6
|
// -- DISABLED --
|
|
@@ -12,17 +15,17 @@
|
|
|
12
15
|
// -- REVIEW --
|
|
13
16
|
// ==========================================================================
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
.hover\:txt-primary:hover {
|
|
19
|
+
color: $primary;
|
|
20
|
+
}
|
|
18
21
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
.hover\:txt-secondary:hover {
|
|
23
|
+
color: $secondary;
|
|
24
|
+
}
|
|
22
25
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
.hover\:txt-white:hover {
|
|
27
|
+
color: #fff;
|
|
28
|
+
}
|
|
26
29
|
|
|
27
30
|
// .hover\:text-white:hover {
|
|
28
31
|
// --tw-text-opacity: 1;
|