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 +1 -1
- package/src/extras/_nk-docs.scss +30 -27
package/package.json
CHANGED
package/src/extras/_nk-docs.scss
CHANGED
|
@@ -123,40 +123,43 @@ $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
|
-
// 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
|
-
//
|
|
148
|
-
h3 {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
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
|
// -- --
|