nk_jtb 0.0.5 → 0.2.0

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.
Files changed (75) hide show
  1. package/.editorconfig +0 -25
  2. package/index.html +16 -0
  3. package/main.js +4 -0
  4. package/package.json +24 -25
  5. package/{src → public}/images/favicon.ico +0 -0
  6. package/{src → public}/images/hero-lg.jpg +0 -0
  7. package/{src → public}/images/hero-md.jpg +0 -0
  8. package/{src → public}/images/hero-sm.jpg +0 -0
  9. package/{src → public}/images/hero-xl.jpg +0 -0
  10. package/{src → public}/images/logo-alt.svg +0 -0
  11. package/{src → public}/images/logo.png +0 -0
  12. package/{src → public}/images/logo.svg +0 -0
  13. package/{src → public}/images/naykel-400.png +0 -0
  14. package/{src → public}/images/naykel-600.png +0 -0
  15. package/{src → public}/images/painting.jpg +0 -0
  16. package/{src/svg → public}/naykel-ui-SVG-sprite.svg +0 -0
  17. package/public/nk.svg +5 -0
  18. package/scss/_nk.scss +91 -20
  19. package/{src/scss → scss}/base/_base.scss +0 -0
  20. package/{src/scss → scss}/base/_content_gap.scss +2 -1
  21. package/{src/scss → scss}/base/_root.scss +0 -0
  22. package/{src/scss → scss}/base/_vars_all.scss +0 -0
  23. package/{src/scss → scss}/base/_vars_base.scss +0 -0
  24. package/{src/scss → scss}/base/_vars_class_names.scss +0 -0
  25. package/{src/scss → scss}/base/_vars_colors.scss +0 -0
  26. package/{src/scss → scss}/base/_vars_components.scss +0 -0
  27. package/{src/scss → scss}/base/_vars_utility_maps.scss +0 -0
  28. package/{src/scss → scss}/components/_accordion.scss +0 -0
  29. package/scss/components/_box.scss +27 -23
  30. package/{src/scss → scss}/components/_button.scss +0 -0
  31. package/{src/scss → scss}/components/_dropdown.scss +2 -1
  32. package/{src/scss → scss}/components/_hero.scss +0 -0
  33. package/{src/scss → scss}/components/_icon.scss +0 -0
  34. package/{src/scss → scss}/components/_menu.scss +0 -0
  35. package/{src/scss → scss}/components/_navbar.scss +0 -0
  36. package/{src/scss → scss}/components/_other.scss +0 -0
  37. package/{src/scss → scss}/components/_sidebar.scss +0 -0
  38. package/{src/scss → scss}/forms/_control.scss +0 -0
  39. package/{src/scss → scss}/forms/_file.scss +0 -0
  40. package/{src/scss → scss}/forms/_form.scss +0 -0
  41. package/{src/scss → scss}/forms/_index.scss +0 -0
  42. package/{src/scss → scss}/functions/_helpers.scss +0 -0
  43. package/{src/scss → scss}/functions/_setTextColor.scss +0 -0
  44. package/scss/jtb.scss +37 -79
  45. package/{src/scss → scss}/layout/_grid_old.scss +0 -0
  46. package/{src/scss → scss}/mixins/_colorSchemeSimple.scss +0 -0
  47. package/{src/scss → scss}/mixins/_colorShades.scss +0 -0
  48. package/{src/scss → scss}/mixins/_createState.scss +0 -0
  49. package/{src/scss → scss}/mixins/_makeColorSchemeAdvanced.scss +0 -0
  50. package/{src/scss → scss}/mixins/_makeCssPropertyMixins.scss +0 -0
  51. package/{src/scss → scss}/mixins/_makeResponsivePositionUtilities.scss +0 -0
  52. package/{src/scss → scss}/mixins/_media.scss +0 -0
  53. package/{src/scss → scss}/mixins/_positionUtilityClasses.scss +0 -0
  54. package/{src/scss → scss}/utilities/_border.scss +0 -0
  55. package/{src/scss → scss}/utilities/_display.scss +0 -0
  56. package/{src/scss → scss}/utilities/_flex.scss +0 -0
  57. package/{src/scss → scss}/utilities/_general.scss +10 -8
  58. package/{src/scss → scss}/utilities/_grid.scss +0 -0
  59. package/{src/scss → scss}/utilities/_position.scss +37 -16
  60. package/{src/scss → scss}/utilities/_sizes.scss +14 -14
  61. package/{src/scss → scss}/utilities/_spacing.scss +22 -16
  62. package/{src/scss → scss}/utilities/_state.scss +5 -5
  63. package/{src/scss → scss}/utilities/_text.scss +0 -0
  64. package/{src/scss → scss}/utilities/_themes.scss +0 -0
  65. package/{src/index.html → tests.html} +5 -10
  66. package/examples/masonry.html +0 -0
  67. package/examples/visibility.html +0 -122
  68. package/scss/_nk_components.scss +0 -32
  69. package/scss/components/_list.scss +0 -18
  70. package/scss/components/_table.scss +0 -125
  71. package/scss/dev.scss +0 -6
  72. package/scss/mixins/_makeMagicUtilities.scss +0 -25
  73. package/src/scss/_nk.scss +0 -104
  74. package/src/scss/components/_box.scss +0 -26
  75. package/src/scss/jtb.scss +0 -45
@@ -41,39 +41,60 @@
41
41
  bottom: 0;
42
42
  }
43
43
 
44
+
45
+
46
+ // DO NOT ADD TL, TR, BL, BR, JUST USE MULTIPLE CLASSES???
47
+
44
48
  .pos {
45
- &-t {
49
+ &-xy {
46
50
  top: 0;
47
- left: 0;
48
- right: 0;
49
- }
50
- &-b {
51
51
  bottom: 0;
52
52
  left: 0;
53
53
  right: 0;
54
54
  }
55
- &-l {
55
+ &-x {
56
56
  left: 0;
57
- right: auto; // reset for flex ?? dd requires to shrink ??
58
- }
59
- &-r {
60
57
  right: 0;
61
- left: auto; // reset for flex ?? dd requires to shrink ??
62
58
  }
63
- &-tl {
59
+ &-y {
64
60
  top: 0;
65
- left: 0;
61
+ bottom: 0;
66
62
  }
67
- &-tr {
63
+
64
+ &-t {
68
65
  top: 0;
66
+ left: 0;
69
67
  right: 0;
70
68
  }
71
- &-bl {
69
+ &-b {
72
70
  bottom: 0;
71
+ }
72
+ &-l {
73
73
  left: 0;
74
+ right: auto; // reset for flex ?? dd requires to shrink ??
74
75
  }
75
- &-br {
76
- bottom: 0;
76
+ &-r {
77
77
  right: 0;
78
+ left: auto; // reset for flex ?? dd requires to shrink ??
78
79
  }
80
+ //
81
+ //
82
+ //
83
+ //
84
+ // &-tl {
85
+ // top: 0;
86
+ // left: 0;
87
+ // }
88
+ // &-tr {
89
+ // top: 0;
90
+ // right: 0;
91
+ // }
92
+ // &-bl {
93
+ // bottom: 0;
94
+ // left: 0;
95
+ // }
96
+ // &-br {
97
+ // bottom: 0;
98
+ // right: 0;
99
+ // }
79
100
  }
@@ -69,9 +69,9 @@ $rem-sizes: (1, 1.5, 2, 3, 4, 5, 10, 12, 95);
69
69
  $pixel-sizes: (16, 24, 32, 40, 64, 100, 150, 200, 300, 400, 600);
70
70
  @include makeSizeUtilities($pixel-sizes, "px");
71
71
 
72
- // // --------------------------------------------------------------------------
73
- // // -- FRACTIONAL SIZES --
74
- // // --------------------------------------------------------------------------
72
+ // --------------------------------------------------------------------------
73
+ // -- FRACTIONAL SIZES --
74
+ // --------------------------------------------------------------------------
75
75
 
76
76
  // \ is needed to escape the forward slash
77
77
  $fractional-sizes: (1\/4: 25%, 1\/3: 33.33%, 1\/2: 50%, 3\/4: 75%);
@@ -82,14 +82,7 @@ $fractional-sizes: (1\/4: 25%, 1\/3: 33.33%, 1\/2: 50%, 3\/4: 75%);
82
82
  }
83
83
  }
84
84
 
85
- // // // max-widths
86
- // // .minw#{$key} {
87
- // // min-width: $value;
88
- // // }
89
- // // // max-widths
90
- // // .maxw#{$key} {
91
- // // max-width: $value;
92
- // // }
85
+
93
86
 
94
87
  $v-heights: (
95
88
  // 40: 40vh,
@@ -114,13 +107,20 @@ $max-min-sizes: (
114
107
  800: 800px,
115
108
  );
116
109
 
110
+
111
+ // 1. use capital so sass does not throw an error
112
+
117
113
  @each $key, $value in $max-min-sizes {
118
114
  .minw#{$key} {
119
- width: Min($value, 95%); // use capital to sass does not throw an error
115
+ // this seems very redundant!!
116
+ // width: Max($value, 1%); // 1.
117
+ min-width: $value; // 1.
120
118
  }
121
- // max-widths
119
+ // max-width, up to max of n%
122
120
  .maxw#{$key} {
123
- max-width: $value;
121
+ // Think of the min() value as providing the maximum value
122
+ // a property can have. chooses the minimum of the two
123
+ width: Min($value, 95%); // 1.
124
124
  }
125
125
  }
126
126
 
@@ -83,6 +83,25 @@ $padding-y-responsive-sizes: (10, 6, 2), "";
83
83
  }
84
84
  }
85
85
 
86
+ // --------------------------------------------------------------
87
+ // -- RESPONSIVE MAGIC PADDING --
88
+ // --------------------------------------------------------------
89
+ //
90
+ .c-py-5-3-2 > * {
91
+ padding-top: 2rem;
92
+ padding-bottom: 2rem;
93
+
94
+ @include from-tablet {
95
+ padding-top: 3rem;
96
+ padding-bottom: 3rem;
97
+ }
98
+
99
+ @include from-desktop {
100
+ padding-top: 5rem;
101
+ padding-bottom: 5rem;
102
+ }
103
+ }
104
+
86
105
  // --------------------------------------------------------------
87
106
  // -- CONTENT SPACING --
88
107
  // --------------------------------------------------------------
@@ -123,22 +142,9 @@ $padding-y-responsive-sizes: (10, 6, 2), "";
123
142
  //
124
143
  //
125
144
 
126
- // ==========================================================================
127
- // -- RESPONSIVE MARGIN AND PADDING UTILITIES --
128
- // ==========================================================================
129
- //
130
- .children-py-5-3-2 > * {
131
- padding-top: 2rem;
132
- padding-bottom: 2rem;
133
-
134
- @include from-tablet {
135
- padding-top: 3rem;
136
- padding-bottom: 3rem;
137
- }
138
-
139
- @include from-desktop {
140
- padding-top: 5rem;
141
- padding-bottom: 5rem;
145
+ @include from-desktop {
146
+ .lg\:space-x > *:not(:first-child) {
147
+ margin-left: 1rem;
142
148
  }
143
149
  }
144
150
 
@@ -12,16 +12,16 @@
12
12
  // -- HOVER STATE --
13
13
  // -----------------------------------
14
14
 
15
- // ROMOVE ME!!
16
- .hover\:txt-secondary:hover {
17
- color: $secondary;
15
+ .hover\:txt-primary:hover {
16
+ color: $primary;
18
17
  }
19
18
 
20
- // just the text
21
- .hover\:secondary:hover {
19
+ .hover\:txt-secondary:hover {
22
20
  color: $secondary;
23
21
  }
24
22
 
23
+
24
+
25
25
  // all aspects of state???
26
26
  // .state\:secondary {
27
27
  // &:hover {
File without changes
File without changes
@@ -13,19 +13,11 @@
13
13
 
14
14
  <body class="py-3">
15
15
 
16
- <div class="bx fw6">
17
- <a href="">This is a link. There is not hover state!</a> <br>
18
- <a class="hover:secondary" href="">This is a link with a hover utility class</a>
19
- </div>
20
- <div class="bx hover:secondary">
21
- <a href="">This is a link. There is not hover state!</a> <br>
22
- <a class="" href="">This is a link with a hover utility class</a>
23
- </div>
24
16
 
25
17
 
26
18
  <div class="px-5 grid cols-50:50">
27
19
 
28
- <!-- use flex-basis to override default width -->
20
+
29
21
  <div class="bx">
30
22
  <div class="frm-row inline va-t">
31
23
  <label>First Name</label>
@@ -45,7 +37,7 @@
45
37
  <div class="with-icon fg1">
46
38
  <input placeholder="Placeholder...">
47
39
  <svg class="icon">
48
- <use xlink:href="/src/svg/naykel-ui-SVG-sprite.svg#save"></use>
40
+ <!-- <use xlink:href="/src/svg/naykel-ui-SVG-sprite.svg#save"></use> -->
49
41
  </svg>
50
42
  </div>
51
43
  </div>
@@ -161,12 +153,15 @@
161
153
  <label>Question</label>
162
154
  <textarea class="textarea" placeholder="Explain how we can help you"></textarea>
163
155
  </div>
156
+
164
157
  <div class="frm-row">
165
158
  <label class="checkbox">
166
159
  <input type="checkbox">
167
160
  I agree to the <a href="#">terms and conditions</a>
168
161
  </label>
162
+
169
163
  </div>
164
+
170
165
  <div class="frm-row items-end">
171
166
  <button type="submit" class="btn">Submit</button>
172
167
  </div>
File without changes
@@ -1,122 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
8
- <link rel="icon" href="../images/favicon.ico">
9
- <link rel="stylesheet" href="../dist/css/nk_jtb.css">
10
- <title>NAYKEL JTB - Visibility Examples</title>
11
- </head>
12
-
13
- <body>
14
- <p>Resize the screen to preview see the visibility classes in action.</p>
15
- <!-- -on examples -->
16
- <section>
17
- <!-- hide-on examples -->
18
- <div class="flex tac">
19
- <div class="col np">
20
- <div class="bx red hide-on-phone">hide-on-phone</div>
21
- </div>
22
- <div class="col np">
23
- <div class="bx green hide-on-tablet">hide-on-tablet</div>
24
- </div>
25
- <div class="col np">
26
- <div class="bx blue hide-on-desktop">hide-on-desktop</div>
27
- </div>
28
- <div class="col np">
29
- <div class="bx orange hide-on-widescreen">hide-on-widescreen</div>
30
- </div>
31
- </div>
32
-
33
- <!-- display-on examples -->
34
- <div class="flex tac">
35
- <div class="col np">
36
- <div class="bx red hidden block-on-phone">{display}-on-phone</div>
37
- </div>
38
- <div class="col np">
39
- <div class="bx green hidden block-on-tablet">{display}-on-tablet</div>
40
- </div>
41
- <div class="col np">
42
- <div class="bx blue hidden block-on-desktop">{display}-on-desktop</div>
43
- </div>
44
- <div class="col np">
45
- <div class="bx orange hidden block-on-widescreen">{display}-on-widescreen</div>
46
- </div>
47
- </div>
48
- </section>
49
- <hr class="lg">
50
- <!-- -from examples -->
51
- <section>
52
- <!-- hide-from examples -->
53
- <div class="flex tac">
54
- <div class="col np">
55
- <div class="bx red hide-from-phone">hide-from-phone</div>
56
- </div>
57
- <div class="col np">
58
- <div class="bx green hide-from-tablet">hide-from-tablet</div>
59
- </div>
60
- <div class="col np">
61
- <div class="bx blue hide-from-desktop">hide-from-desktop</div>
62
- </div>
63
- <div class="col np">
64
- <div class="bx orange hide-from-widescreen">hide-from-widescreen</div>
65
- </div>
66
- </div>
67
-
68
- <!-- display-from examples -->
69
- <div class="flex tac">
70
- <div class="col np">
71
- <div class="bx red hidden block-from-phone">{display}-from-phone</div>
72
- </div>
73
- <div class="col np">
74
- <div class="bx green hidden block-from-tablet">{display}-from-tablet</div>
75
- </div>
76
- <div class="col np">
77
- <div class="bx blue hidden block-from-desktop">{display}-from-desktop</div>
78
- </div>
79
- <div class="col np">
80
- <div class="bx orange hidden block-from-widescreen">{display}-from-widescreen</div>
81
- </div>
82
- </div>
83
- </section>
84
- <hr class="lg">
85
- <!-- -upto examples -->
86
- <section>
87
- <!-- hide-upto examples -->
88
- <div class="flex tac">
89
- <div class="col np">
90
- <!-- <div class="bx red hide-upto-phone"></div> -->
91
- </div>
92
- <div class="col np">
93
- <div class="bx green hide-upto-tablet">hide-upto-tablet</div>
94
- </div>
95
- <div class="col np">
96
- <div class="bx blue hide-upto-desktop">hide-upto-desktop</div>
97
- </div>
98
- <div class="col np">
99
- <div class="bx orange hide-upto-widescreen">hide-upto-widescreen</div>
100
- </div>
101
- </div>
102
-
103
- <!-- display-upto examples -->
104
- <div class="flex tac">
105
- <div class="col np">
106
- <div class="bx red hidden block-upto-phone">{display}-upto-phone</div>
107
- </div>
108
- <div class="col np">
109
- <div class="bx green hidden block-upto-tablet">{display}-upto-tablet</div>
110
- </div>
111
- <div class="col np">
112
- <div class="bx blue hidden block-upto-desktop">{display}-upto-desktop</div>
113
- </div>
114
- <div class="col np">
115
- <div class="bx orange hidden block-upto-widescreen">{display}-upto-widescreen</div>
116
- </div>
117
- </div>
118
- </section>
119
-
120
- </body>
121
-
122
- </html>
@@ -1,32 +0,0 @@
1
- @use "./base/vars_all" as *;
2
- @use "./mixins/media" as *;
3
-
4
- .fancy-icon-button {
5
- text-align: center;
6
- position: relative;
7
- display: inline-block;
8
-
9
- .#{$icon-class} {
10
- height: 24px;
11
- width: 24px;
12
- padding: 0;
13
- // add margin to push the qty badge away
14
- // margin: 0.5rem 0.5rem 0;
15
- }
16
-
17
- .badge {
18
- position: absolute;
19
- top: 0px;
20
- right: 0px;
21
- height: 20px;
22
- min-width: 20px;
23
- border-radius: 50%;
24
- display: flex;
25
- justify-content: center;
26
- align-items: center;
27
- font-size: 12px;
28
- background-color: hsl(354, 70%, 54%);
29
- border: 1px solid hsl(354, 70%, 44%);
30
- color: rgb(255, 255, 255);
31
- }
32
- }
@@ -1,18 +0,0 @@
1
- @use "../base/vars_all" as *;
2
- @use "../vars_class_names" as *;
3
-
4
- .#{$list-class} {
5
- list-style: none;
6
- margin: 0; // remove indent
7
-
8
- a {
9
- color: $list-link-color;
10
- &:where(:hover) {
11
- // $list-hover-color;
12
- color: $list-link-hover-color;
13
- }
14
-
15
-
16
- }
17
-
18
- }
@@ -1,125 +0,0 @@
1
- @use "../base/vars_base" as *;
2
- @use "../vars_class_names" as *;
3
-
4
- $table-color: $base-color !default;
5
- $table-background-color: white !default;
6
-
7
- // $table-cell-border: 1px solid $border !default;
8
- // $table-cell-border-width: 0 0 1px !default;
9
- // $table-cell-padding: 0.5em 0.75em !default;
10
- // $table-cell-heading-color: $text-strong !default;
11
-
12
- // $table-head-cell-border-width: 0 0 2px !default;
13
- // $table-head-cell-color: $text-strong !default;
14
- // $table-foot-cell-border-width: 2px 0 0 !default;
15
- // $table-foot-cell-color: $text-strong !default;
16
-
17
- // $table-head-background-color: transparent !default;
18
- // $table-body-background-color: transparent !default;
19
- // $table-foot-background-color: transparent !default;
20
-
21
- // $table-row-hover-background-color: $scheme-main-bis !default;
22
-
23
- // $table-row-active-background-color: $primary !default;
24
- // $table-row-active-color: $primary-invert !default;
25
-
26
- // $table-striped-row-even-background-color: $scheme-main-bis !default;
27
- // $table-striped-row-even-hover-background-color: $scheme-main-ter !default;
28
-
29
- .#{$table-class} {
30
- background-color: $table-background-color;
31
- color: $table-color;
32
- // td,
33
- // th
34
- // border: $table-cell-border
35
- // border-width: $table-cell-border-width
36
- // padding: $table-cell-padding
37
- // vertical-align: top
38
- // // Colors
39
- // @each $name, $pair in $table-colors
40
- // $color: nth($pair, 1)
41
- // $color-invert: nth($pair, 2)
42
- // &.is-#{$name}
43
- // background-color: $color
44
- // border-color: $color
45
- // color: $color-invert
46
- // // Modifiers
47
- // &.is-narrow
48
- // white-space: nowrap
49
- // width: 1%
50
- // &.is-selected
51
- // background-color: $table-row-active-background-color
52
- // color: $table-row-active-color
53
- // a,
54
- // strong
55
- // color: currentColor
56
- // &.is-vcentered
57
- // vertical-align: middle
58
- // th
59
- // color: $table-cell-heading-color
60
- // &:not([align])
61
- // text-align: inherit
62
- // tr
63
- // &.is-selected
64
- // background-color: $table-row-active-background-color
65
- // color: $table-row-active-color
66
- // a,
67
- // strong
68
- // color: currentColor
69
- // td,
70
- // th
71
- // border-color: $table-row-active-color
72
- // color: currentColor
73
- // thead
74
- // background-color: $table-head-background-color
75
- // td,
76
- // th
77
- // border-width: $table-head-cell-border-width
78
- // color: $table-head-cell-color
79
- // tfoot
80
- // background-color: $table-foot-background-color
81
- // td,
82
- // th
83
- // border-width: $table-foot-cell-border-width
84
- // color: $table-foot-cell-color
85
- // tbody
86
- // background-color: $table-body-background-color
87
- // tr
88
- // &:last-child
89
- // td,
90
- // th
91
- // border-bottom-width: 0
92
- // // Modifiers
93
- // &.is-bordered
94
- // td,
95
- // th
96
- // border-width: 1px
97
- // tr
98
- // &:last-child
99
- // td,
100
- // th
101
- // border-bottom-width: 1px
102
- // &.is-fullwidth
103
- // width: 100%
104
- // &.is-hoverable
105
- // tbody
106
- // tr:not(.is-selected)
107
- // &:hover
108
- // background-color: $table-row-hover-background-color
109
- // &.is-striped
110
- // tbody
111
- // tr:not(.is-selected)
112
- // &:hover
113
- // background-color: $table-row-hover-background-color
114
- // &:nth-child(even)
115
- // background-color: $table-striped-row-even-hover-background-color
116
- // &.is-narrow
117
- // td,
118
- // th
119
- // padding: 0.25em 0.5em
120
- // &.is-striped
121
- // tbody
122
- // tr:not(.is-selected)
123
- // &:nth-child(even)
124
- // background-color: $table-striped-row-even-background-color
125
- }
package/scss/dev.scss DELETED
@@ -1,6 +0,0 @@
1
- // "autoprefixer": "^10.4.4",
2
- .x{
3
- background: #000;
4
- // background: image-set(url(logo.png) 2x, url(logo.png) 1x);
5
- display: flex;
6
- }
@@ -1,25 +0,0 @@
1
- // --------------------------------------------------------------
2
- // -- CREATE MAGIC UTILITY CLASSES --
3
- // --------------------------------------------------------------
4
- // magic classes add styles to each child of the parent element
5
- //
6
- // $property (margin, padding, border ... etc)
7
- // $className ('m' or 'mar' ... etc)
8
- //
9
- //
10
- // Sample:
11
- //
12
-
13
- // apply single property to direct descendants except for the first-child
14
- @mixin notTheFirstChild($className, $property, $value) {
15
- .#{$className} > :not([hidden]) ~ :not([hidden]) {
16
- #{$property}: $value;
17
- }
18
- }
19
-
20
- // apply single property to direct descendant
21
- @mixin allTheChildren($className, $property, $value) {
22
- .#{$className} > * {
23
- #{$property}: $value;
24
- }
25
- }