@appartmint/mint 2.1.1 → 2.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appartmint/mint",
3
3
  "author": "App Art Mint LLC",
4
- "version": "2.1.1",
4
+ "version": "2.1.3",
5
5
  "license": "MIT",
6
6
  "description": "The front-end TS/SCSS framework of App Art Mint",
7
7
  "keywords": [
@@ -282,6 +282,7 @@
282
282
  gap: 1rem;
283
283
  width: auto;
284
284
  text-decoration: none;
285
+ white-space: nowrap;
285
286
 
286
287
  span {
287
288
  margin: 0;
@@ -12,18 +12,41 @@
12
12
  :root {
13
13
  #{class(landing)} {
14
14
  &.swiper {
15
- width: 100vw;
16
15
  max-width: 100vw;
17
- @include fluid(top, map.get($break, xs) * 1px, map.get($break, sm) * 1px, -4px, -16px);
18
- @include fluid(left, map.get($break, xs) * 1px, map.get($break, sm) * 1px, -4px, -16px);
19
-
16
+ @include exit-padding;
17
+
18
+ $padding-min-vw: map.get($break, $pad-min-vw) * 1px;
19
+ $padding-max-vw: map.get($break, $pad-max-vw) * 1px;
20
+ @include fluid(left, $padding-min-vw, $padding-max-vw, $pad-min-size * -1, $pad-max-size * -1);
21
+
20
22
  .swiper-slide {
21
23
  padding: 0;
22
24
  }
23
25
  }
26
+ }
27
+ }
28
+
29
+ #{class(landing)} {
30
+ #{class(video-bg)} {
31
+ align-items: center;
32
+ top: 0;
33
+ width: 100%;
34
+ margin: 0;
35
+ min-height: calc(100vh - css-var(header-height));
36
+ $padding-min-vw: map.get($break, $pad-min-vw) * 1px;
37
+ $padding-max-vw: map.get($break, $pad-max-vw) * 1px;
38
+ @include fluid(padding, $padding-min-vw, $padding-max-vw, $pad-min-size * 4, $pad-max-size * 4);
24
39
 
25
- #{class(video-bg)} {
26
- margin: 0;
40
+ iframe, video {
41
+ position: absolute;
42
+
43
+ & + * {
44
+ #{class(grid)} {
45
+ @include break(lg) {
46
+ margin-bottom: 0;
47
+ }
48
+ }
49
+ }
27
50
  }
28
51
  }
29
52
  }
@@ -14,59 +14,22 @@
14
14
  flex-direction: column;
15
15
  align-items: flex-end;
16
16
  justify-content: center;
17
+ flex-direction: row;
18
+ min-height: calc(100vh - css-var(header-height) + 10rem);
17
19
  gap: 2rem;
18
20
  position: relative;
21
+ @include exit-padding;
22
+ @include fluid-padding;
19
23
 
20
- @include break(lg) {
21
- flex-direction: row;
22
- min-height: calc(100vh - css-var(header-height));
23
- margin-bottom: 15%;
24
- }
25
-
26
- & > section {
27
- @include break(lg) {
28
- margin-bottom: -15%;
29
- }
30
- }
31
-
32
- iframe, video {
24
+ iframe, video, #{class(image)}, #{class(embed)} {
25
+ position: absolute;
26
+ top: 0;
27
+ padding: 0;
33
28
  width: 100%;
34
- height: 100%;
29
+ height: calc(100vh - css-var(header-height));
30
+ border: none;
35
31
  object-fit: cover;
36
32
  pointer-events: none;
37
-
38
- @include break(lg) {
39
- position: absolute;
40
- width: 100vw;
41
- border: none;
42
- padding: 0;
43
- }
44
-
45
- & + * {
46
- #{class(grid)} {
47
- @include break(lg) {
48
- margin-bottom: -15%;
49
- }
50
- }
51
- }
52
- }
53
-
54
- &#{class(overflow)} {
55
- overflow: hidden;
56
- margin-bottom: 0;
57
-
58
- & > section {
59
- @include break(lg) {
60
- margin-bottom: 0;
61
- }
62
- }
63
-
64
- iframe, video {
65
- top: -10%;
66
- left: -10%;
67
- width: 120%;
68
- height: 120%;
69
- }
70
33
  }
71
34
  }
72
35
  }
@@ -105,7 +105,7 @@ main {
105
105
  width: 100%;
106
106
  padding: 0.25rem;
107
107
 
108
- @include fluid(padding, map.get($break, xs) * 1px, map.get($break, sm) * 1px, 4px, 16px);
108
+ @include fluid-padding;
109
109
 
110
110
  &+:not(#{prefix(partial-footer)}) {
111
111
  height: 0;
@@ -5,5 +5,5 @@
5
5
  @charset 'utf-8';
6
6
 
7
7
  /// Imports
8
- @forward './util';
9
8
  @forward './vars';
9
+ @forward './util';
@@ -10,6 +10,7 @@
10
10
  @use 'sass:math';
11
11
  @use 'sass:meta';
12
12
  @use 'sass:string';
13
+ @use 'vars' as *;
13
14
 
14
15
  /// Library name
15
16
  /// @group Variables
@@ -746,8 +747,9 @@ $bootstrap5: false !default;
746
747
  /// @param {String} $max-vw - the maximum screen width of the fluid property
747
748
  /// @param {String} $min-size - the minimum value of the fluid property
748
749
  /// @param {String} $max-size - the maximum value of the fluid property
750
+ /// @param {String} $base - the base value of the fluid property
749
751
  /// @output the definitions for the property at different screen sizes
750
- @mixin fluid ($prop, $min-vw, $max-vw, $min-size, $max-size) {
752
+ @mixin fluid ($prop, $min-vw, $max-vw, $min-size, $max-size, $base: null) {
751
753
  $u1: math.unit($min-vw);
752
754
  $u2: math.unit($max-vw);
753
755
  $u3: math.unit($min-size);
@@ -765,8 +767,17 @@ $bootstrap5: false !default;
765
767
  @error 'The fluid mixin requires width and size arguments with the same units.';
766
768
  }
767
769
 
768
- // See if you can get rid of this wrapping & selector
769
- & {
770
+ @if ($base) {
771
+ #{$prop}: calc($base + $min-size);
772
+
773
+ @media (min-width: $min-vw) {
774
+ #{$prop}: calc($base + #{$min-size} + #{strip-unit($max-size - $min-size)} * ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)}));
775
+ }
776
+
777
+ @media (min-width: $max-vw) {
778
+ #{$prop}: calc($base + $max-size);
779
+ }
780
+ } @else {
770
781
  #{$prop}: $min-size;
771
782
 
772
783
  @media (min-width: $min-vw) {
@@ -779,6 +790,27 @@ $bootstrap5: false !default;
779
790
  }
780
791
  }
781
792
 
793
+ /// Gives a container fluid padding
794
+ /// @group Mixins
795
+ ///
796
+ ///
797
+ @mixin fluid-padding {
798
+ $padding-min-vw: map.get($break, $pad-min-vw) * 1px;
799
+ $padding-max-vw: map.get($break, $pad-max-vw) * 1px;
800
+ @include fluid(padding, $padding-min-vw, $padding-max-vw, $pad-min-size, $pad-max-size);
801
+ }
802
+
803
+ /// Negates a page's padding
804
+ /// @group Mixins
805
+ ///
806
+ ///
807
+ @mixin exit-padding {
808
+ $padding-min-vw: map.get($break, $pad-min-vw) * 1px;
809
+ $padding-max-vw: map.get($break, $pad-max-vw) * 1px;
810
+ @include fluid(top, $padding-min-vw, $padding-max-vw, $pad-min-size * -1, $pad-max-size * -1);
811
+ @include fluid(width, $padding-min-vw, $padding-max-vw, $pad-min-size * 2, $pad-max-size * 2, 100%);
812
+ }
813
+
782
814
  /// Generates css varibles for lighter, darker, or both variations
783
815
  /// @group Mixins
784
816
  ///
@@ -964,14 +996,11 @@ $bootstrap5: false !default;
964
996
  @mixin headers () {
965
997
  @for $i from 1 through 6 {
966
998
  h#{$i},
967
- #{class(h#{$i})
968
- }
969
-
970
- {
971
- @content;
999
+ #{class(h#{$i})} {
1000
+ @content;
1001
+ }
972
1002
  }
973
1003
  }
974
- }
975
1004
 
976
1005
 
977
1006
  /// Background clip text
@@ -89,6 +89,10 @@ $font-size-desktop: (
89
89
 
90
90
  /// Structure
91
91
  $grid-gap: 2rem !default;
92
+ $pad-min-vw: xs !default;
93
+ $pad-max-vw: sm !default;
94
+ $pad-min-size: 4px !default;
95
+ $pad-max-size: 16px !default;
92
96
 
93
97
  /// Outline width
94
98
  $border-width: 0.125rem !default;