@appartmint/mint 2.7.9 → 2.8.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appartmint/mint",
3
3
  "author": "App Art Mint LLC",
4
- "version": "2.7.9",
4
+ "version": "2.8.0",
5
5
  "license": "MIT",
6
6
  "description": "The front-end TS/SCSS framework of App Art Mint",
7
7
  "keywords": [
@@ -236,6 +236,8 @@ body {
236
236
  align-items: center;
237
237
  gap: 1rem;
238
238
  width: auto;
239
+ height: css-var(header-height);
240
+ padding: 0.25rem;
239
241
  text-decoration: none;
240
242
  white-space: nowrap;
241
243
 
@@ -249,8 +251,8 @@ body {
249
251
  }
250
252
 
251
253
  img {
252
- max-height: css-var(header-height);
253
254
  width: auto;
255
+ height: 100%;
254
256
  }
255
257
  }
256
258
 
@@ -15,11 +15,13 @@
15
15
  align-items: flex-end;
16
16
  justify-content: center;
17
17
  flex-direction: row;
18
- min-height: calc(100vh - css-var(header-height) + 10rem);
19
18
  gap: 2rem;
20
19
  position: relative;
21
- @include exit-padding;
22
- @include fluid-padding;
20
+ top: $pad-exit;
21
+ left: $pad-exit;
22
+ width: $pad-exit-width;
23
+ min-height: calc(100vh - css-var(header-height) + 10rem);
24
+ padding: $pad-clamp;
23
25
 
24
26
  iframe, video, #{class(image)}, #{class(embed)} {
25
27
  position: absolute;
@@ -22,7 +22,9 @@
22
22
  }
23
23
 
24
24
  #{class(landing)} {
25
- @include exit-padding;
25
+ top: $pad-exit;
26
+ left: $pad-exit;
27
+ width: $pad-exit-width;
26
28
 
27
29
  #{class(border)}, #{class(frame)} {
28
30
  border: none;
@@ -36,10 +38,8 @@
36
38
  width: 100%;
37
39
  margin: 0;
38
40
  min-height: calc(100vh - css-var(header-height));
39
- $padding-min-vw: map.get($break, $pad-min-vw) * 1px;
40
- $padding-max-vw: map.get($break, $pad-max-vw) * 1px;
41
- @include fluid(padding, $padding-min-vw, $padding-max-vw, $pad-min-size * 4, $pad-max-size * 4);
42
-
41
+ padding: $pad-clamp;
42
+
43
43
  iframe, video {
44
44
  position: absolute;
45
45
 
@@ -52,4 +52,4 @@
52
52
  }
53
53
  }
54
54
  }
55
- }
55
+ }
@@ -33,8 +33,7 @@ app-root {
33
33
  justify-content: center;
34
34
  flex-grow: 1;
35
35
  width: 100%;
36
- padding: 0.25rem;
37
- @include fluid-padding;
36
+ padding: $pad-clamp;
38
37
 
39
38
  &+:not(#{prefix(partial-footer)}) {
40
39
  height: 0;
@@ -42,9 +42,10 @@ main {
42
42
  width: 100%;
43
43
  min-height: calc(100vh - css-var(header-height));
44
44
  min-height: calc(100dvh - css-var(header-height));
45
+ padding-left: $pad-clamp;
46
+ padding-right: $pad-clamp;
45
47
  overflow: hidden;
46
48
  z-index: 999;
47
- @include fluid-padding;
48
49
 
49
50
  @if (meta.type-of($root-bg-image) == 'string') {
50
51
  &::before {
@@ -728,100 +728,13 @@ $bootstrap5: false !default;
728
728
  }
729
729
  }
730
730
 
731
-
732
- /// Generates a property with a fluid value between specified screen sizes
733
- /// @group Mixins
734
- ///
735
- /// @example scss - fluid mixin
736
- /// @include fluid(font-size, 480px, 1024px, 18px, 16px); // -> & {
737
- /// // font-size: 16px;
738
- /// // @media (min-width: 480px) {
739
- /// // font-size: calc(16px + 2 * ((100vw - 480px) / 544));
740
- /// // }
741
- /// // @media (min-width: 1024px) {
742
- /// // font-size: 18px;
743
- /// // }
744
- /// // }
745
- ///
746
- /// @param {String} $prop - the property whose value will be fluid
747
- /// @param {String} $min-vw - the minimum screen width of the fluid property
748
- /// @param {String} $max-vw - the maximum screen width of the fluid property
749
- /// @param {String} $min-size - the minimum value of the fluid property
750
- /// @param {String} $max-size - the maximum value of the fluid property
751
- /// @param {String} $base - the base value of the fluid property
752
- /// @output the definitions for the property at different screen sizes
753
- @mixin fluid ($prop, $min-vw, $max-vw, $min-size, $max-size, $base: null) {
754
- $u1: math.unit($min-vw);
755
- $u2: math.unit($max-vw);
756
- $u3: math.unit($min-size);
757
- $u4: math.unit($max-size);
758
-
759
- @if (meta.type-of($prop) !='string') {
760
- @error 'The fluid mixin requires a string for the $prop argument.';
761
- }
762
-
763
- @if not(meta.type-of($u1) == 'string' and meta.type-of($u2) == 'string' and meta.type-of($u3) == 'string' and meta.type-of($u4) == 'string') {
764
- @error 'The fluid mixin requires numbers with units for the width and size arguments.';
765
- }
766
-
767
- @if not($u1 == $u2 and $u1 == $u3 and $u1 == $u4) {
768
- @error 'The fluid mixin requires width and size arguments with the same units.';
769
- }
770
-
771
- & {
772
- @if ($base) {
773
- #{$prop}: calc($base + $min-size);
774
-
775
- @media (min-width: $min-vw) {
776
- #{$prop}: calc($base + #{$min-size} + #{strip-unit($max-size - $min-size)} * ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)}));
777
- }
778
-
779
- @media (min-width: $max-vw) {
780
- #{$prop}: calc($base + $max-size);
781
- }
782
- } @else {
783
- #{$prop}: $min-size;
784
-
785
- @media (min-width: $min-vw) {
786
- #{$prop}: calc(#{$min-size} + #{strip-unit($max-size - $min-size)} * ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)}));
787
- }
788
-
789
- @media (min-width: $max-vw) {
790
- #{$prop}: $max-size;
791
- }
792
- }
793
- }
794
- }
795
-
796
- /// Gives a container fluid padding
797
- /// @group Mixins
798
- ///
799
- ///
800
- @mixin fluid-padding {
801
- $padding-min-vw: map.get($break, $pad-min-vw) * 1px;
802
- $padding-max-vw: map.get($break, $pad-max-vw) * 1px;
803
- @include fluid(padding, $padding-min-vw, $padding-max-vw, $pad-min-size, $pad-max-size);
804
- }
805
-
806
- /// Negates a page's padding
807
- /// @group Mixins
808
- ///
809
- ///
810
- @mixin exit-padding {
811
- $padding-min-vw: map.get($break, $pad-min-vw) * 1px;
812
- $padding-max-vw: map.get($break, $pad-max-vw) * 1px;
813
- @include fluid(top, $padding-min-vw, $padding-max-vw, $pad-min-size * -1, $pad-max-size * -1);
814
- @include fluid(left, $padding-min-vw, $padding-max-vw, $pad-min-size * -1, $pad-max-size * -1);
815
- @include fluid(width, $padding-min-vw, $padding-max-vw, $pad-min-size * 2, $pad-max-size * 2, 100%);
816
- }
817
-
818
731
  /// Generates css varibles for lighter, darker, or both variations
819
732
  /// @group Mixins
820
733
  ///
821
734
  /// @param {String} $name - the name of the color
822
735
  /// @param {Color} $color - the color to generate variations for
823
736
  /// @param {String} $type - the type of variation to generate
824
- /// @param {Number} $number - the number of variations to generate
737
+ /// @param {Number} $number - the number of variations to geerate
825
738
  /// @param {String} $amount - the amount to vary the color by
826
739
  /// @param {Boolean} $alpha - whether to generate alpha variations
827
740
  /// @output css variables for different shades of the source color
@@ -831,7 +744,7 @@ $bootstrap5: false !default;
831
744
  }
832
745
 
833
746
  @if (meta.type-of($color) != 'color') {
834
- @error 'The shades mixin requires a color for the $color argument.';
747
+ @error 'The shades mixin requires a color for the $colnor argument.';
835
748
  }
836
749
 
837
750
  @if not($type == lighten or $type == darken or $type == both) {
@@ -89,10 +89,12 @@ $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
+ $pad-min: 0.25rem !default;
93
+ $pad-max: 2rem !default;
94
+ $pad-val: 1vw !default;
95
+ $pad-clamp: clamp($pad-min, $pad-val, $pad-max) !default;
96
+ $pad-exit: clamp($pad-min * -1, $pad-val * -1, $pad-max * -1) !default;
97
+ $pad-exit-width: clamp(calc(100% + $pad-min * 2), calc(100% + $pad-val * 2), calc(100% + $pad-max * 2)) !default;
96
98
 
97
99
  /// Outline width
98
100
  $border-width: 0.125rem !default;