nk_jtb 0.9.6 → 0.9.7

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
@@ -47,22 +47,37 @@
47
47
  </label>
48
48
  </div>
49
49
  </div>
50
+ <label class="file">
51
+ <input type="file" name="name">
52
+ <span> Select file... </span>
53
+ </label>
50
54
  <div>
51
- <div class="bx"><input type="file" name="" id=""></div>
52
-
53
- <label class="file">
55
+ <label class="file bdr">
54
56
  <input type="file" name="file">
55
57
  <span>Choose a file…</span>
56
58
  </label>
57
-
58
- <div class="bx">
59
- <label class="file">
60
- <input type="file" name="file">
61
- <span>Choose a file…</span>
59
+ <div class="frm-row my">
60
+ <label class="file btn">
61
+ <input type="file" name="">
62
+ <svg class="wh-1.25 mr-075" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon">
63
+ <path fill-rule="evenodd" d="M11.47 2.47a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1-1.06 1.06l-3.22-3.22V16.5a.75.75 0 0 1-1.5 0V4.81L8.03 8.03a.75.75 0 0 1-1.06-1.06l4.5-4.5ZM3 15.75a.75.75 0 0 1 .75.75v2.25a1.5 1.5 0 0 0 1.5 1.5h13.5a1.5 1.5 0 0 0 1.5-1.5V16.5a.75.75 0 0 1 1.5 0v2.25a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3V16.5a.75.75 0 0 1 .75-.75Z" clip-rule="evenodd" />
64
+ </svg>
65
+ <span>Choose a file...</span>
62
66
  </label>
63
67
  </div>
64
68
 
69
+ </div>
70
+ </div>
71
+ </section>
65
72
 
73
+ <section id="box" class="py-3">
74
+ <div class="container">
75
+ <h2>Boxes</h2>
76
+ <div class="grid cols-3">
77
+ <div class="bx">
78
+ <div class="bx-title">Super Awesome Title</div>
79
+ <p>Lorem ipsum dolor sit amet consectetur pepe adipisicing elit. Quas debitis unde aut, sed repellendus tempora, molestiae eveniet.</p>
80
+ </div>
66
81
  </div>
67
82
  </div>
68
83
  </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.6",
4
+ "version": "0.9.7",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/naykel76/nk_jtb.git"
@@ -1,6 +1,10 @@
1
1
  @use "../variables" as *;
2
2
 
3
- // any adjacent (excludes first child)
3
+ // Use `em` for heading to allow for better spacing when larger sizes.
4
+ :where(h1, h2, h3, h4, h5, h6) + *:not(label) {
5
+ margin-top: $content-gap-em;
6
+ }
7
+
4
8
  :where(blockquote, p, pre, form, table, ol, ul, h1, h2, h3, h4, h5, h6) + *:not(label) {
5
9
  margin-top: $content-gap;
6
10
  }
@@ -11,7 +15,7 @@
11
15
  margin-top: $content-gap;
12
16
  }
13
17
 
14
- :where(.bx, .bx-title, .bx-content, .frm-row, .container) + :where(*):not(.dd-content) {
18
+ :where(.bx, .bx-title, .bx-content, .frm-row, .container) + :where(*):not(.dd-content):not(label) {
15
19
  margin-top: $content-gap;
16
20
  }
17
21
 
@@ -1,21 +1,20 @@
1
1
  .file {
2
2
  user-select: none;
3
- align-items: stretch;
4
3
  display: inline-flex;
5
4
  justify-content: flex-start;
5
+ align-items: center;
6
+ align-self: flex-start; //prevent stretching
6
7
  position: relative;
7
8
  cursor: pointer;
8
9
 
9
- // bring to front and hide default input
10
+ // bring to front and hide default input
10
11
  input[type="file"] {
11
12
  margin: 0;
12
- left: 0;
13
+ inset: 0;
13
14
  opacity: 0;
14
15
  outline: none;
15
16
  position: absolute;
16
- top: 0;
17
- width: 100%;
18
17
  z-index: 1000; // allow parent cursor to use pointer
19
- cursor: pointer;
18
+ pointer-events: none; // ignore pointer events and allow parent to use pointer
20
19
  }
21
20
  }
@@ -60,8 +60,9 @@ $copyright-text-color: $footer-text-color !default;
60
60
  // -- Spacing --
61
61
  // ==========================================================================
62
62
  $base-list-spacing: 0.25em !default;
63
- // use em so gap relative to font size
64
- $content-gap: 1.5em;
63
+ $content-gap: 1.25rem;
64
+ // better for headings
65
+ $content-gap-em: 1.25em;
65
66
 
66
67
  // ==========================================================================
67
68
  // -- Responsive Sizes and Breakpoints --