@appartmint/mint 2.7.5 → 2.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appartmint/mint",
3
3
  "author": "App Art Mint LLC",
4
- "version": "2.7.5",
4
+ "version": "2.7.7",
5
5
  "license": "MIT",
6
6
  "description": "The front-end TS/SCSS framework of App Art Mint",
7
7
  "keywords": [
@@ -28,7 +28,9 @@ body {
28
28
  body {
29
29
  &#{class(fixed)} {
30
30
  main {
31
- margin-top: css-var(header-height);
31
+ min-height: 100vh;
32
+ min-height: 100dvh;
33
+ padding-top: css-var(header-height);
32
34
  }
33
35
  }
34
36
  }
@@ -53,6 +55,7 @@ main {
53
55
  width: 100%;
54
56
  height: 100%;
55
57
  background-image: url($root-bg-image);
58
+ z-index: -1;
56
59
 
57
60
  @if (meta.type-of($root-bg-size) != 'null') {
58
61
  background-size: $root-bg-size;
@@ -542,9 +542,7 @@ $bootstrap5: false !default;
542
542
  /// @group Mixins
543
543
  ///
544
544
  /// @example scss- break-util mixin
545
- /// @include break-util(display, flex); // -> & {
546
- /// // display: flex;
547
- /// //
545
+ /// @include break-util(display, flex); // -> display: flex;
548
546
  /// // &-xs {
549
547
  /// // display: none;
550
548
  /// // @include break(xs) {
@@ -570,7 +568,6 @@ $bootstrap5: false !default;
570
568
  /// // display: none;
571
569
  /// // }
572
570
  /// // }
573
- /// // }
574
571
  ///
575
572
  /// @param {String} $prop - the property to toggle
576
573
  /// @param {Any} $val - the active value of the property
@@ -581,25 +578,23 @@ $bootstrap5: false !default;
581
578
  @error 'The break-util mixin requires a string for the $prop argument.';
582
579
  }
583
580
 
584
- & {
585
- #{$prop}: #{$val};
581
+ #{$prop}: #{$val};
586
582
 
587
- @each $key,
588
- $width in $break {
589
- &-#{$key} {
590
- #{$prop}: #{$none};
583
+ @each $key,
584
+ $width in $break {
585
+ &-#{$key} {
586
+ #{$prop}: #{$none};
591
587
 
592
- @include break($key) {
593
- #{$prop}: #{$val};
594
- }
588
+ @include break($key) {
589
+ #{$prop}: #{$val};
595
590
  }
591
+ }
596
592
 
597
- &-to-#{$key} {
598
- #{$prop}: #{$val};
593
+ &-to-#{$key} {
594
+ #{$prop}: #{$val};
599
595
 
600
- @include break($key) {
601
- #{$prop}: #{$none};
602
- }
596
+ @include break($key) {
597
+ #{$prop}: #{$none};
603
598
  }
604
599
  }
605
600
  }
@@ -607,10 +602,6 @@ $bootstrap5: false !default;
607
602
 
608
603
  /// Creates utility selectors for a box model property
609
604
  /// @group Mixins
610
- ///
611
- /// @example scss - box-util mixin
612
- /// @include box-util(margin, 1rem, 0); // -> & {
613
- ///
614
605
  @mixin box-util ($prop, $val) {
615
606
  @if (meta.type-of($prop) != 'string') {
616
607
  @error 'The box-util mixin requires a string for the $prop argument.';
@@ -733,15 +724,13 @@ $bootstrap5: false !default;
733
724
  /// @group Mixins
734
725
  ///
735
726
  /// @example scss - fluid mixin
736
- /// @include fluid(font-size, 480px, 1024px, 18px, 16px); // -> & {
737
- /// // font-size: 16px;
727
+ /// @include fluid(font-size, 480px, 1024px, 18px, 16px); // -> font-size: 16px;
738
728
  /// // @media (min-width: 480px) {
739
729
  /// // font-size: calc(16px + 2 * ((100vw - 480px) / 544));
740
730
  /// // }
741
731
  /// // @media (min-width: 1024px) {
742
732
  /// // font-size: 18px;
743
733
  /// // }
744
- /// // }
745
734
  ///
746
735
  /// @param {String} $prop - the property whose value will be fluid
747
736
  /// @param {String} $min-vw - the minimum screen width of the fluid property
@@ -768,27 +757,25 @@ $bootstrap5: false !default;
768
757
  @error 'The fluid mixin requires width and size arguments with the same units.';
769
758
  }
770
759
 
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
- }
760
+ @if ($base) {
761
+ #{$prop}: calc($base + $min-size);
762
+
763
+ @media (min-width: $min-vw) {
764
+ #{$prop}: calc($base + #{$min-size} + #{strip-unit($max-size - $min-size)} * ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)}));
765
+ }
766
+
767
+ @media (min-width: $max-vw) {
768
+ #{$prop}: calc($base + $max-size);
769
+ }
770
+ } @else {
771
+ #{$prop}: $min-size;
772
+
773
+ @media (min-width: $min-vw) {
774
+ #{$prop}: calc(#{$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}: $max-size;
792
779
  }
793
780
  }
794
781
  }
@@ -970,31 +957,29 @@ $bootstrap5: false !default;
970
957
  ///
971
958
  ///
972
959
  @mixin flex-util () {
973
- & {
974
- display: flex;
975
- align-items: center;
976
- justify-content: flex-start;
977
- flex-wrap: wrap;
978
-
979
- &#{class(center)} {
980
- justify-content: center;
981
- }
960
+ display: flex;
961
+ align-items: center;
962
+ justify-content: flex-start;
963
+ flex-wrap: wrap;
982
964
 
983
- &#{class(end)} {
984
- justify-content: flex-end;
985
- }
965
+ &#{class(center)} {
966
+ justify-content: center;
967
+ }
986
968
 
987
- &#{class(between)} {
988
- justify-content: space-between;
989
- }
969
+ &#{class(end)} {
970
+ justify-content: flex-end;
971
+ }
990
972
 
991
- &#{class(around)} {
992
- justify-content: space-around;
993
- }
973
+ &#{class(between)} {
974
+ justify-content: space-between;
975
+ }
994
976
 
995
- &#{class(even)} {
996
- justify-content: space-evenly;
997
- }
977
+ &#{class(around)} {
978
+ justify-content: space-around;
979
+ }
980
+
981
+ &#{class(even)} {
982
+ justify-content: space-evenly;
998
983
  }
999
984
  }
1000
985
 
@@ -1048,23 +1033,21 @@ $transitions: (
1048
1033
  $this: map.get($animations, &);
1049
1034
  $animation: '';
1050
1035
 
1051
- & {
1052
- @each $item in $this {
1053
- @if (list.index($this, $item) != 1) {
1054
- $animation: #{$animation},
1055
- ;
1056
- }
1057
-
1058
- $animation: #{$animation}#{$item};
1036
+ @each $item in $this {
1037
+ @if (list.index($this, $item) != 1) {
1038
+ $animation: #{$animation},
1039
+ ;
1059
1040
  }
1060
1041
 
1061
- animation: $animation;
1042
+ $animation: #{$animation}#{$item};
1043
+ }
1044
+
1045
+ animation: $animation;
1062
1046
 
1063
- @each $name,
1064
- $items in $animations {
1065
- &#{class($name)} {
1066
- animation: $animation;
1067
- }
1047
+ @each $name,
1048
+ $items in $animations {
1049
+ &#{class($name)} {
1050
+ animation: $animation;
1068
1051
  }
1069
1052
  }
1070
1053
  }