nk_jtb 0.2.0 → 0.4.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 +29 -6
- package/main.js +2 -1
- package/package.json +7 -5
- package/public/images/logo.svg +1 -25
- package/scss/_nk.scss +33 -38
- package/scss/base/_base.scss +39 -16
- package/scss/base/_content_gap.scss +8 -4
- package/scss/base/_vars_base.scss +41 -11
- package/scss/base/_vars_colors.scss +5 -3
- package/scss/base/_vars_components.scss +17 -32
- package/scss/base/_vars_utility_maps.scss +33 -11
- package/scss/components/_box.scss +1 -1
- package/scss/components/_button.scss +1 -12
- package/scss/components/_dropdown.scss +0 -12
- package/scss/components/_hero.scss +2 -2
- package/scss/components/_icon.scss +1 -4
- package/scss/components/_list.scss +32 -0
- package/scss/components/_menu.scss +13 -7
- package/scss/components/_navbar.scss +10 -3
- package/scss/components/_other.scss +11 -16
- package/scss/components/_sidebar.scss +20 -6
- package/scss/forms/_control.scss +4 -3
- package/scss/forms/_form.scss +36 -39
- package/scss/forms/_index.scss +1 -0
- package/scss/forms/_toggle.scss +54 -0
- package/scss/functions/_colorFunctions.scss +35 -0
- package/scss/functions/_helpers.scss +4 -0
- package/scss/jtb.scss +7 -8
- package/scss/layouts/__two-column.scss +32 -0
- package/scss/mixins/_colorSchemeSimple.scss +1 -1
- package/scss/mixins/_createState.scss +1 -1
- package/scss/mixins/_makeColorSchemeAdvanced.scss +1 -1
- package/scss/mixins/_makeCssPropertyMixins.scss +8 -3
- package/scss/mixins/_makeMagicClass.scss +61 -0
- package/scss/mixins/_makeMagicGrid2Cols.scss +70 -0
- package/scss/mixins/_makeMagicGridFixedWidth.scss +55 -0
- package/scss/mixins/_makeResponsiveClasses.scss +91 -0
- package/scss/mixins/_makeResponsivePositionUtilities.scss +3 -3
- package/scss/mixins/_media.scss +23 -27
- package/scss/mixins/_positionUtilityClasses.scss +5 -2
- package/scss/play.scss +30 -0
- package/scss/utilities/_border.scss +76 -64
- package/scss/utilities/_display_visibility.scss +66 -0
- package/scss/utilities/_flex.scss +21 -3
- package/scss/utilities/_general.scss +15 -21
- package/scss/utilities/_grid.scss +44 -135
- package/scss/utilities/_opacity.scss +8 -0
- package/scss/utilities/_position.scss +16 -36
- package/scss/utilities/_sizes.scss +32 -23
- package/scss/utilities/_spacing.scss +95 -27
- package/scss/utilities/_state.scss +7 -0
- package/scss/utilities/_text.scss +44 -13
- package/scss/utilities/_themes.scss +69 -43
- package/scss/utilities/_transition.scss +5 -0
- package/scss/utilities/_translate.scss +32 -0
- package/public/images/hero-lg.jpg +0 -0
- package/public/images/hero-md.jpg +0 -0
- package/public/images/hero-sm.jpg +0 -0
- package/public/images/hero-xl.jpg +0 -0
- package/public/images/logo-alt.svg +0 -24
- package/public/images/logo.png +0 -0
- package/public/images/painting.jpg +0 -0
- package/scss/functions/_setTextColor.scss +0 -12
- package/scss/layout/_grid_old.scss +0 -88
- package/scss/utilities/_display.scss +0 -127
- package/tests.html +0 -252
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
@use "../base/vars_utility_maps" as *;
|
|
2
|
+
@use "../mixins/media" as *;
|
|
3
|
+
@use "sass:list";
|
|
4
|
+
|
|
5
|
+
// mobile = 100
|
|
6
|
+
// small = 100
|
|
7
|
+
// medium = 50
|
|
8
|
+
// large = 30
|
|
9
|
+
|
|
10
|
+
// only need to add 1st column percentage, 2nd is calculated
|
|
11
|
+
// (25, 25) is shorthand for {25:75}_{25:75}_{100}
|
|
12
|
+
|
|
13
|
+
// The more sizes you add will cover more breakpoints.
|
|
14
|
+
|
|
15
|
+
// There is no need to specify a size for the smallest breakpoint as it will be automatically set to 100 percent in the make function.
|
|
16
|
+
|
|
17
|
+
// For example, if there are 2 sizes in the list there will be 3 breakpoints lg, md, and sm.
|
|
18
|
+
|
|
19
|
+
// In this example, only the first column width has been set as the second column width will be calculate and included automatically.
|
|
20
|
+
|
|
21
|
+
// Grid will display in rows by default, size are min-size so you do not need to worry about adding the smallest size as it will be 100% by default
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@mixin makeMagicGrid2Cols($listOfLists) {
|
|
25
|
+
// must have at least two list
|
|
26
|
+
@each $list in $listOfLists {
|
|
27
|
+
// exclude empty list when creating single list
|
|
28
|
+
@if ($list != ()) {
|
|
29
|
+
$numBreakPoints: list.length($list);
|
|
30
|
+
|
|
31
|
+
$smValue: nth($list, -1);
|
|
32
|
+
$mdValue: nth($list, -2);
|
|
33
|
+
$lgValue: if($numBreakPoints >= 3, nth($list, -3), null);
|
|
34
|
+
$xlValue: if($numBreakPoints >= 4, nth($list, -4), null);
|
|
35
|
+
$xxlValue: if($numBreakPoints >= 5, nth($list, -5), null);
|
|
36
|
+
|
|
37
|
+
$class: #{$mdValue}_#{$smValue};
|
|
38
|
+
|
|
39
|
+
@if ($numBreakPoints == 3) {
|
|
40
|
+
$class: #{$lgValue}_#{$mdValue}_#{$smValue};
|
|
41
|
+
} @else if ($numBreakPoints == 4) {
|
|
42
|
+
$class: #{$xlValue}_#{$lgValue}_#{$mdValue}_#{$smValue};
|
|
43
|
+
} @else if ($numBreakPoints == 5) {
|
|
44
|
+
$class: #{$xxlValue}_#{$xlValue}_#{$lgValue}_#{$mdValue}_#{$smValue};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.cols-#{$class} {
|
|
48
|
+
@include from-sm {
|
|
49
|
+
grid-template-columns: nth(map-get($fr-map-2-col, $smValue), 1) nth(map-get($fr-map-2-col, $smValue), 2);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@include from-md {
|
|
53
|
+
grid-template-columns: nth(map-get($fr-map-2-col, $mdValue), 1) nth(map-get($fr-map-2-col, $mdValue), 2);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@if ($numBreakPoints >= 3) {
|
|
57
|
+
@include from-lg {
|
|
58
|
+
grid-template-columns: nth(map-get($fr-map-2-col, $lgValue), 1) nth(map-get($fr-map-2-col, $lgValue), 2);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@if ($numBreakPoints >= 4) {
|
|
63
|
+
@include from-xl {
|
|
64
|
+
grid-template-columns: nth(map-get($fr-map-2-col, $xlValue), 1) nth(map-get($fr-map-2-col, $xlValue), 2);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@use "../base/vars_utility_maps" as *;
|
|
2
|
+
@use "../mixins/media" as *;
|
|
3
|
+
@use "sass:list";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@mixin makeMagicGridFixedWidth($listOfLists) {
|
|
7
|
+
// must have at least two list
|
|
8
|
+
@each $list in $listOfLists {
|
|
9
|
+
// exclude empty list when creating single list
|
|
10
|
+
@if ($list != ()) {
|
|
11
|
+
$numBreakPoints: list.length($list);
|
|
12
|
+
|
|
13
|
+
$smValue: nth($list, -1);
|
|
14
|
+
$mdValue: nth($list, -2);
|
|
15
|
+
$lgValue: if($numBreakPoints >= 3, nth($list, -3), null);
|
|
16
|
+
$xlValue: if($numBreakPoints >= 4, nth($list, -4), null);
|
|
17
|
+
$xxlValue: if($numBreakPoints >= 5, nth($list, -5), null);
|
|
18
|
+
|
|
19
|
+
$derived-class: #{$mdValue}-#{$smValue};
|
|
20
|
+
|
|
21
|
+
@if ($numBreakPoints == 3) {
|
|
22
|
+
$derived-class: #{$lgValue}-#{$mdValue}-#{$smValue};
|
|
23
|
+
} @else if ($numBreakPoints == 4) {
|
|
24
|
+
$derived-class: #{$xlValue}-#{$lgValue}-#{$mdValue}-#{$smValue};
|
|
25
|
+
} @else if ($numBreakPoints == 5) {
|
|
26
|
+
$derived-class: #{$xxlValue}-#{$xlValue}-#{$lgValue}-#{$mdValue}-#{$smValue};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.cols-#{$derived-class} {
|
|
30
|
+
// @include from-sm {
|
|
31
|
+
// grid-template-columns: repeat(nth($list, -1), 1fr);
|
|
32
|
+
// }
|
|
33
|
+
|
|
34
|
+
// I am not convinced that I need the small size!!
|
|
35
|
+
grid-template-columns: repeat(nth($list, -1), 1fr);
|
|
36
|
+
|
|
37
|
+
@include from-md {
|
|
38
|
+
grid-template-columns: repeat(nth($list, -2), 1fr);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@if ($numBreakPoints >= 3) {
|
|
42
|
+
@include from-lg {
|
|
43
|
+
grid-template-columns: repeat(nth($list, -3), 1fr);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@if ($numBreakPoints >= 4) {
|
|
48
|
+
@include from-xl {
|
|
49
|
+
grid-template-columns: repeat(nth($list, -4), 1fr);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
@use "./media" as *;
|
|
2
|
+
|
|
3
|
+
// At first glance it seems really dumb to create mixins full of if-else
|
|
4
|
+
// statements and that is because it is! SCSS will not allow interpolation for
|
|
5
|
+
// @include so there is no other way.
|
|
6
|
+
|
|
7
|
+
// ---------------- BEFORE YOU DO ANYTHING CRAZY ----------------
|
|
8
|
+
// must be marked !important to ensure override default property
|
|
9
|
+
// ---------------- BEFORE YOU DO ANYTHING CRAZY ----------------
|
|
10
|
+
|
|
11
|
+
@mixin makeFromDevice($prefix, $property, $value, $args...) {
|
|
12
|
+
@each $device in $args {
|
|
13
|
+
.#{$prefix}#{$device} {
|
|
14
|
+
@if ($device == "sm") {
|
|
15
|
+
@include from-sm {
|
|
16
|
+
#{$property}: $value !important;
|
|
17
|
+
}
|
|
18
|
+
} @else if($device == "md") {
|
|
19
|
+
@include from-md {
|
|
20
|
+
#{$property}: $value !important;
|
|
21
|
+
}
|
|
22
|
+
} @else if($device == "lg") {
|
|
23
|
+
@include from-lg {
|
|
24
|
+
#{$property}: $value !important;
|
|
25
|
+
}
|
|
26
|
+
} @else if($device == "xl") {
|
|
27
|
+
@include from-xl {
|
|
28
|
+
#{$property}: $value !important;
|
|
29
|
+
}
|
|
30
|
+
} @else if($device == "xxl") {
|
|
31
|
+
@include from-xxl {
|
|
32
|
+
#{$property}: $value !important;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@mixin makeToDevice($prefix, $property, $value, $args...) {
|
|
40
|
+
@each $device in $args {
|
|
41
|
+
.#{$prefix}#{$device} {
|
|
42
|
+
@if ($device == "sm") {
|
|
43
|
+
@include to-sm {
|
|
44
|
+
#{$property}: $value !important;
|
|
45
|
+
}
|
|
46
|
+
} @else if($device == "md") {
|
|
47
|
+
@include to-md {
|
|
48
|
+
#{$property}: $value !important;
|
|
49
|
+
}
|
|
50
|
+
} @else if($device == "lg") {
|
|
51
|
+
@include to-lg {
|
|
52
|
+
#{$property}: $value !important;
|
|
53
|
+
}
|
|
54
|
+
} @else if($device == "xl") {
|
|
55
|
+
@include to-xl {
|
|
56
|
+
#{$property}: $value !important;
|
|
57
|
+
}
|
|
58
|
+
} @else {
|
|
59
|
+
@error 'The device '#{$device}' is not available for this mixin, you need to remove it from the args list.';
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@mixin makeOnDevice($prefix, $property, $value, $args...) {
|
|
66
|
+
@each $device in $args {
|
|
67
|
+
.#{$prefix}#{$device} {
|
|
68
|
+
@if ($device == "sm") {
|
|
69
|
+
@include on-sm {
|
|
70
|
+
#{$property}: $value !important;
|
|
71
|
+
}
|
|
72
|
+
} @else if($device == "md") {
|
|
73
|
+
@include on-md {
|
|
74
|
+
#{$property}: $value !important;
|
|
75
|
+
}
|
|
76
|
+
} @else if($device == "lg") {
|
|
77
|
+
@include on-lg {
|
|
78
|
+
#{$property}: $value !important;
|
|
79
|
+
}
|
|
80
|
+
} @else if($device == "xl") {
|
|
81
|
+
@include on-xl {
|
|
82
|
+
#{$property}: $value !important;
|
|
83
|
+
}
|
|
84
|
+
} @else if($device == "xxl") {
|
|
85
|
+
@include on-xxl {
|
|
86
|
+
#{$property}: $value !important;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
.#{$class} {
|
|
41
41
|
@include makeCssPositionProperty($property, #{nth($sizes-list, -1)}rem, $positions);
|
|
42
42
|
|
|
43
|
-
@include from-
|
|
43
|
+
@include from-md {
|
|
44
44
|
@include makeCssPositionProperty($property, #{nth($sizes-list, -2)}rem, $positions);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
@include from-
|
|
47
|
+
@include from-xl {
|
|
48
48
|
@include makeCssPositionProperty($property, #{nth($sizes-list, -3)}rem, $positions);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
@if ($numSizes==4) {
|
|
52
|
-
@include from-
|
|
52
|
+
@include from-xxl {
|
|
53
53
|
@include makeCssPositionProperty($property, #{nth($sizes-list, -4)}rem, $positions);
|
|
54
54
|
}
|
|
55
55
|
}
|
package/scss/mixins/_media.scss
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use "../base/vars_base" as *;
|
|
2
2
|
|
|
3
|
-
// |-- device
|
|
3
|
+
// |-- on-device --|
|
|
4
4
|
// --------------------------------------------------------------------------
|
|
5
|
-
@mixin
|
|
6
|
-
@media (max-width: $tablet - 1px) {
|
|
5
|
+
@mixin on-sm {
|
|
6
|
+
@media (min-width: $small) and (max-width: $tablet - 1px) {
|
|
7
7
|
@content;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
@mixin
|
|
11
|
+
@mixin on-md {
|
|
12
12
|
@media (min-width: $tablet) and (max-width: $laptop - 1px) {
|
|
13
13
|
@content;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
@mixin
|
|
17
|
+
@mixin on-lg {
|
|
18
18
|
@media (min-width: $laptop) and (max-width: $desktop - 1px) {
|
|
19
19
|
@content;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
@mixin
|
|
24
|
-
@media (min-width: $desktop) and (max-width: $
|
|
23
|
+
@mixin on-xl {
|
|
24
|
+
@media (min-width: $desktop) and (max-width: $widescreen - 1px) {
|
|
25
25
|
@content;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
@mixin
|
|
29
|
+
@mixin on-xxl {
|
|
30
30
|
@media (min-width: $widescreen) {
|
|
31
31
|
@content;
|
|
32
32
|
}
|
|
@@ -35,64 +35,60 @@
|
|
|
35
35
|
// |-- from-device (device and larger) --|
|
|
36
36
|
// --------------------------------------------------------------------------
|
|
37
37
|
|
|
38
|
-
@mixin from-
|
|
39
|
-
@media (min-width: $
|
|
38
|
+
@mixin from-sm {
|
|
39
|
+
@media (min-width: $small) {
|
|
40
40
|
@content;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
|
|
44
|
+
@mixin from-md {
|
|
44
45
|
@media (min-width: $tablet) {
|
|
45
46
|
@content;
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
|
|
49
|
-
@mixin from-
|
|
50
|
+
@mixin from-lg {
|
|
50
51
|
@media (min-width: $laptop) {
|
|
51
52
|
@content;
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
|
|
55
|
-
@mixin from-
|
|
56
|
+
@mixin from-xl {
|
|
56
57
|
@media (min-width: $desktop) {
|
|
57
58
|
@content;
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
61
|
|
|
61
|
-
@mixin from-
|
|
62
|
+
@mixin from-xxl {
|
|
62
63
|
@media (min-width: $widescreen) {
|
|
63
64
|
@content;
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
|
|
67
|
-
// |--
|
|
68
|
+
// |-- to-device (up-to but not including) --|
|
|
68
69
|
// --------------------------------------------------------------------------
|
|
69
|
-
@mixin
|
|
70
|
-
@media (max-width: $
|
|
70
|
+
@mixin to-sm {
|
|
71
|
+
@media (max-width: $small - 1px) {
|
|
71
72
|
@content;
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
75
|
|
|
75
|
-
@mixin
|
|
76
|
+
@mixin to-md {
|
|
76
77
|
@media (max-width: $tablet - 1px) {
|
|
77
78
|
@content;
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
81
|
|
|
81
|
-
@mixin
|
|
82
|
+
@mixin to-lg {
|
|
82
83
|
@media (max-width: $laptop - 1px) {
|
|
83
84
|
@content;
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
|
|
87
|
-
@mixin
|
|
88
|
+
@mixin to-xl {
|
|
88
89
|
@media (max-width: $desktop - 1px) {
|
|
89
90
|
@content;
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
|
|
93
|
-
|
|
94
|
-
@media (max-width: $widescreen - 1px) {
|
|
95
|
-
@content;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
94
|
+
// widescreen is pointless here!
|
|
@@ -43,9 +43,12 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.#{$base-class}#{$position-key}#{$size-key} {
|
|
46
|
-
// use shorthand for
|
|
46
|
+
// do not use shorthand to allow for easier override
|
|
47
47
|
@if ($axis-or-position == "xy") {
|
|
48
|
-
#{$property}: #{$value};
|
|
48
|
+
#{$property}-top: #{$value};
|
|
49
|
+
#{$property}-bottom: #{$value};
|
|
50
|
+
#{$property}-left: #{$value};
|
|
51
|
+
#{$property}-right: #{$value};
|
|
49
52
|
} @else {
|
|
50
53
|
@include makeCssPositionProperty($property, #{$value}, $positions);
|
|
51
54
|
}
|
package/scss/play.scss
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@use "./base/vars_all" as *;
|
|
2
|
+
@use "./base/vars_base" as *;
|
|
3
|
+
@use "./base/vars_utility_maps" as *;
|
|
4
|
+
@use "./functions/helpers" as *;
|
|
5
|
+
@use "./mixins/makeCssPropertyMixins" as *;
|
|
6
|
+
@use "./mixins/makeMagicClass" as *;
|
|
7
|
+
@use "./mixins/makeMagicGrid2Cols" as *;
|
|
8
|
+
@use "./mixins/media" as *;
|
|
9
|
+
@use "./mixins/positionUtilityClasses" as *;
|
|
10
|
+
@use "sass:list";
|
|
11
|
+
@use "sass:map";
|
|
12
|
+
@use "sass:string";
|
|
13
|
+
|
|
14
|
+
$magic-width-sizes: ((16, "full"), (24, "full")) !default;
|
|
15
|
+
@include makeMagicClass("width", "w", ($magic-width-sizes));
|
|
16
|
+
|
|
17
|
+
// $magic-grid-sizes-2cols: ((25, 25), (25, 25));
|
|
18
|
+
// @include makeMagicGrid2Cols($magic-grid-sizes-2cols);
|
|
19
|
+
|
|
20
|
+
// (sfw) single fixed width
|
|
21
|
+
@media (min-width: 576px) {
|
|
22
|
+
.cols-sfw-25_25 {
|
|
23
|
+
grid-template-columns: 1fr 14rem;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
@media (min-width: 768px) {
|
|
27
|
+
.cols-sfw-25_25 {
|
|
28
|
+
grid-template-columns: 1fr 20rem;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -1,36 +1,25 @@
|
|
|
1
1
|
@use "../base/vars_all" as *;
|
|
2
2
|
@use "../mixins/positionUtilityClasses" as *;
|
|
3
3
|
|
|
4
|
-
// Add border radius to map???
|
|
5
4
|
$border-utilities-map: (
|
|
6
5
|
"border": (
|
|
7
6
|
"base-class": "bdr",
|
|
8
7
|
"values-map": (
|
|
9
8
|
"default": $border,
|
|
9
|
+
"0": none !important,
|
|
10
10
|
),
|
|
11
11
|
"axis-position-map": $axis-position-map,
|
|
12
12
|
),
|
|
13
13
|
);
|
|
14
14
|
|
|
15
15
|
$border-widths-map: (
|
|
16
|
-
|
|
16
|
+
0: 0px,
|
|
17
|
+
2: 2px,
|
|
17
18
|
3: 3px,
|
|
18
19
|
5: 5px,
|
|
19
|
-
10: 10px,
|
|
20
|
-
) !default;
|
|
21
|
-
|
|
22
|
-
$border-colors-map: (
|
|
23
|
-
"orange": var(--orange),
|
|
24
|
-
"red": map-get($color-map, "red"),
|
|
25
|
-
"green": var(--green),
|
|
26
|
-
"blue": var(--blue),
|
|
27
|
-
"primary": $primary,
|
|
28
|
-
"secondary": var(--secondary),
|
|
29
|
-
"success": var(--success),
|
|
30
|
-
"danger": var(--danger),
|
|
31
|
-
"info": var(--info),
|
|
32
20
|
) !default;
|
|
33
21
|
|
|
22
|
+
$border-colors-map: ($color-map) !default;
|
|
34
23
|
|
|
35
24
|
// --------------------------------------------------------------------------
|
|
36
25
|
// -- POSITION BASED BORDERS --
|
|
@@ -38,13 +27,13 @@ $border-colors-map: (
|
|
|
38
27
|
|
|
39
28
|
@include positionUtilityClasses($border-utilities-map);
|
|
40
29
|
|
|
41
|
-
|
|
42
30
|
// --------------------------------------------------------------------------
|
|
43
31
|
// -- BORDER COLORS --
|
|
44
32
|
// --------------------------------------------------------------------------
|
|
33
|
+
|
|
45
34
|
@each $key, $value in $border-colors-map {
|
|
46
35
|
.bdr-#{$key} {
|
|
47
|
-
border:
|
|
36
|
+
border-color: $value;
|
|
48
37
|
}
|
|
49
38
|
}
|
|
50
39
|
|
|
@@ -54,58 +43,81 @@ $border-colors-map: (
|
|
|
54
43
|
// make sure overrides come after base class
|
|
55
44
|
|
|
56
45
|
@each $key, $value in $border-widths-map {
|
|
57
|
-
.bdr
|
|
46
|
+
.bdr-#{$key} {
|
|
58
47
|
border-width: $value;
|
|
59
48
|
}
|
|
60
49
|
}
|
|
61
50
|
|
|
51
|
+
// --------------------------------------------------------------------------
|
|
52
|
+
// -- BORDER RADIUS --
|
|
53
|
+
// --------------------------------------------------------------------------
|
|
54
|
+
.bdrr {
|
|
55
|
+
border: $border;
|
|
56
|
+
border-radius: $border-radius;
|
|
57
|
+
&-t {
|
|
58
|
+
border-top-left-radius: $border-radius;
|
|
59
|
+
border-top-right-radius: $border-radius;
|
|
60
|
+
}
|
|
61
|
+
&-b {
|
|
62
|
+
border-bottom-left-radius: $border-radius;
|
|
63
|
+
border-bottom-right-radius: $border-radius;
|
|
64
|
+
}
|
|
65
|
+
&-l {
|
|
66
|
+
border-top-left-radius: $border-radius;
|
|
67
|
+
border-bottom-left-radius: $border-radius;
|
|
68
|
+
}
|
|
69
|
+
&-r {
|
|
70
|
+
border-top-right-radius: $border-radius;
|
|
71
|
+
border-bottom-right-radius: $border-radius;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
62
74
|
|
|
75
|
+
// --------------------------------------------------------------------------
|
|
76
|
+
// -- REMOVE BORDER --
|
|
77
|
+
// --------------------------------------------------------------------------
|
|
63
78
|
|
|
64
|
-
.
|
|
65
|
-
|
|
79
|
+
.bdrr {
|
|
80
|
+
&-0 {
|
|
81
|
+
border-radius: 0;
|
|
82
|
+
}
|
|
83
|
+
&-t-0 {
|
|
84
|
+
border-top-left-radius: 0;
|
|
85
|
+
border-top-right-radius: 0;
|
|
86
|
+
}
|
|
87
|
+
&-b-0 {
|
|
88
|
+
border-bottom-left-radius: 0;
|
|
89
|
+
border-bottom-right-radius: 0;
|
|
90
|
+
}
|
|
91
|
+
&-l-0 {
|
|
92
|
+
border-top-left-radius: 0;
|
|
93
|
+
border-bottom-left-radius: 0;
|
|
94
|
+
}
|
|
95
|
+
&-r-0 {
|
|
96
|
+
border-top-right-radius: 0;
|
|
97
|
+
border-bottom-right-radius: 0;
|
|
98
|
+
}
|
|
66
99
|
}
|
|
67
100
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
// // // remove border radius
|
|
93
|
-
// // .nbr {
|
|
94
|
-
// // border-radius: 0;
|
|
95
|
-
// // &-t {
|
|
96
|
-
// // border-top-left-radius: 0;
|
|
97
|
-
// // border-top-right-radius: 0;
|
|
98
|
-
// // }
|
|
99
|
-
// // &-b {
|
|
100
|
-
// // border-bottom-left-radius: 0;
|
|
101
|
-
// // border-bottom-right-radius: 0;
|
|
102
|
-
// // }
|
|
103
|
-
// // &-l {
|
|
104
|
-
// // border-top-left-radius: 0;
|
|
105
|
-
// // border-bottom-left-radius: 0;
|
|
106
|
-
// // }
|
|
107
|
-
// // &-r {
|
|
108
|
-
// // border-top-right-radius: 0;
|
|
109
|
-
// // border-bottom-right-radius: 0;
|
|
110
|
-
// // }
|
|
111
|
-
// // }
|
|
101
|
+
.rounded {
|
|
102
|
+
&-none {
|
|
103
|
+
border-radius: 0px;
|
|
104
|
+
}
|
|
105
|
+
&-0125 {
|
|
106
|
+
border-radius: 0.125rem;
|
|
107
|
+
}
|
|
108
|
+
&-025 {
|
|
109
|
+
border-radius: 0.25rem;
|
|
110
|
+
}
|
|
111
|
+
&-0375 {
|
|
112
|
+
border-radius: 0.375rem;
|
|
113
|
+
}
|
|
114
|
+
&-05 {
|
|
115
|
+
border-radius: 0.5rem;
|
|
116
|
+
}
|
|
117
|
+
&-075 {
|
|
118
|
+
border-radius: 0.75rem;
|
|
119
|
+
}
|
|
120
|
+
&-1 {
|
|
121
|
+
border-radius: 1rem;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@use "../base/vars_base" as *;
|
|
2
|
+
@use "../mixins/media" as *;
|
|
3
|
+
@use "../mixins/makeResponsiveClasses" as *;
|
|
4
|
+
|
|
5
|
+
$visibility-utilities: (
|
|
6
|
+
"display": (
|
|
7
|
+
"property": "display",
|
|
8
|
+
"prefix": "",
|
|
9
|
+
"values": (
|
|
10
|
+
block: block,
|
|
11
|
+
inline: inline,
|
|
12
|
+
inline-block: inline-block,
|
|
13
|
+
flex: flex,
|
|
14
|
+
inline-flex: inline-flex,
|
|
15
|
+
hidden: none,
|
|
16
|
+
),
|
|
17
|
+
),
|
|
18
|
+
"visibility": (
|
|
19
|
+
"property": "visibility",
|
|
20
|
+
"prefix": "",
|
|
21
|
+
"values": (
|
|
22
|
+
visible: visible,
|
|
23
|
+
invisible: hidden,
|
|
24
|
+
),
|
|
25
|
+
),
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
@each $property, $map in $visibility-utilities {
|
|
29
|
+
$property: map-get($map, "property");
|
|
30
|
+
$utility-prefix: map-get($map, "prefix");
|
|
31
|
+
$values: map-get($map, "values");
|
|
32
|
+
|
|
33
|
+
@each $key, $v in $values {
|
|
34
|
+
.#{$utility-prefix}#{$key} {
|
|
35
|
+
#{$property}: $v;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// |--\0/-- device-only --\0/--|
|
|
41
|
+
// --------------------------------------------------------------------------
|
|
42
|
+
.sr-only {
|
|
43
|
+
opacity: 0;
|
|
44
|
+
position: absolute;
|
|
45
|
+
left: -9000px;
|
|
46
|
+
top: -9000px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// |--\0/-- DISPLAY --\0/--|
|
|
50
|
+
// --------------------------------------------------------------------------
|
|
51
|
+
[class*="block-to"],
|
|
52
|
+
[class*="block-from"],
|
|
53
|
+
[class*="block-on"] {
|
|
54
|
+
display: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@include makeFromDevice("block-from-", display, block, "sm", "md", "lg", "xl", "xxl");
|
|
58
|
+
@include makeOnDevice("block-on-", display, block, "sm", "md", "lg", "xl", "xxl");
|
|
59
|
+
@include makeToDevice("block-to-", display, block, "sm", "md", "lg", "xl");
|
|
60
|
+
|
|
61
|
+
// |--\0/-- HIDE --\0/--|
|
|
62
|
+
// --------------------------------------------------------------------------
|
|
63
|
+
|
|
64
|
+
@include makeFromDevice("hide-from-", display, none, "sm", "md", "lg", "xl", "xxl");
|
|
65
|
+
@include makeOnDevice("hide-on-", display, none, "sm", "md", "lg", "xl", "xxl");
|
|
66
|
+
@include makeToDevice("hide-to-", display, none, "sm", "md", "lg", "xl");
|