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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nk_jtb",
3
3
  "description": "Yet another utility based framework.",
4
- "version": "0.13.0",
4
+ "version": "0.13.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/naykel76/nk_jtb.git"
@@ -41,7 +41,7 @@ body {
41
41
 
42
42
  hr {
43
43
  height: 0;
44
- border-color: #ccc;
44
+ border-color: #e5e7eb;
45
45
  border-top-width: 2px;
46
46
  margin: $content-gap 0;
47
47
  }
@@ -1,5 +1,5 @@
1
- @use "../variables" as *;
2
- @use "../functions/colorFunctions" as *;
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
- // limit opinionated styles to allow parent styles to trickle down
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
 
@@ -123,40 +123,42 @@ $question-color: #2299dd !default;
123
123
 
124
124
  question {
125
125
  color: $question-color;
126
- margin-top: 1.5rem;
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
- answer,
133
- h3:has(question) + p {
134
- margin-top: 0.5rem;
135
- + ul {
136
- margin-top: 0.5rem;
137
- margin-left: 1.5rem;
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
- // remove top margin when inside `p` tag and let the `q&a` tag handle the margin
142
- p:has(question),
143
- p:has(answer) {
144
- margin-top: 0;
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
- > question {
150
- margin-top: 0;
151
- }
152
- &:has(question) {
153
- display: inline-flex;
154
- align-items: center;
155
- a {
156
- margin-right: 0.5rem;
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
- // .hover\:txt-primary:hover {
16
- // color: $primary;
17
- // }
18
+ .hover\:txt-primary:hover {
19
+ color: $primary;
20
+ }
18
21
 
19
- // .hover\:txt-secondary:hover {
20
- // color: $secondary;
21
- // }
22
+ .hover\:txt-secondary:hover {
23
+ color: $secondary;
24
+ }
22
25
 
23
- // .hover\:txt-white:hover {
24
- // color: #fff;
25
- // }
26
+ .hover\:txt-white:hover {
27
+ color: #fff;
28
+ }
26
29
 
27
30
  // .hover\:text-white:hover {
28
31
  // --tw-text-opacity: 1;