nk_jtb 0.8.6 → 0.8.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/package.json +1 -1
- package/src/_nk.scss +5 -0
- package/src/base/_vars_base.scss +2 -0
- package/src/base/_vars_components.scss +20 -0
- package/src/components-extended/_hero.scss +29 -0
- package/src/jtb.scss +3 -2
- package/src/mixins/_extendedThemeClass.scss +6 -6
- package/src/mixins/_utilityClassCreators.scss +10 -4
- package/src/play.scss +5 -17
- package/src/scss/_nk.scss +17 -42
- package/src/scss/utilities/_display_visibility.scss +0 -10
- package/src/scss/utilities/_sizes.scss +0 -54
- package/src/utilities/_responsive_display_visibility.scss +32 -0
- package/src/utilities/_size.scss +46 -7
- package/src/utilities/_text.scss +1 -1
- package/src/scss/components/_hero.scss +0 -34
package/package.json
CHANGED
package/src/_nk.scss
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
@use "./base/vars_all" as *;
|
|
2
2
|
@use "./mixins/media" as *;
|
|
3
3
|
|
|
4
|
+
#nk-header {
|
|
5
|
+
background: $header-bg;
|
|
6
|
+
margin: 0; // override spacing
|
|
7
|
+
}
|
|
8
|
+
|
|
4
9
|
// ==========================================================================
|
|
5
10
|
// -- MARKDOWN --
|
|
6
11
|
// ==========================================================================
|
package/src/base/_vars_base.scss
CHANGED
|
@@ -22,6 +22,8 @@ $primary: $primary !default;
|
|
|
22
22
|
$secondary: $secondary !default;
|
|
23
23
|
$accent: $accent !default;
|
|
24
24
|
|
|
25
|
+
$img-path: "/images" !default;
|
|
26
|
+
|
|
25
27
|
$border-color: rgba(0, 0, 0, 0.15) !default;
|
|
26
28
|
$border: 1px solid $border-color !default;
|
|
27
29
|
$border-radius: 8px !default;
|
|
@@ -1 +1,21 @@
|
|
|
1
|
+
@use "../base/vars_base" as *;
|
|
2
|
+
|
|
1
3
|
$zebra-alt-bg: rgb(245, 245, 245) !default; //
|
|
4
|
+
|
|
5
|
+
// ==========================================================================
|
|
6
|
+
// -- HERO COMPONENT --
|
|
7
|
+
// ==========================================================================
|
|
8
|
+
// $hero-background-color: $primary;
|
|
9
|
+
$hero-title-color: #eee !default;
|
|
10
|
+
$hero-title-lg: 3rem !default;
|
|
11
|
+
$hero-title-sm: 2rem !default;
|
|
12
|
+
|
|
13
|
+
$hero-subtitle-color: #eee !default;
|
|
14
|
+
$hero-subtitle-lg: 2.5rem !default;
|
|
15
|
+
$hero-subtitle-sm: 1.75rem !default;
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
$hero-gradient: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)) !default;
|
|
20
|
+
|
|
21
|
+
$hero-text-padding: $content-gap !default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@use "../base/vars_base" as *;
|
|
2
|
+
@use "../base/vars_components" as *;
|
|
3
|
+
@use "../mixins/media" as *;
|
|
4
|
+
|
|
5
|
+
// ---------------- BEFORE YOU DO ANYTHING CRAZY ------------------
|
|
6
|
+
// constant debate has surrounded a `hero-text` wrapper. It has been
|
|
7
|
+
// removed because it is easier to manage with utility classes
|
|
8
|
+
// ------------------------------------------------------------------
|
|
9
|
+
|
|
10
|
+
.hero {
|
|
11
|
+
background-repeat: no-repeat;
|
|
12
|
+
background-position: center;
|
|
13
|
+
background-size: cover;
|
|
14
|
+
|
|
15
|
+
.title {
|
|
16
|
+
color: $hero-title-color;
|
|
17
|
+
font-size: $hero-title-sm;
|
|
18
|
+
@include from-md {
|
|
19
|
+
font-size: $hero-title-lg;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
.subtitle {
|
|
23
|
+
color: $hero-subtitle-color;
|
|
24
|
+
font-size: $hero-subtitle-sm;
|
|
25
|
+
@include from-md {
|
|
26
|
+
font-size: $hero-subtitle-lg;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
package/src/jtb.scss
CHANGED
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
// -- ORDER MATTERS -- Components need to be loaded before utility
|
|
10
10
|
// classes to make sure they can be overridden
|
|
11
|
+
@forward "./components-extended/hero";
|
|
12
|
+
@forward "./components/button";
|
|
11
13
|
@forward "./scss/components/accordion";
|
|
12
14
|
@forward "./scss/components/article";
|
|
13
15
|
@forward "./scss/components/box";
|
|
14
|
-
@forward "./components/button";
|
|
15
16
|
@forward "./scss/components/dropdown";
|
|
16
|
-
@forward "./scss/components/hero";
|
|
17
17
|
@forward "./scss/components/icon";
|
|
18
18
|
@forward "./scss/components/list";
|
|
19
19
|
@forward "./scss/components/menu";
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
@forward "./scss/utilities/translate";
|
|
40
40
|
@forward "./utilities/general";
|
|
41
41
|
@forward "./utilities/grid";
|
|
42
|
+
@forward "./utilities/responsive_display_visibility";
|
|
42
43
|
@forward "./utilities/size";
|
|
43
44
|
@forward "./utilities/text";
|
|
44
45
|
@forward "./utilities/transition";
|
|
@@ -60,11 +60,11 @@
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
//
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
// do not apply to :hover let component or specialty classes look after it
|
|
64
|
+
&.outline:not(:hover) {
|
|
65
|
+
background-color: transparent;
|
|
66
|
+
border-color: $base;
|
|
67
|
+
color: $base;
|
|
68
|
+
}
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -19,18 +19,24 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// ----------------------------------------------------------------
|
|
22
|
-
// -- CREATE
|
|
22
|
+
// -- CREATE UNIT BASED PROPERTY CLASSES --
|
|
23
23
|
// ----------------------------------------------------------------
|
|
24
24
|
//
|
|
25
25
|
// $text-sizes: (2, 2.5, 3, 4);
|
|
26
|
+
// @include unitBasedUtilityClasses(font-size, $text-sizes, "txt");
|
|
26
27
|
//
|
|
27
|
-
//
|
|
28
|
+
// $text-sizes-px: (16, 20, 24);
|
|
29
|
+
// @include unitBasedUtilityClasses(font-size, $text-sizes, "txt", "px");
|
|
30
|
+
//
|
|
31
|
+
|
|
32
|
+
@mixin unitBasedUtilityClasses($property, $map, $identifier, $unit: "rem") {
|
|
33
|
+
// add unit to class name if not 'rem'
|
|
34
|
+
$suffix: if($unit!= "rem", $unit, "");
|
|
28
35
|
|
|
29
|
-
@mixin utilityClassesUnit($property, $map, $prefix, $unit: rem) {
|
|
30
36
|
@each $value in $map {
|
|
31
37
|
// {prefix}-{value} excluding unit with escaped dot
|
|
32
38
|
$escapedValue: escapeDecimal($value);
|
|
33
|
-
$class: #{$
|
|
39
|
+
$class: #{$identifier}-#{$escapedValue}#{$suffix};
|
|
34
40
|
|
|
35
41
|
@include singlePropertyClass($class, $property, #{$value}#{$unit});
|
|
36
42
|
}
|
package/src/play.scss
CHANGED
|
@@ -1,36 +1,24 @@
|
|
|
1
|
-
// @forward "./scss/utilities/sizes";
|
|
2
|
-
// @use "../scss/base/vars_all" as *;
|
|
3
|
-
// @use "../scss/base/vars_base" as *;
|
|
4
|
-
// @use "../scss/base/vars_utility_maps" as *;
|
|
5
|
-
// @use "../scss/functions/classNaming" as *;
|
|
6
|
-
// @use "../scss/mixins/makeMagicClass" as *;
|
|
7
|
-
// @use "../scss/mixins/makeMagicGrid2Cols" as *;
|
|
8
|
-
// @use "../scss/mixins/makeMagicGridEqualWidths" as *;
|
|
9
|
-
// @use "../scss/mixins/positionUtilityClasses" as *;
|
|
10
1
|
// @use "./base/vars_base" as *;
|
|
11
2
|
// @use "./base/vars_colors" as *;
|
|
12
3
|
// @use "./color/shades" as *;
|
|
13
4
|
// @use "./color/tailwind-colors" as *;
|
|
14
5
|
// @use "./color/themes" as *;
|
|
15
6
|
// @use "./functions/colorShades" as *;
|
|
16
|
-
// @use "./mixins/basicColorScheme" as *;
|
|
17
|
-
// @use "./mixins/extendedThemeClass" as *;
|
|
18
|
-
// @use "./mixins/media" as *;
|
|
19
|
-
// @use "./mixins/responsiveClassCreators" as *;
|
|
20
7
|
// @use "./scss/components/button"as *;
|
|
21
8
|
// @use "./scss/utilities/spacing" as *;
|
|
22
9
|
// @use "./utilities/grid" as *;
|
|
10
|
+
// @use "./utilities/responsive_display_visibility";
|
|
11
|
+
// @use "./utilities/size";
|
|
23
12
|
// @use "./utilities/text" as *;
|
|
24
13
|
@use "./functions/colorFunctions" as *;
|
|
25
14
|
@use "./functions/helpers" as *;
|
|
15
|
+
@use "./mixins/extendedThemeClass" as *;
|
|
26
16
|
@use "./mixins/helpers" as *;
|
|
17
|
+
@use "./mixins/media" as *;
|
|
18
|
+
@use "./mixins/responsiveClassCreators" as *;
|
|
27
19
|
@use "./mixins/utilityClassCreators" as *;
|
|
28
20
|
@use "sass:list";
|
|
29
21
|
@use "sass:map";
|
|
30
22
|
@use "sass:string";
|
|
31
23
|
|
|
32
|
-
$x: setTextColor(transparent) !default;
|
|
33
|
-
|
|
34
|
-
@debug $x;
|
|
35
|
-
|
|
36
24
|
|
package/src/scss/_nk.scss
CHANGED
|
@@ -7,31 +7,6 @@ body {
|
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
#nk-header {
|
|
11
|
-
background: $header-bg;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// This needs to be reviewed because it is too specific and causes problems
|
|
15
|
-
// for some layouts I have removed because of the QMH site but I am not sure
|
|
16
|
-
// what else it affects
|
|
17
|
-
// #nk-header,
|
|
18
|
-
// #nk-header > .#{$container-class} {
|
|
19
|
-
// #search {
|
|
20
|
-
// display: flex;
|
|
21
|
-
// flex: 1 1 auto;
|
|
22
|
-
|
|
23
|
-
// input {
|
|
24
|
-
// width: 100%;
|
|
25
|
-
// margin-right: 4px;
|
|
26
|
-
// }
|
|
27
|
-
|
|
28
|
-
// @include to-xl {
|
|
29
|
-
// flex: 1 1 100%;
|
|
30
|
-
// order: 3;
|
|
31
|
-
// }
|
|
32
|
-
// }
|
|
33
|
-
// }
|
|
34
|
-
|
|
35
10
|
#nk-main {
|
|
36
11
|
flex: 1; // 1. allow to grow to fill height
|
|
37
12
|
background-color: $main-bg;
|
|
@@ -92,20 +67,20 @@ trix-editor {
|
|
|
92
67
|
// ==========================================================================
|
|
93
68
|
// -- Primary banner for page layouts --
|
|
94
69
|
// ==========================================================================
|
|
95
|
-
$banner-height: 450px !default;
|
|
96
|
-
$banner-bg: transparent !default;
|
|
97
|
-
$banner-text-bg: transparent !default;
|
|
98
|
-
|
|
99
|
-
.banner {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
70
|
+
// $banner-height: 450px !default;
|
|
71
|
+
// $banner-bg: transparent !default;
|
|
72
|
+
// $banner-text-bg: transparent !default;
|
|
73
|
+
|
|
74
|
+
// .banner {
|
|
75
|
+
// background-repeat: no-repeat;
|
|
76
|
+
// background-position: right center;
|
|
77
|
+
// height: $banner-height;
|
|
78
|
+
// background-color: $banner-bg;
|
|
79
|
+
|
|
80
|
+
// // banner-text is the wrapper
|
|
81
|
+
// &-text {
|
|
82
|
+
// // color: white;
|
|
83
|
+
// background-color: $banner-text-bg;
|
|
84
|
+
// padding: 1rem;
|
|
85
|
+
// }
|
|
86
|
+
// }
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
@use "../../base/vars_base" as *;
|
|
2
|
-
@use "../../mixins/media" as *;
|
|
3
|
-
@use "../../mixins/responsiveClassCreators" as *;
|
|
4
2
|
|
|
5
3
|
$visibility-utilities: (
|
|
6
4
|
"display": (
|
|
@@ -60,11 +58,3 @@ $visibility-utilities: (
|
|
|
60
58
|
|
|
61
59
|
|
|
62
60
|
|
|
63
|
-
@include makeFromBreakpoint(display, block, "block", "sm", "md", "lg", "xl", "xxl");
|
|
64
|
-
@include makeFromBreakpoint(display, none, "hide", "sm", "md", "lg", "xl", "xxl");
|
|
65
|
-
|
|
66
|
-
@include makeOnBreakpoint(display, block, "block", "sm", "md", "lg", "xl", "xxl");
|
|
67
|
-
@include makeOnBreakpoint(display, none, "hide", "sm", "md", "lg", "xl", "xxl");
|
|
68
|
-
|
|
69
|
-
@include makeToBreakpoint(display, block, "block", "sm", "md", "lg", "xl");
|
|
70
|
-
@include makeToBreakpoint(display, none, "hide", "sm", "md", "lg", "xl");
|
|
@@ -43,52 +43,6 @@ $size-utilities: (
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
// ------------------------------------------------------------------
|
|
49
|
-
// -- MAKE UTILITY SIZE CLASSES --
|
|
50
|
-
// ------------------------------------------------------------------
|
|
51
|
-
|
|
52
|
-
@mixin makeSizeUtilities($sizes, $unit: "rem") {
|
|
53
|
-
$suffix: if($unit!= "rem", $unit, "");
|
|
54
|
-
|
|
55
|
-
@each $size in $sizes {
|
|
56
|
-
// wrap size in quotes to convert to string
|
|
57
|
-
$class: "#{$size}";
|
|
58
|
-
// search and escape decimals
|
|
59
|
-
$class: strReplace($class, ".", "\\.");
|
|
60
|
-
|
|
61
|
-
.w-#{$class}#{$suffix} {
|
|
62
|
-
width: #{$size}#{$unit};
|
|
63
|
-
}
|
|
64
|
-
.h-#{$class}#{$suffix} {
|
|
65
|
-
height: #{$size}#{$unit};
|
|
66
|
-
}
|
|
67
|
-
.wh-#{$class}#{$suffix} {
|
|
68
|
-
width: #{$size}#{$unit};
|
|
69
|
-
height: #{$size}#{$unit};
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
$rem-sizes: (0, 1, 1.5, 2, 3, 4, 5, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24);
|
|
75
|
-
@include makeSizeUtilities($rem-sizes);
|
|
76
|
-
|
|
77
|
-
$pixel-sizes: (16, 24, 32, 40, 64, 100, 150, 200, 300, 400, 600);
|
|
78
|
-
@include makeSizeUtilities($pixel-sizes, "px");
|
|
79
|
-
|
|
80
|
-
// ------------------------------------------------------------------
|
|
81
|
-
// -- FRACTIONAL SIZES --
|
|
82
|
-
// ------------------------------------------------------------------
|
|
83
|
-
|
|
84
|
-
$fractional-sizes: (1\/4: 25%, 1\/3: 33.33%, 1\/2: 50%, 3\/4: 75%);
|
|
85
|
-
|
|
86
|
-
@each $key, $value in $fractional-sizes {
|
|
87
|
-
.w-#{$key} {
|
|
88
|
-
width: $value;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
46
|
$max-min-sizes: (
|
|
93
47
|
200: 200px,
|
|
94
48
|
250: 250px,
|
|
@@ -101,14 +55,6 @@ $max-min-sizes: (
|
|
|
101
55
|
"lg": $lg,
|
|
102
56
|
);
|
|
103
57
|
|
|
104
|
-
.h-1\/1 {
|
|
105
|
-
height: 100%;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.maxw-full {
|
|
109
|
-
max-width: 100%;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
58
|
@each $key, $value in $max-min-sizes {
|
|
113
59
|
.minw-#{$key} {
|
|
114
60
|
// this seems very redundant!!
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use "../base/vars_base" as *;
|
|
2
|
+
@use "../mixins/media" as *;
|
|
3
|
+
@use "../mixins/responsiveClassCreators" as *;
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
// ----------------------------------------------------------------
|
|
8
|
+
// DISPLAY AND HIDE 'FROM' THE SELECTED SCREEN SIZE
|
|
9
|
+
// ----------------------------------------------------------------
|
|
10
|
+
// Example output: .sm:block, .md:block ... .xxl:block
|
|
11
|
+
// Example output: .sm:hide, .md:hide ... .xxl:hide
|
|
12
|
+
|
|
13
|
+
@include makeFromBreakpoint(display, block, "block", "sm", "md", "lg", "xl", "xxl");
|
|
14
|
+
@include makeFromBreakpoint(display, none, "hide", "sm", "md", "lg", "xl", "xxl");
|
|
15
|
+
|
|
16
|
+
// ----------------------------------------------------------------
|
|
17
|
+
// DISPLAY AND HIDE 'ON' THE SELECTED SCREEN SIZE
|
|
18
|
+
// ----------------------------------------------------------------
|
|
19
|
+
// Example output: .on-sm:block, .on-md:block ... .on-xxl:block
|
|
20
|
+
// Example output: .on-sm:hide, .on-md:hide ... .on-xxl:hide
|
|
21
|
+
|
|
22
|
+
@include makeOnBreakpoint(display, block, "block", "sm", "md", "lg", "xl", "xxl");
|
|
23
|
+
@include makeOnBreakpoint(display, none, "hide", "sm", "md", "lg", "xl", "xxl");
|
|
24
|
+
|
|
25
|
+
// ----------------------------------------------------------------
|
|
26
|
+
// DISPLAY AND HIDE 'TO' THE SELECTED SCREEN SIZE
|
|
27
|
+
// ----------------------------------------------------------------
|
|
28
|
+
// Example output: .to-sm:block, .to-md:block ... .to-lg:block
|
|
29
|
+
// Example output: .to-sm:hide, .to-md:hide ... .to-lg:hide
|
|
30
|
+
|
|
31
|
+
@include makeToBreakpoint(display, block, "block", "sm", "md", "lg", "xl");
|
|
32
|
+
@include makeToBreakpoint(display, none, "hide", "sm", "md", "lg", "xl");
|
package/src/utilities/_size.scss
CHANGED
|
@@ -1,16 +1,55 @@
|
|
|
1
|
+
@use "../functions/helpers" as *;
|
|
1
2
|
@use "../mixins/media" as *;
|
|
3
|
+
@use "../mixins/responsiveClassCreators" as *;
|
|
4
|
+
@use "../mixins/utilityClassCreators" as *;
|
|
2
5
|
|
|
6
|
+
// ------------------------------------------------------------------
|
|
7
|
+
// -- WIDTH AND HEIGHT UTILITY CLASSES --
|
|
8
|
+
// ------------------------------------------------------------------
|
|
9
|
+
|
|
10
|
+
$rem-sizes: (0, 1, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24) !default;
|
|
11
|
+
$pixel-sizes: (100, 150, 200, 300, 400, 600) !default;
|
|
12
|
+
|
|
13
|
+
// -- HEIGHT --
|
|
14
|
+
@include unitBasedUtilityClasses(height, $rem-sizes, "h");
|
|
15
|
+
@include unitBasedUtilityClasses(height, $pixel-sizes, "h", "px");
|
|
16
|
+
// -- WIDTH --
|
|
17
|
+
@include unitBasedUtilityClasses(width, $rem-sizes, "w");
|
|
18
|
+
@include unitBasedUtilityClasses(width, $pixel-sizes, "w", "px");
|
|
3
19
|
|
|
20
|
+
// -- NK::TD --
|
|
21
|
+
// -- WIDTH & HEIGHT --
|
|
22
|
+
// this needs to be updated to work with multiple properties
|
|
23
|
+
@each $size in $rem-sizes {
|
|
24
|
+
// wrap size in quotes to convert to string
|
|
25
|
+
$class: "#{$size}";
|
|
26
|
+
// // search and escape decimals
|
|
27
|
+
$class: strReplace($class, ".", "\\.");
|
|
28
|
+
|
|
29
|
+
.wh-#{$class} {
|
|
30
|
+
width: #{$size}rem;
|
|
31
|
+
height: #{$size}rem;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
4
34
|
|
|
5
35
|
// ------------------------------------------------------------------
|
|
6
|
-
// --
|
|
36
|
+
// -- FRACTIONAL WIDTH UTILITY CLASSES --
|
|
7
37
|
// ------------------------------------------------------------------
|
|
8
38
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
width: 20rem;
|
|
39
|
+
$fractional-sizes: (1\/4: 25%, 1\/3: 33.33%, 1\/2: 50%, 3\/4: 75%) !default;
|
|
40
|
+
|
|
41
|
+
@each $key, $value in $fractional-sizes {
|
|
42
|
+
.w-#{$key} {
|
|
43
|
+
width: $value;
|
|
15
44
|
}
|
|
45
|
+
// -- RESPONSIVE --
|
|
46
|
+
@include makeFromBreakpoint(width, $value, "w-#{$key}", "sm", "md", "lg", "xl");
|
|
16
47
|
}
|
|
48
|
+
// ------------------------------------------------------------------
|
|
49
|
+
// -- RESPONSIVE SIZES --
|
|
50
|
+
// ------------------------------------------------------------------
|
|
51
|
+
|
|
52
|
+
@include makeFromBreakpoint(width, 16rem, "w-16", "sm", "md", "lg", "xl");
|
|
53
|
+
@include makeFromBreakpoint(width, 20rem, "w-20", "sm", "md", "lg", "xl");
|
|
54
|
+
// -- FULL WIDTH --
|
|
55
|
+
@include makeFromBreakpoint(width, 100%, "w-full", "sm", "md", "lg", "xl");
|
package/src/utilities/_text.scss
CHANGED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
@use "../../mixins/media" as *;
|
|
2
|
-
@use "../../base/vars_base" as *;
|
|
3
|
-
|
|
4
|
-
// $hero-background-color: $primary;
|
|
5
|
-
$hero-title-color: #eee !default;
|
|
6
|
-
$hero-subtitle-color: #eee !default;
|
|
7
|
-
$hero-gradient: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4));
|
|
8
|
-
|
|
9
|
-
.hero {
|
|
10
|
-
background-repeat: no-repeat;
|
|
11
|
-
background-position: center;
|
|
12
|
-
background-size: cover;
|
|
13
|
-
|
|
14
|
-
.title {
|
|
15
|
-
color: $hero-title-color;
|
|
16
|
-
font-size: 2.25rem;
|
|
17
|
-
|
|
18
|
-
// font size never is or will be a one size fits all! STOP changing!!!
|
|
19
|
-
@include from-md {
|
|
20
|
-
font-size: 3rem;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.hero-text {
|
|
26
|
-
.subtitle {
|
|
27
|
-
color: $hero-subtitle-color;
|
|
28
|
-
font-size: 1.5rem;
|
|
29
|
-
|
|
30
|
-
@include from-xl {
|
|
31
|
-
font-size: 2.1rem;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|