nk_jtb 0.9.5 → 0.9.6

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/index.html CHANGED
@@ -14,36 +14,55 @@
14
14
 
15
15
  <div class="quick-hide-div zebra">
16
16
  <section id="radio-checkbox-slider" class="py-3">
17
- <div class="container">
18
- <h5>Radio</h5>
19
- <div class="space-x">
20
- <label><input type="radio" name="abc">Option</label>
21
- <label><input type="radio" name="abc" checked>Checked</label>
22
- <label><input type="radio" name="abc" disabled>Disabled</label>
23
- </div>
24
- <h5>Checkbox</h5>
25
- <div class="space-x">
26
- <label><input type="checkbox">Option</label>
27
- <label><input type="checkbox" checked>Checked</label>
28
- <label><input type="checkbox" disabled>Disabled</label>
17
+ <div class="container grid cols-2">
18
+ <div>
19
+ <h5>Radio</h5>
20
+ <div class="space-x">
21
+ <label><input type="radio" name="abc">Option</label>
22
+ <label><input type="radio" name="abc" checked>Checked</label>
23
+ <label><input type="radio" name="abc" disabled>Disabled</label>
24
+ </div>
25
+ <h5>Checkbox</h5>
26
+ <div class="space-x">
27
+ <label><input type="checkbox">Option</label>
28
+ <label><input type="checkbox" checked>Checked</label>
29
+ <label><input type="checkbox" disabled>Disabled</label>
30
+ </div>
31
+ <h5>Slider</h5>
32
+ <div class="space-x">
33
+ <label class="toggle">
34
+ <input type="checkbox">
35
+ <div class="slider"></div>
36
+ <span>Option</span>
37
+ </label>
38
+ <label class="toggle">
39
+ <input type="checkbox" checked>
40
+ <div class="slider"></div>
41
+ <span>Checked</span>
42
+ </label>
43
+ <label class="toggle">
44
+ <input type="checkbox" disabled>
45
+ <div class="slider"></div>
46
+ <span>Disabled</span>
47
+ </label>
48
+ </div>
29
49
  </div>
30
- <h5>Slider</h5>
31
- <div class="space-x">
32
- <label class="toggle">
33
- <input type="checkbox">
34
- <div class="slider"></div>
35
- <span>Option</span>
36
- </label>
37
- <label class="toggle">
38
- <input type="checkbox" checked>
39
- <div class="slider"></div>
40
- <span>Checked</span>
41
- </label>
42
- <label class="toggle">
43
- <input type="checkbox" disabled>
44
- <div class="slider"></div>
45
- <span>Disabled</span>
50
+ <div>
51
+ <div class="bx"><input type="file" name="" id=""></div>
52
+
53
+ <label class="file">
54
+ <input type="file" name="file">
55
+ <span>Choose a file…</span>
46
56
  </label>
57
+
58
+ <div class="bx">
59
+ <label class="file">
60
+ <input type="file" name="file">
61
+ <span>Choose a file…</span>
62
+ </label>
63
+ </div>
64
+
65
+
47
66
  </div>
48
67
  </div>
49
68
  </section>
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.9.5",
4
+ "version": "0.9.6",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/naykel76/nk_jtb.git"
@@ -1,7 +1,7 @@
1
1
  @use "../variables" as *;
2
2
 
3
3
  // any adjacent (excludes first child)
4
- :where(blockquote, p, pre, form, table, ol, ul, h1, h2, h3, h4, h5, h6) + * {
4
+ :where(blockquote, p, pre, form, table, ol, ul, h1, h2, h3, h4, h5, h6) + *:not(label) {
5
5
  margin-top: $content-gap;
6
6
  }
7
7
 
@@ -20,7 +20,6 @@
20
20
  margin-top: $content-gap;
21
21
  }
22
22
 
23
-
24
23
  // opt-out
25
24
  // - Remove margin from all direct child elements of "flex" or
26
25
  // "grid" because it is too inconsistent to manage.
@@ -8,6 +8,7 @@
8
8
 
9
9
  // bring to front and hide default input
10
10
  input[type="file"] {
11
+ margin: 0;
11
12
  left: 0;
12
13
  opacity: 0;
13
14
  outline: none;
@@ -17,5 +18,4 @@
17
18
  z-index: 1000; // allow parent cursor to use pointer
18
19
  cursor: pointer;
19
20
  }
20
-
21
21
  }
@@ -3,10 +3,15 @@
3
3
 
4
4
  // -- Base Elements --
5
5
  // ==========================================================================
6
+
7
+ // 1. leave the `file` label alone and let the class take care of it
8
+
6
9
  label {
7
10
  font-weight: 600;
8
- margin-block-end: 0.375rem;
9
11
  font-size: 0.875rem;
12
+ &:not(.file) {
13
+ margin-block-end: 0.375rem; // 1.
14
+ }
10
15
  }
11
16
 
12
17
  // !! Do not include a width here, the `frm-row` class will handle