@appartmint/mint 2.7.7 → 2.7.9

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.7",
4
+ "version": "2.7.9",
5
5
  "license": "MIT",
6
6
  "description": "The front-end TS/SCSS framework of App Art Mint",
7
7
  "keywords": [
@@ -34,7 +34,6 @@ app-root {
34
34
  flex-grow: 1;
35
35
  width: 100%;
36
36
  padding: 0.25rem;
37
-
38
37
  @include fluid-padding;
39
38
 
40
39
  &+:not(#{prefix(partial-footer)}) {
@@ -36,7 +36,6 @@ body {
36
36
  }
37
37
 
38
38
  main {
39
- @include fluid-padding;
40
39
  display: flex;
41
40
  flex-direction: column;
42
41
  position: relative;
@@ -45,6 +44,7 @@ main {
45
44
  min-height: calc(100dvh - css-var(header-height));
46
45
  overflow: hidden;
47
46
  z-index: 999;
47
+ @include fluid-padding;
48
48
 
49
49
  @if (meta.type-of($root-bg-image) == 'string') {
50
50
  &::before {
@@ -17,12 +17,12 @@
17
17
  @include css-var-ref(--amplify-colors-font-hover, $amp-font-hover);
18
18
  @include css-var-ref(--amplify-colors-font-interactive, $amp-font-interactive);
19
19
  @include css-var-ref(--amplify-colors-font-primary, $amp-font-primary);
20
- @include css-var-ref(--amplify-components-fieldcontrol-color, --amplify-colors-font-primary);
21
20
  @include css-var-ref(--amplify-colors-font-secondary, $amp-font-secondary);
22
21
  @include css-var-ref(--amplify-colors-font-error, $amp-font-error);
23
22
  @include css-var-ref(--amplify-colors-font-warning, $amp-font-warning);
24
23
  @include css-var-ref(--amplify-colors-font-success, $amp-font-success);
25
24
  @include css-var-ref(--amplify-colors-font-info, $amp-font-info);
25
+ @include css-var-ref(--amplify-components-fieldcontrol-color, --amplify-colors-font-primary);
26
26
 
27
27
  @include css-var(--amplify-border-widths-small, $amp-border-width);
28
28
 
@@ -542,7 +542,9 @@ $bootstrap5: false !default;
542
542
  /// @group Mixins
543
543
  ///
544
544
  /// @example scss- break-util mixin
545
- /// @include break-util(display, flex); // -> display: flex;
545
+ /// @include break-util(display, flex); // -> & {
546
+ /// // display: flex;
547
+ /// //
546
548
  /// // &-xs {
547
549
  /// // display: none;
548
550
  /// // @include break(xs) {
@@ -568,6 +570,7 @@ $bootstrap5: false !default;
568
570
  /// // display: none;
569
571
  /// // }
570
572
  /// // }
573
+ /// // }
571
574
  ///
572
575
  /// @param {String} $prop - the property to toggle
573
576
  /// @param {Any} $val - the active value of the property
@@ -578,23 +581,25 @@ $bootstrap5: false !default;
578
581
  @error 'The break-util mixin requires a string for the $prop argument.';
579
582
  }
580
583
 
581
- #{$prop}: #{$val};
584
+ & {
585
+ #{$prop}: #{$val};
582
586
 
583
- @each $key,
584
- $width in $break {
585
- &-#{$key} {
586
- #{$prop}: #{$none};
587
+ @each $key,
588
+ $width in $break {
589
+ &-#{$key} {
590
+ #{$prop}: #{$none};
587
591
 
588
- @include break($key) {
589
- #{$prop}: #{$val};
592
+ @include break($key) {
593
+ #{$prop}: #{$val};
594
+ }
590
595
  }
591
- }
592
596
 
593
- &-to-#{$key} {
594
- #{$prop}: #{$val};
597
+ &-to-#{$key} {
598
+ #{$prop}: #{$val};
595
599
 
596
- @include break($key) {
597
- #{$prop}: #{$none};
600
+ @include break($key) {
601
+ #{$prop}: #{$none};
602
+ }
598
603
  }
599
604
  }
600
605
  }
@@ -602,6 +607,10 @@ $bootstrap5: false !default;
602
607
 
603
608
  /// Creates utility selectors for a box model property
604
609
  /// @group Mixins
610
+ ///
611
+ /// @example scss - box-util mixin
612
+ /// @include box-util(margin, 1rem, 0); // -> & {
613
+ ///
605
614
  @mixin box-util ($prop, $val) {
606
615
  @if (meta.type-of($prop) != 'string') {
607
616
  @error 'The box-util mixin requires a string for the $prop argument.';
@@ -724,13 +733,15 @@ $bootstrap5: false !default;
724
733
  /// @group Mixins
725
734
  ///
726
735
  /// @example scss - fluid mixin
727
- /// @include fluid(font-size, 480px, 1024px, 18px, 16px); // -> font-size: 16px;
736
+ /// @include fluid(font-size, 480px, 1024px, 18px, 16px); // -> & {
737
+ /// // font-size: 16px;
728
738
  /// // @media (min-width: 480px) {
729
739
  /// // font-size: calc(16px + 2 * ((100vw - 480px) / 544));
730
740
  /// // }
731
741
  /// // @media (min-width: 1024px) {
732
742
  /// // font-size: 18px;
733
743
  /// // }
744
+ /// // }
734
745
  ///
735
746
  /// @param {String} $prop - the property whose value will be fluid
736
747
  /// @param {String} $min-vw - the minimum screen width of the fluid property
@@ -757,25 +768,27 @@ $bootstrap5: false !default;
757
768
  @error 'The fluid mixin requires width and size arguments with the same units.';
758
769
  }
759
770
 
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;
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
+ }
779
792
  }
780
793
  }
781
794
  }
@@ -957,29 +970,31 @@ $bootstrap5: false !default;
957
970
  ///
958
971
  ///
959
972
  @mixin flex-util () {
960
- display: flex;
961
- align-items: center;
962
- justify-content: flex-start;
963
- flex-wrap: wrap;
964
-
965
- &#{class(center)} {
966
- justify-content: center;
967
- }
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
+ }
968
982
 
969
- &#{class(end)} {
970
- justify-content: flex-end;
971
- }
983
+ &#{class(end)} {
984
+ justify-content: flex-end;
985
+ }
972
986
 
973
- &#{class(between)} {
974
- justify-content: space-between;
975
- }
987
+ &#{class(between)} {
988
+ justify-content: space-between;
989
+ }
976
990
 
977
- &#{class(around)} {
978
- justify-content: space-around;
979
- }
991
+ &#{class(around)} {
992
+ justify-content: space-around;
993
+ }
980
994
 
981
- &#{class(even)} {
982
- justify-content: space-evenly;
995
+ &#{class(even)} {
996
+ justify-content: space-evenly;
997
+ }
983
998
  }
984
999
  }
985
1000
 
@@ -1033,21 +1048,23 @@ $transitions: (
1033
1048
  $this: map.get($animations, &);
1034
1049
  $animation: '';
1035
1050
 
1036
- @each $item in $this {
1037
- @if (list.index($this, $item) != 1) {
1038
- $animation: #{$animation},
1039
- ;
1040
- }
1051
+ & {
1052
+ @each $item in $this {
1053
+ @if (list.index($this, $item) != 1) {
1054
+ $animation: #{$animation},
1055
+ ;
1056
+ }
1041
1057
 
1042
- $animation: #{$animation}#{$item};
1043
- }
1058
+ $animation: #{$animation}#{$item};
1059
+ }
1044
1060
 
1045
- animation: $animation;
1061
+ animation: $animation;
1046
1062
 
1047
- @each $name,
1048
- $items in $animations {
1049
- &#{class($name)} {
1050
- animation: $animation;
1063
+ @each $name,
1064
+ $items in $animations {
1065
+ &#{class($name)} {
1066
+ animation: $animation;
1067
+ }
1051
1068
  }
1052
1069
  }
1053
1070
  }