@appartmint/mint 2.7.4 → 2.7.6

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.4",
4
+ "version": "2.7.6",
5
5
  "license": "MIT",
6
6
  "description": "The front-end TS/SCSS framework of App Art Mint",
7
7
  "keywords": [
@@ -16,6 +16,16 @@
16
16
  }
17
17
 
18
18
  /// Header Styles
19
+ body {
20
+ &#{class(fixed)} {
21
+ #{id(header)} {
22
+ position: fixed;
23
+ top: 0;
24
+ left: 0;
25
+ }
26
+ }
27
+ }
28
+
19
29
  #{id(header)} {
20
30
  position: relative;
21
31
  width: 100%;
@@ -0,0 +1,51 @@
1
+ /// Imports
2
+ @use '../util' as *;
3
+
4
+ /// Angular styles
5
+ body {
6
+ &#{class(ready)} {
7
+ app-root {
8
+ opacity: 1;
9
+ }
10
+ }
11
+ }
12
+
13
+ router-outlet {
14
+ display: none;
15
+ }
16
+
17
+ app-root {
18
+ display: block;
19
+ position: relative;
20
+ opacity: 0;
21
+ transition: opacity 750ms ease-in;
22
+ }
23
+
24
+ :root {
25
+ main {
26
+ & > router-outlet {
27
+ flex-grow: 0;
28
+
29
+ & + * {
30
+ display: flex;
31
+ flex-direction: column;
32
+ align-items: center;
33
+ justify-content: center;
34
+ flex-grow: 1;
35
+ width: 100%;
36
+ padding: 0.25rem;
37
+
38
+ @include fluid-padding;
39
+
40
+ &+:not(#{prefix(partial-footer)}) {
41
+ height: 0;
42
+ overflow: hidden;
43
+ }
44
+ }
45
+
46
+ & + #{prefix(partial-footer)} {
47
+ transform: translateY(100vh);
48
+ }
49
+ }
50
+ }
51
+ }
@@ -1,11 +1,9 @@
1
1
  /// Imports
2
- @use 'sass:map';
3
2
  @use 'sass:meta';
4
3
  @use '../util' as *;
5
4
 
6
5
  /// Global styles
7
6
  * {
8
-
9
7
  &,
10
8
  &::before,
11
9
  &::after {
@@ -29,35 +27,25 @@ body {
29
27
 
30
28
  body {
31
29
  &#{class(fixed)} {
32
- #{id(header)} {
33
- position: fixed;
34
- top: 0;
35
- left: 0;
36
- }
37
-
38
30
  main {
39
31
  min-height: 100vh;
32
+ min-height: 100dvh;
40
33
  padding-top: css-var(header-height);
41
34
  }
42
35
  }
43
-
44
- &#{class(ready)} {
45
- app-root {
46
- opacity: 1;
47
- }
48
- }
49
- }
50
-
51
- router-outlet {
52
- display: none;
53
36
  }
54
37
 
55
- app-root {
56
- display: block;
38
+ main {
39
+ @include fluid-padding;
40
+ display: flex;
41
+ flex-direction: column;
57
42
  position: relative;
58
- opacity: 0;
59
- transition: opacity 750ms ease-in;
60
-
43
+ width: 100%;
44
+ min-height: calc(100vh - css-var(header-height));
45
+ min-height: calc(100dvh - css-var(header-height));
46
+ overflow: hidden;
47
+ z-index: 999;
48
+
61
49
  @if (meta.type-of($root-bg-image) == 'string') {
62
50
  &::before {
63
51
  content: '';
@@ -67,6 +55,7 @@ app-root {
67
55
  width: 100%;
68
56
  height: 100%;
69
57
  background-image: url($root-bg-image);
58
+ z-index: -1;
70
59
 
71
60
  @if (meta.type-of($root-bg-size) != 'null') {
72
61
  background-size: $root-bg-size;
@@ -83,47 +72,6 @@ app-root {
83
72
  }
84
73
  }
85
74
 
86
- main {
87
- display: flex;
88
- flex-direction: column;
89
- position: relative;
90
- width: 100%;
91
- min-height: calc(100vh - css-var(header-height));
92
- overflow: hidden;
93
- z-index: 999;
94
-
95
- &>router-outlet {
96
- flex-grow: 0;
97
- }
98
- }
99
-
100
- :root {
101
- main {
102
- & > router-outlet {
103
- & + * {
104
- display: flex;
105
- flex-direction: column;
106
- align-items: center;
107
- justify-content: center;
108
- flex-grow: 1;
109
- width: 100%;
110
- padding: 0.25rem;
111
-
112
- @include fluid-padding;
113
-
114
- &+:not(#{prefix(partial-footer)}) {
115
- height: 0;
116
- overflow: hidden;
117
- }
118
- }
119
-
120
- & + #{prefix(partial-footer)} {
121
- transform: translateY(100vh);
122
- }
123
- }
124
- }
125
- }
126
-
127
75
  nav {
128
76
  a {
129
77
  display: block;
@@ -143,7 +91,6 @@ nav {
143
91
  }
144
92
 
145
93
  a {
146
-
147
94
  &[href^='mailto:'],
148
95
  &[href^='tel:'],
149
96
  &[href^='sms:'] {
@@ -215,4 +162,4 @@ iframe {
215
162
  list-style: none;
216
163
  margin: 0;
217
164
  padding: 0;
218
- }
165
+ }
@@ -1,4 +1,5 @@
1
1
  /// Forward all global styles
2
+ @use './angular';
2
3
  @use './animations';
3
4
  @use './aspect';
4
5
  @use './flex';