@appartmint/mint 0.10.2 → 0.10.4
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/dist/css/mint.css +145 -27
- package/dist/css/mint.css.map +1 -1
- package/dist/css/mint.min.css +1 -1
- package/dist/css/mint.min.css.map +1 -1
- package/dist/js/imports/models/item.d.ts +2 -0
- package/dist/js/imports/models/item.d.ts.map +1 -1
- package/dist/js/imports/util/icon.d.ts.map +1 -1
- package/dist/js/index.js +7 -0
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.min.js +1 -1
- package/dist/js/index.min.js.map +1 -1
- package/package.json +1 -1
- package/src/scss/imports/components/_buttons.scss +42 -14
- package/src/scss/imports/components/_cards.scss +142 -141
- package/src/scss/imports/components/_header.scss +12 -11
- package/src/scss/imports/components/_image.scss +3 -7
- package/src/scss/imports/global/_animations.scss +0 -33
- package/src/scss/imports/global/_themes.scss +56 -9
- package/src/scss/imports/util/_util.scss +475 -362
- package/src/scss/imports/util/_vars.scss +8 -2
|
@@ -1,152 +1,153 @@
|
|
|
1
1
|
/// cards.scss - Card styles
|
|
2
2
|
/// @author App Art Mint LLC
|
|
3
|
-
///
|
|
3
|
+
///
|
|
4
4
|
/// @group Cards
|
|
5
5
|
@charset 'utf-8';
|
|
6
6
|
|
|
7
7
|
/// Imports
|
|
8
8
|
@use '../util' as *;
|
|
9
9
|
|
|
10
|
-
/// Variables
|
|
11
|
-
$card-shadow: $card-shadow-size #{css-var($card-shadow-color)};
|
|
12
|
-
|
|
13
10
|
/// Card Styles
|
|
14
11
|
#{class(card)} {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
height: 100%;
|
|
15
|
+
margin: 0;
|
|
16
|
+
border-radius: $card-radius;
|
|
17
|
+
box-shadow: $card-shadow-size #{css-var($card-shadow-color)};
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
|
|
20
|
+
@include break(sm) {
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
|
|
23
|
+
&#{class(reverse)} {
|
|
24
|
+
flex-direction: row-reverse;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&#{class(stagger)} {
|
|
29
|
+
position: relative;
|
|
30
|
+
|
|
31
|
+
@include break(sm) {
|
|
32
|
+
flex-direction: row-reverse;
|
|
33
|
+
border-radius: 0;
|
|
34
|
+
box-shadow: none;
|
|
35
|
+
overflow: visible;
|
|
36
|
+
|
|
37
|
+
&>#{class(image)},
|
|
38
|
+
&>mint-image #{class(image)} {
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: 0;
|
|
41
|
+
left: 0;
|
|
42
|
+
width: 50%;
|
|
43
|
+
height: calc(100% - 3rem);
|
|
44
|
+
border-radius: $card-radius;
|
|
45
|
+
box-shadow: $card-shadow-size #{css-var($card-shadow-color)};
|
|
46
|
+
|
|
47
|
+
img {
|
|
48
|
+
height: 100%;
|
|
49
|
+
object-fit: cover;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&>#{class(content)} {
|
|
54
|
+
width: calc(50% + $card-padding * 2);
|
|
55
|
+
margin-top: $card-padding * 2;
|
|
56
|
+
border-radius: $card-radius;
|
|
57
|
+
box-shadow: $card-shadow-size #{css-var($card-shadow-color)};
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&#{class(reverse)} {
|
|
62
|
+
@include break(sm) {
|
|
63
|
+
flex-direction: row;
|
|
64
|
+
|
|
65
|
+
&>#{class(image)},
|
|
66
|
+
&>mint-image #{class(image)} {
|
|
67
|
+
left: auto;
|
|
68
|
+
right: 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&>#{class(image)}:only-child,
|
|
75
|
+
&>mint-image:only-child #{class(image)} {
|
|
76
|
+
width: 100%;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&>#{class(image)},
|
|
80
|
+
&>mint-image #{class(image)} {
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
|
|
83
|
+
@include break(sm) {
|
|
84
|
+
width: 50%;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&+#{class(content)} {
|
|
88
|
+
@include break(sm) {
|
|
89
|
+
width: 50%;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
#{class(content)} {
|
|
95
|
+
display: grid;
|
|
96
|
+
gap: $grid-gap / 2;
|
|
97
|
+
padding: $card-padding;
|
|
98
|
+
background: css-var(black-2);
|
|
99
|
+
width: 100%;
|
|
100
|
+
|
|
101
|
+
&> :first-child {
|
|
102
|
+
margin-top: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&> :last-child {
|
|
106
|
+
margin-bottom: 0;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
#{class(title)} {
|
|
111
|
+
display: flex;
|
|
112
|
+
align-items: center;
|
|
113
|
+
justify-content: flex-start;
|
|
114
|
+
height: fit-content;
|
|
115
|
+
|
|
116
|
+
&:only-child {
|
|
117
|
+
height: 100%;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&>#{class(image)},
|
|
121
|
+
&>mint-image {
|
|
122
|
+
width: 100%;
|
|
123
|
+
height: 100%;
|
|
124
|
+
max-width: $card-logo-size;
|
|
125
|
+
max-height: $card-logo-size;
|
|
126
|
+
margin-right: $card-padding;
|
|
127
|
+
|
|
128
|
+
img {
|
|
129
|
+
display: block;
|
|
130
|
+
width: 100%;
|
|
131
|
+
height: 100%;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
i {
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
justify-content: center;
|
|
139
|
+
min-width: $card-logo-size;
|
|
140
|
+
max-width: $card-logo-size;
|
|
141
|
+
margin-right: $card-padding;
|
|
142
|
+
font-size: calc($card-logo-size - 1rem);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&>div {
|
|
146
|
+
width: 100%;
|
|
147
|
+
|
|
148
|
+
&>* {
|
|
149
|
+
margin: 0;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
152
153
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// styles.scss - Header styles
|
|
2
2
|
/// @author App/Art Mint
|
|
3
|
-
///
|
|
3
|
+
///
|
|
4
4
|
/// @group Main
|
|
5
5
|
@charset 'utf-8';
|
|
6
6
|
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
align-items: center;
|
|
30
30
|
flex-direction: row;
|
|
31
31
|
height: css-var(header-height);
|
|
32
|
-
padding: 0 calc(css-var(header-height) / 2);
|
|
32
|
+
//padding: 0 calc(css-var(header-height) / 2);
|
|
33
33
|
|
|
34
34
|
#{controls(wrapper)} {
|
|
35
35
|
display: inline-block;
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
overflow: hidden;
|
|
44
44
|
transition: height css-var(delay-default), margin css-var(delay-default);
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
|
|
47
47
|
&#{$has-expanded + neg(expanded(true))} {
|
|
48
48
|
& + ul {
|
|
49
49
|
margin: 0;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
top: 0;
|
|
57
57
|
left: 0;
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
|
|
60
60
|
#{id(wrapper)} {
|
|
61
61
|
background: css-var(bg);
|
|
62
62
|
transition-duration: css-var(delay-default);
|
|
@@ -109,21 +109,21 @@
|
|
|
109
109
|
background: css-var(header-bg);
|
|
110
110
|
z-index: -1;
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
|
|
113
113
|
nav {
|
|
114
114
|
& > ul {
|
|
115
115
|
display: flex;
|
|
116
116
|
flex-direction: column;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
|
|
119
|
+
|
|
120
120
|
ul {
|
|
121
121
|
list-style: none;
|
|
122
122
|
margin-top: 0;
|
|
123
123
|
margin-bottom: 1rem;
|
|
124
124
|
padding-left: 0;
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
|
|
127
127
|
a, button {
|
|
128
128
|
display: flex;
|
|
129
129
|
align-items: center;
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
color: css-var(header-fg);
|
|
134
134
|
background: css-var(trans);
|
|
135
135
|
}
|
|
136
|
-
|
|
136
|
+
|
|
137
137
|
h1 {
|
|
138
138
|
display: flex;
|
|
139
139
|
white-space: nowrap;
|
|
@@ -142,7 +142,8 @@
|
|
|
142
142
|
|
|
143
143
|
#{class(logo)} {
|
|
144
144
|
text-decoration: none;
|
|
145
|
-
|
|
145
|
+
width: auto;
|
|
146
|
+
|
|
146
147
|
img {
|
|
147
148
|
max-width: css-var(header-height);
|
|
148
149
|
}
|
|
@@ -208,7 +209,7 @@
|
|
|
208
209
|
height: calc(100vh - css-var(header-height));
|
|
209
210
|
transition: none;
|
|
210
211
|
z-index: -2;
|
|
211
|
-
|
|
212
|
+
|
|
212
213
|
&#{class(open)} {
|
|
213
214
|
top: css-var(header-height);
|
|
214
215
|
}
|
|
@@ -220,7 +221,7 @@
|
|
|
220
221
|
right: 0;
|
|
221
222
|
height: css-var(header-height);
|
|
222
223
|
}
|
|
223
|
-
|
|
224
|
+
|
|
224
225
|
#{class(dropdown)} {
|
|
225
226
|
background: css-var(header-bg);
|
|
226
227
|
|
|
@@ -7,10 +7,6 @@
|
|
|
7
7
|
/// Imports
|
|
8
8
|
@use '../util' as *;
|
|
9
9
|
|
|
10
|
-
/// Variables
|
|
11
|
-
$shadow-color: rgba(0, 0, 0, 0.4);
|
|
12
|
-
$shadow-size: 0.5rem;
|
|
13
|
-
|
|
14
10
|
/// Image styles
|
|
15
11
|
#{class(image)} {
|
|
16
12
|
&#{class(error)} {
|
|
@@ -20,9 +16,9 @@ $shadow-size: 0.5rem;
|
|
|
20
16
|
bottom: 0;
|
|
21
17
|
left: 0;
|
|
22
18
|
width: 100%;
|
|
23
|
-
padding: 0 $shadow-size $shadow-size $shadow-size;
|
|
24
|
-
background: $shadow-color;
|
|
25
|
-
box-shadow: 0 0 $shadow-size $shadow-size $shadow-color;
|
|
19
|
+
padding: 0 $image-shadow-size $image-shadow-size $image-shadow-size;
|
|
20
|
+
background: css-var($shadow-color);
|
|
21
|
+
box-shadow: 0 0 $image-shadow-size $image-shadow-size css-var($shadow-color);
|
|
26
22
|
text-align: center;
|
|
27
23
|
}
|
|
28
24
|
}
|
|
@@ -10,39 +10,6 @@
|
|
|
10
10
|
@use 'sass:list';
|
|
11
11
|
@use '../util' as *;
|
|
12
12
|
|
|
13
|
-
/// Variables
|
|
14
|
-
$animations: (());
|
|
15
|
-
$transitions: (());
|
|
16
|
-
|
|
17
|
-
/// Mixins
|
|
18
|
-
/// Register an animation
|
|
19
|
-
@mixin animation($animation) {
|
|
20
|
-
$animations: map-merge($animations, (&: map-merge(map.get($animations, &), $animation)));
|
|
21
|
-
$this: map.get($animations, &);
|
|
22
|
-
$animation: '';
|
|
23
|
-
|
|
24
|
-
& {
|
|
25
|
-
@each $item in $this {
|
|
26
|
-
@if (list.index($this, $item) != 1) {
|
|
27
|
-
$animation: #{$animation},;
|
|
28
|
-
}
|
|
29
|
-
$animation: #{$animation}#{$item};
|
|
30
|
-
}
|
|
31
|
-
animation: $animation;
|
|
32
|
-
|
|
33
|
-
@each $name, $items in $animations {
|
|
34
|
-
&#{class($name)} {
|
|
35
|
-
animation: $animation;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/// Register a transition
|
|
42
|
-
@mixin transition($transition) {
|
|
43
|
-
$transitions: map-merge($transitions, ($name: $transition));
|
|
44
|
-
}
|
|
45
|
-
|
|
46
13
|
/// Animations
|
|
47
14
|
/// Cycle through instagram colors
|
|
48
15
|
@keyframes instafade {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// themes.scss - Styles for light and dark themes
|
|
2
2
|
/// @author App/Art Mint
|
|
3
|
-
///
|
|
3
|
+
///
|
|
4
4
|
/// @group Themes
|
|
5
5
|
@charset 'utf-8';
|
|
6
6
|
|
|
@@ -15,9 +15,12 @@
|
|
|
15
15
|
@include css-var(ethereum, $ethereum);
|
|
16
16
|
@include css-var(venmo, $venmo);
|
|
17
17
|
@include css-var(facebook, $facebook);
|
|
18
|
+
@include css-var(twitter, $twitter);
|
|
18
19
|
@include css-var(youtube, $youtube);
|
|
19
|
-
@include css-var(
|
|
20
|
+
@include css-var(apple, $apple);
|
|
20
21
|
@include css-var(spotify, $spotify);
|
|
22
|
+
@include css-var(soundcloud, $soundcloud);
|
|
23
|
+
@include css-var(bandcamp, $bandcamp);
|
|
21
24
|
@include css-var(amazon-0, $amazon-0);
|
|
22
25
|
@include css-var(amazon-1, $amazon-1);
|
|
23
26
|
@include css-var(napster-0, $napster-0);
|
|
@@ -81,19 +84,63 @@
|
|
|
81
84
|
a {
|
|
82
85
|
color: css-var(brand);
|
|
83
86
|
|
|
87
|
+
.fa-instagram {
|
|
88
|
+
position: relative;
|
|
89
|
+
|
|
90
|
+
&::after {
|
|
91
|
+
content: '\f16d';
|
|
92
|
+
position: absolute;
|
|
93
|
+
top: 0;
|
|
94
|
+
left: 0;
|
|
95
|
+
opacity: 0;
|
|
96
|
+
transition: opacity css-var(delay-default);
|
|
97
|
+
|
|
98
|
+
@include background-clip(css-var(instagram-0)) {
|
|
99
|
+
/// https://codepen.io/thomasrye/pen/VaRoYv
|
|
100
|
+
background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
84
105
|
@include states(hover, focus, active) {
|
|
85
106
|
color: css-var(accent-0);
|
|
86
|
-
|
|
87
|
-
.fa-github {
|
|
88
|
-
color: css-var(white-1);
|
|
89
|
-
}
|
|
90
107
|
|
|
91
|
-
|
|
108
|
+
.fa-facebook, .fa-square-facebook {
|
|
109
|
+
color: css-var(facebook);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.fa-instagram {
|
|
113
|
+
&::after {
|
|
114
|
+
opacity: 1;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.fa-twitter {
|
|
119
|
+
color: css-var(twitter);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.fa-youtube {
|
|
92
123
|
color: css-var(youtube);
|
|
93
124
|
}
|
|
94
125
|
|
|
95
|
-
|
|
96
|
-
|
|
126
|
+
.fa-spotify {
|
|
127
|
+
color: css-var(spotify);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.fa-apple {
|
|
131
|
+
color: css-var(apple);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.fa-soundcloud {
|
|
135
|
+
color: css-var(soundcloud);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.fa-bandcamp {
|
|
139
|
+
color: css-var(bandcamp);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.fa-github {
|
|
143
|
+
color: css-var(white-1);
|
|
97
144
|
}
|
|
98
145
|
|
|
99
146
|
.fa-bitcoin {
|