nk_jtb 0.13.0 → 0.13.1

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.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/naykel76/nk_jtb.git"
@@ -123,40 +123,43 @@ $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
- }
146
141
 
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
- }
142
+ // removed 14-02-25 i do not think this is needed
143
+ // h3:has(question) + p {
144
+ // + ul {
145
+ // margin-top: 0.5rem;
146
+ // margin-left: 1.5rem;
147
+ // }
148
+ // }
149
+
150
+ // // this is a hack to make the question play nice with the `h3` tag
151
+ // h3 {
152
+ // > question {
153
+ // margin-top: 0;
154
+ // }
155
+ // &:has(question) {
156
+ // display: inline-flex;
157
+ // align-items: center;
158
+ // a {
159
+ // margin-right: 0.5rem;
160
+ // }
161
+ // }
162
+ // }
160
163
 
161
164
  // ==========================================================================
162
165
  // -- --