nk_jtb 0.2.0 → 0.3.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.
- package/composer.lock +1286 -0
- package/index.html +85 -7
- package/main.js +1 -1
- package/package.json +4 -6
- package/scss/_nk.scss +28 -24
- package/scss/_play.scss +34 -0
- package/scss/base/_base.scss +38 -15
- package/scss/base/_content_gap.scss +1 -3
- package/scss/base/_vars_base.scss +26 -7
- package/scss/base/_vars_colors.scss +8 -1
- package/scss/base/_vars_utility_maps.scss +16 -11
- package/scss/components/_menu.scss +3 -3
- package/scss/components/_navbar.scss +0 -1
- package/scss/forms/_control.scss +4 -3
- package/scss/forms/_form.scss +36 -39
- package/scss/jtb.scss +1 -6
- package/scss/mixins/_media.scss +1 -6
- package/scss/mixins/_positionUtilityClasses.scss +5 -2
- package/scss/utilities/_border.scss +53 -65
- package/scss/utilities/{_display.scss → _display_visibility.scss} +66 -0
- package/scss/utilities/_flex.scss +10 -2
- package/scss/utilities/_general.scss +5 -4
- package/scss/utilities/_grid.scss +9 -18
- package/scss/utilities/_position.scss +5 -22
- package/scss/utilities/_sizes.scss +35 -16
- package/scss/utilities/_spacing.scss +47 -3
- package/scss/utilities/_text.scss +7 -3
- package/scss/utilities/_themes.scss +25 -10
- package/scss/layout/_grid_old.scss +0 -88
|
@@ -11,7 +11,7 @@ $text-utilities: (
|
|
|
11
11
|
),
|
|
12
12
|
),
|
|
13
13
|
"line-height": (
|
|
14
|
-
"prefix": "lh",
|
|
14
|
+
"prefix": "lh-",
|
|
15
15
|
"values": (
|
|
16
16
|
1: 1,
|
|
17
17
|
),
|
|
@@ -96,10 +96,9 @@ h1.title {
|
|
|
96
96
|
//
|
|
97
97
|
// ---------------- BEFORE YOU DO ANYTHING CRAZY ----------------
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
101
99
|
.txt {
|
|
102
100
|
// size modifiers
|
|
101
|
+
// check line heights as the may not be correct!
|
|
103
102
|
&-sm {
|
|
104
103
|
font-size: 0.875rem;
|
|
105
104
|
line-height: 1.25rem;
|
|
@@ -113,6 +112,11 @@ h1.title {
|
|
|
113
112
|
line-height: 1.75rem;
|
|
114
113
|
}
|
|
115
114
|
|
|
115
|
+
&-2 {
|
|
116
|
+
font-size: 2rem;
|
|
117
|
+
line-height: 1;
|
|
118
|
+
}
|
|
119
|
+
|
|
116
120
|
// colour modifiers
|
|
117
121
|
&-green {
|
|
118
122
|
color: map-get($color-map, "green");
|
|
@@ -7,14 +7,31 @@
|
|
|
7
7
|
|
|
8
8
|
// ----------------------------------
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
$
|
|
10
|
+
// get this to fall back to the base colors???
|
|
11
|
+
$alert-theme: (
|
|
12
12
|
"danger-light": (
|
|
13
|
-
"base":
|
|
14
|
-
"border-color":
|
|
15
|
-
"color":
|
|
16
|
-
"title-color":
|
|
17
|
-
|
|
13
|
+
"base": hsl(0, 100%, 95%),
|
|
14
|
+
"border-color": hsl(0, 100%, 81%),
|
|
15
|
+
"color": hsl(0, 100%, 15%),
|
|
16
|
+
"title-color": hsl(0, 100%, 30%),
|
|
17
|
+
),
|
|
18
|
+
"info-light": (
|
|
19
|
+
"base": hsl(211, 94%, 94%),
|
|
20
|
+
"border-color": hsl(211, 94%, 81%),
|
|
21
|
+
"color": hsl(211, 94%, 15%),
|
|
22
|
+
"title-color": hsl(211, 94%, 30%),
|
|
23
|
+
),
|
|
24
|
+
"warning-light": (
|
|
25
|
+
"base": hsl(50, 92%, 95%),
|
|
26
|
+
"border-color": hsl(50, 92%, 60%),
|
|
27
|
+
"color": hsl(50, 92%, 21%),
|
|
28
|
+
"title-color": hsl(50, 92%, 35%),
|
|
29
|
+
),
|
|
30
|
+
"success-light": (
|
|
31
|
+
"base": hsl(142, 61%, 92%),
|
|
32
|
+
"border-color": hsl(142, 61%, 81%),
|
|
33
|
+
"color": hsl(142, 61%, 15%),
|
|
34
|
+
"title-color": hsl(142, 62%, 25%),
|
|
18
35
|
),
|
|
19
36
|
"complement": (
|
|
20
37
|
"base": #ffbfd1,
|
|
@@ -41,7 +58,7 @@ $default-themes: (
|
|
|
41
58
|
),
|
|
42
59
|
) !default;
|
|
43
60
|
|
|
44
|
-
$themes-map: map.merge($
|
|
61
|
+
$themes-map: map.merge($alert-theme, $default-themes);
|
|
45
62
|
|
|
46
63
|
// $key is the theme name, $map is the theme map
|
|
47
64
|
@each $key, $map in $themes-map {
|
|
@@ -69,8 +86,6 @@ $themes-map: map.merge($new-theme, $default-themes);
|
|
|
69
86
|
@include colorShades("bg-blue-", hsl(204, 83%, 53%), 9, 3);
|
|
70
87
|
@include colorShades("bg-green-", hsl(134, 61%, 41%), 9, 3);
|
|
71
88
|
|
|
72
|
-
|
|
73
|
-
|
|
74
89
|
// $themes-map: (
|
|
75
90
|
// "danger": (
|
|
76
91
|
// "base": map-get($color-map, "danger"),
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
@use "../mixins/media" as *;
|
|
2
|
-
@use "../base/vars_base" as *;
|
|
3
|
-
|
|
4
|
-
// ---------------- BEFORE YOU DO ANYTHING CRAZY ----------------
|
|
5
|
-
//
|
|
6
|
-
// This grid systems will be depreciated over time so do not add
|
|
7
|
-
// any new classes in this style sheet.
|
|
8
|
-
//
|
|
9
|
-
// ---------------- BEFORE YOU DO ANYTHING CRAZY ----------------
|
|
10
|
-
|
|
11
|
-
$grid-gutter: 0.75rem;
|
|
12
|
-
$stack-on-device: $mobile-portrait;
|
|
13
|
-
|
|
14
|
-
// |--\0/-- Column Width Map --\0/--|
|
|
15
|
-
$col-widths: (
|
|
16
|
-
8: 8.3333%,
|
|
17
|
-
10: 10%,
|
|
18
|
-
15: 15%,
|
|
19
|
-
20: 20%,
|
|
20
|
-
25: 25%,
|
|
21
|
-
30: 30%,
|
|
22
|
-
33: 33.3333%,
|
|
23
|
-
40: 40%,
|
|
24
|
-
50: 50%,
|
|
25
|
-
60: 60%,
|
|
26
|
-
66: 66.6666%,
|
|
27
|
-
70: 70%,
|
|
28
|
-
75: 75%,
|
|
29
|
-
80: 80%,
|
|
30
|
-
85: 85%,
|
|
31
|
-
90: 90%,
|
|
32
|
-
100: 100%,
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
.row {
|
|
36
|
-
margin-left: -$grid-gutter;
|
|
37
|
-
margin-right: -$grid-gutter;
|
|
38
|
-
&.mm {
|
|
39
|
-
margin-left: 0;
|
|
40
|
-
margin-right: 0;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// columns stack and will not flex until min-size
|
|
45
|
-
// 1. columns will wrap when past 100%
|
|
46
|
-
@media screen and (min-width: $stack-on-device), print {
|
|
47
|
-
.row {
|
|
48
|
-
display: flex;
|
|
49
|
-
flex-wrap: wrap; // 1
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.col {
|
|
54
|
-
display: block;
|
|
55
|
-
flex-basis: 0; // initial width
|
|
56
|
-
flex-grow: 1; // can grow
|
|
57
|
-
flex-shrink: 1; // can shrink
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// apply gutter to all column classes
|
|
61
|
-
[class*="col-"] {
|
|
62
|
-
padding: $grid-gutter;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// Base classes (non responsive)
|
|
66
|
-
// for each width in col-widths
|
|
67
|
-
@each $column, $width in $col-widths {
|
|
68
|
-
// create class .col-breakpoint-width
|
|
69
|
-
.col-#{$column} {
|
|
70
|
-
flex: 0 0 $width;
|
|
71
|
-
max-width: $width;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// for each breakpoint (xs, sm, etc ...) in breakpoints
|
|
76
|
-
@each $breakpoint, $size in $breakpoints {
|
|
77
|
-
// create a media query with min-width of $size
|
|
78
|
-
@media (min-width: $size) {
|
|
79
|
-
// for each width in col-widths
|
|
80
|
-
@each $column, $width in $col-widths {
|
|
81
|
-
// create class .col-breakpoint-width
|
|
82
|
-
.col-#{$breakpoint}-#{$column} {
|
|
83
|
-
flex: 0 0 $width;
|
|
84
|
-
max-width: $width;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|