@appartmint/mint 2.0.2 → 2.1.1

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.0.2",
4
+ "version": "2.1.1",
5
5
  "license": "MIT",
6
6
  "description": "The front-end TS/SCSS framework of App Art Mint",
7
7
  "keywords": [
@@ -269,14 +269,6 @@
269
269
  }
270
270
  }
271
271
 
272
- h1 {
273
- display: flex;
274
- white-space: nowrap;
275
- align-items: center;
276
- gap: 1rem;
277
- margin: 0;
278
- }
279
-
280
272
  #{id(navbar)} {
281
273
  display: flex;
282
274
  align-items: center;
@@ -287,9 +279,14 @@
287
279
  #{class(logo)} {
288
280
  display: flex;
289
281
  align-items: center;
282
+ gap: 1rem;
290
283
  width: auto;
291
284
  text-decoration: none;
292
285
 
286
+ span {
287
+ margin: 0;
288
+ }
289
+
293
290
  img {
294
291
  max-height: css-var(header-height);
295
292
  width: auto;
@@ -8,9 +8,10 @@
8
8
  @use './backgrounds';
9
9
  @use './buttons';
10
10
  @use './cards';
11
- @use './embed';
12
11
  @use './footer';
13
12
  @use './header';
14
13
  @use './image';
14
+ @use './landing';
15
15
  @use './recaptcha';
16
16
  @use './tables';
17
+ @use './video';
@@ -0,0 +1,29 @@
1
+ /// _landing.scss - Landing styles
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Components
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @use 'sass:map';
9
+ @use '../util' as *;
10
+
11
+ /// Landing Styles
12
+ :root {
13
+ #{class(landing)} {
14
+ &.swiper {
15
+ width: 100vw;
16
+ 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
+
20
+ .swiper-slide {
21
+ padding: 0;
22
+ }
23
+ }
24
+
25
+ #{class(video-bg)} {
26
+ margin: 0;
27
+ }
28
+ }
29
+ }
@@ -1,14 +1,14 @@
1
- /// _embed.scss - Embed styles
1
+ /// _video.scss - Video styles
2
2
  /// @author App Art Mint LLC
3
3
  ///
4
- /// @group Embed
4
+ /// @group Video
5
5
  @charset 'utf-8';
6
6
 
7
7
  /// Imports
8
8
  @use '../util' as *;
9
9
 
10
- /// Embed Styles
11
- #{class(embed)} {
10
+ /// Video Styles
11
+ #{class(video)} {
12
12
  &-bg {
13
13
  display: flex;
14
14
  flex-direction: column;
@@ -19,7 +19,7 @@
19
19
 
20
20
  @include break(lg) {
21
21
  flex-direction: row;
22
- min-height: 100vh;
22
+ min-height: calc(100vh - css-var(header-height));
23
23
  margin-bottom: 15%;
24
24
  }
25
25
 
@@ -30,8 +30,6 @@
30
30
  }
31
31
 
32
32
  iframe, video {
33
- top: 0;
34
- left: 0;
35
33
  width: 100%;
36
34
  height: 100%;
37
35
  object-fit: cover;
@@ -39,7 +37,6 @@
39
37
 
40
38
  @include break(lg) {
41
39
  position: absolute;
42
- left: -1rem;
43
40
  width: 100vw;
44
41
  border: none;
45
42
  padding: 0;
@@ -11,16 +11,43 @@
11
11
  @use '../util' as *;
12
12
 
13
13
  /// Animations
14
- /// Cycle through instagram colors
15
- @keyframes instafade {
16
- @for $i from 0 through 6 {
17
- $percent: math.percentage(math.div($i, 6));
18
- #{$percent} {
19
- color: css-var(instagram-#{$i});
20
- }
21
- }
14
+ @keyframes #{prefix(stretch-in)} {
15
+ 0% {
16
+ transform: scale(1);
17
+ }
18
+
19
+ 50% {
20
+ transform: scale(1.25);
21
+ }
22
+
23
+ 70% {
24
+ transform: scale(1.15);
25
+ }
26
+
27
+ 100% {
28
+ transform: scale(1.2);
29
+ }
30
+ }
31
+
32
+ @keyframes #{prefix(stretch-out)} {
33
+ 0% {
34
+ transform: scale(1.2);
35
+ }
36
+
37
+ 25% {
38
+ transform: scale(0.9);
39
+ }
40
+
41
+ 50% {
42
+ transform: scale(1.05);
43
+ }
44
+
45
+ 100% {
46
+ transform: scale(1);
47
+ }
22
48
  }
23
49
 
50
+
24
51
  /// CSS variables
25
52
  :root {
26
53
  @include css-var(delay-instant, delay(instant));
@@ -31,6 +58,8 @@
31
58
  @include css-var(delay-slow, delay(slow));
32
59
  }
33
60
 
61
+
62
+ /// Animation classes
34
63
  #{class(fall-in)} {
35
64
  filter: opacity(0%);
36
65
  transform: translateY(-100px);
@@ -77,3 +106,34 @@
77
106
  transition: transform delay(med-fast) ease-out;
78
107
  }
79
108
  }
109
+
110
+ #{class(stretch)} {
111
+ animation: #{prefix(stretch-out)} 0.5s ease forwards;
112
+ @include states(hover, focus) {
113
+ animation: #{prefix(stretch-in)} 0.75s ease forwards;
114
+ }
115
+
116
+ &-img {
117
+ img {
118
+ animation: #{prefix(stretch-out)} 0.5s ease forwards;
119
+ }
120
+
121
+ @include states(hover, focus) {
122
+ img {
123
+ animation: #{prefix(stretch-in)} 0.75s ease forwards;
124
+ }
125
+ }
126
+ }
127
+
128
+ &-icon {
129
+ i {
130
+ animation: #{prefix(stretch-out)} 0.5s ease forwards;
131
+ }
132
+
133
+ @include states(hover, focus) {
134
+ i {
135
+ animation: #{prefix(stretch-in)} 0.75s ease forwards;
136
+ }
137
+ }
138
+ }
139
+ }