@appartmint/mint 1.3.0 → 1.3.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.
Files changed (34) hide show
  1. package/package.json +2 -2
  2. package/src/scss/imports/_index.scss +10 -0
  3. package/src/scss/imports/components/_backgrounds.scss +38 -0
  4. package/src/scss/imports/components/_buttons.scss +243 -0
  5. package/src/scss/imports/components/_cards.scss +259 -0
  6. package/src/scss/imports/components/_embed.scss +75 -0
  7. package/src/scss/imports/components/_footer.scss +134 -0
  8. package/src/scss/imports/components/_header.scss +512 -0
  9. package/src/scss/imports/components/_image.scss +37 -0
  10. package/src/scss/imports/components/_index.scss +16 -0
  11. package/src/scss/imports/components/_recaptcha.scss +17 -0
  12. package/src/scss/imports/components/_tables.scss +29 -0
  13. package/src/scss/imports/global/_animations.scss +79 -0
  14. package/src/scss/imports/global/_aspect.scss +54 -0
  15. package/src/scss/imports/global/_flex.scss +7 -0
  16. package/src/scss/imports/global/_global.scss +208 -0
  17. package/src/scss/imports/global/_grid.scss +153 -0
  18. package/src/scss/imports/global/_icons.scss +6 -0
  19. package/src/scss/imports/global/_index.scss +12 -0
  20. package/src/scss/imports/global/_inputs.scss +135 -0
  21. package/src/scss/imports/global/_structure.scss +89 -0
  22. package/src/scss/imports/global/_text.scss +62 -0
  23. package/src/scss/imports/global/_texture.scss +124 -0
  24. package/src/scss/imports/global/_themes.scss +174 -0
  25. package/src/scss/imports/overrides/_amplify.scss +48 -0
  26. package/src/scss/imports/overrides/_full-calendar.scss +46 -0
  27. package/src/scss/imports/overrides/_index.scss +11 -0
  28. package/src/scss/imports/overrides/_material.scss +24 -0
  29. package/src/scss/imports/overrides/_swiper.scss +55 -0
  30. package/src/scss/imports/util/_index.scss +9 -0
  31. package/src/scss/imports/util/_util.scss +1034 -0
  32. package/src/scss/imports/util/_vars.scss +262 -0
  33. package/src/scss/mint.scss +7 -0
  34. package/src/scss/noscript.scss +14 -0
@@ -0,0 +1,89 @@
1
+ /// Imports
2
+ @use 'sass:map';
3
+ @use '../util' as *;
4
+
5
+ /// Structure styles
6
+ #{class(pad)} {
7
+ @include box-util(padding, 1rem);
8
+ @include break-util(padding, 0.5rem, 0);
9
+
10
+ @include break(xs) {
11
+ @include break-util(padding, 1rem, 0);
12
+ }
13
+ }
14
+
15
+ #{class(margin)} {
16
+ @include box-util(margin, 1rem);
17
+ @include break-util(margin, 0.5rem, 0);
18
+
19
+ @include break(xs) {
20
+ @include break-util(margin, 1rem, 0);
21
+ }
22
+ }
23
+
24
+ #{class(hide)} {
25
+ @include break-util(display, initial, none);
26
+ }
27
+
28
+ #{class(max)} {
29
+ @each $size in map.keys($break) {
30
+ &-#{$size} {
31
+ width: 100%;
32
+ max-width: break($size);
33
+
34
+ &:not(#{class(left)}) {
35
+ margin-left: auto;
36
+ }
37
+
38
+ &:not(#{class(right)}) {
39
+ margin-right: auto;
40
+ }
41
+ }
42
+ }
43
+ }
44
+
45
+ #{class(center)} {
46
+ align-items: center;
47
+ justify-content: center;
48
+ text-align: center;
49
+
50
+ &-down {
51
+
52
+ &,
53
+ & * {
54
+ align-items: center;
55
+ justify-content: center;
56
+ text-align: center;
57
+ }
58
+ }
59
+ }
60
+
61
+ #{class(fit)} {
62
+ width: fit-content;
63
+ height: fit-content;
64
+
65
+ &:not(#{class(left)}) {
66
+ margin-left: auto;
67
+ }
68
+
69
+ &:not(#{class(right)}) {
70
+ margin-right: auto;
71
+ }
72
+ }
73
+
74
+ #{class(left)} {
75
+ float: left;
76
+ }
77
+
78
+ #{class(right)} {
79
+ float: right;
80
+ }
81
+
82
+ #{class(full-page)} {
83
+ display: flex;
84
+ flex-direction: column;
85
+ align-items: center;
86
+ justify-content: center;
87
+ min-height: calc(100vh - css-var(header-height));
88
+ min-height: calc(100dvh - css-var(header-height));
89
+ }
@@ -0,0 +1,62 @@
1
+ /// text.scss - Text styles
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Text
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @use '../util' as *;
9
+
10
+ /// Text Styles
11
+ html, body {
12
+ font-family: $font-primary, $font-backups;
13
+ font-size: 1rem;
14
+
15
+ @include break(md) {
16
+ font-size: 1.125rem;
17
+ }
18
+ }
19
+
20
+ p {
21
+ line-height: $font-height;
22
+ }
23
+
24
+ @include headers () {
25
+ font-family: $font-secondary, $font-secondary-backups;
26
+ line-height: 1;
27
+
28
+ &:first-child {
29
+ margin-top: 0;
30
+ }
31
+
32
+ &:last-child {
33
+ margin-bottom: 0;
34
+ }
35
+ }
36
+
37
+ @each $tag in map-keys($font-size-mobile) {
38
+ #{$tag}, #{class($tag)} {
39
+ margin: 1rem 0;
40
+ font-size: min(map-get($font-size-tiny, $tag), map-get($font-size-mobile, $tag));
41
+
42
+ @include break(xs) {
43
+ font-size: map-get($font-size-mobile, $tag);
44
+ }
45
+
46
+ @include break(md) {
47
+ font-size: map-get($font-size-desktop, $tag);
48
+ }
49
+ }
50
+ }
51
+
52
+ #{class(upper)} {
53
+ text-transform: uppercase;
54
+ }
55
+
56
+ #{class(disclaim)} {
57
+ font-size: 0.875rem;
58
+
59
+ @include break-max(xs) {
60
+ text-align: center;
61
+ }
62
+ }
@@ -0,0 +1,124 @@
1
+ /// _texture.scss - Texture styles
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Texture
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @use 'sass:math';
9
+ @use '../util' as *;
10
+
11
+ /// Texture Mixin
12
+ @mixin mint-texture () {
13
+ position: relative;
14
+
15
+ &::before, &::after {
16
+ content: '';
17
+ position: absolute;
18
+ top: 0;
19
+ left: 0;
20
+ width: 100%;
21
+ height: 100%;
22
+ pointer-events: none;
23
+ }
24
+
25
+ &::before {
26
+ opacity: $texture-opacity;
27
+ background-image: url($texture-bg);
28
+ background-size: $texture-bg-size;
29
+ background-position: $texture-bg-position;
30
+ @if ($texture-blend) {
31
+ mix-blend-mode: $texture-blend;
32
+ }
33
+ @if ($texture-filter) {
34
+ filter: $texture-filter;
35
+ }
36
+ }
37
+
38
+ &::after {
39
+ opacity: $texture-alt-opacity;
40
+ background-size: $texture-alt-bg-size;
41
+ background-position: $texture-alt-bg-position;
42
+ mask-image: $texture-alt-mask;
43
+ @if ($texture-alt-blend) {
44
+ mix-blend-mode: $texture-alt-blend;
45
+ }
46
+ z-index: 1;
47
+ }
48
+
49
+ & > * {
50
+ position: relative;
51
+ z-index: 10;
52
+ }
53
+ }
54
+
55
+ /// Border Mixin
56
+ @mixin mint-border () {
57
+ padding: math.div($texture-padding, 2) + $texture-border-width;
58
+ border-image-source: url($texture-border-image);
59
+ border-image-slice: $texture-border-slice;
60
+ border-image-repeat: #{$texture-border-repeat};
61
+ border-image-width: $texture-border-width;
62
+ border-style: $texture-border-type;
63
+
64
+ @include break(sm) {
65
+ padding: $texture-padding + $texture-border-width;
66
+ }
67
+ }
68
+
69
+ /// Texture Styles
70
+ #{class(texture)} {
71
+ @if $texture-bg {
72
+ @include mint-texture();
73
+ }
74
+ }
75
+
76
+ /// Border Styles
77
+ #{class(border)} {
78
+ @extend #{class(texture)};
79
+ @if $texture-border-image {
80
+ @include mint-border();
81
+ } @else if $texture-border-color {
82
+ border: $texture-border-width $texture-border-type css-var($texture-border-color);
83
+ }
84
+ }
85
+
86
+ #{class(frame)} {
87
+ height: fit-content;
88
+ background-color: css-var($card-bg-color);
89
+
90
+ @extend #{class(border)};
91
+ @if $texture-border-image {
92
+ padding: $texture-border-width;
93
+ } @else if $texture-border-color {
94
+ padding: 0;
95
+ }
96
+ }
97
+
98
+ #{class(card)} {
99
+ #{class(content)} {
100
+ @extend #{class(border)};
101
+ }
102
+ }
103
+
104
+ /// Alt Texture Styles
105
+ @if $texture-alt-bg and $texture-alt-num {
106
+ @for $num from 1 through $texture-alt-num {
107
+ #{class(texture-#{$num})} {
108
+ #{class(content)} {
109
+ &::after {
110
+ background-image: url('#{$texture-alt-bg}#{$num}.jpg');
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
116
+
117
+ /// Overlay texture
118
+ #{class(overlay)} {
119
+ #{class(border)}, #{class(texture)} {
120
+ &::before {
121
+ z-index: 100;
122
+ }
123
+ }
124
+ }
@@ -0,0 +1,174 @@
1
+ /// _themes.scss - Styles for light and dark themes
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Themes
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @use '../util' as *;
9
+
10
+ /// Global theme
11
+ :root {
12
+ /// Global Colors
13
+ /// Brands
14
+ @include css-var(bitcoin, $bitcoin);
15
+ @include css-var(ethereum, $ethereum);
16
+ @include css-var(venmo, $venmo);
17
+ @include css-var(facebook, $facebook);
18
+ @include css-var(twitter, $twitter);
19
+ @include css-var(youtube, $youtube);
20
+ @include css-var(apple, $apple);
21
+ @include css-var(apple-music, $apple-music);
22
+ @include css-var(spotify, $spotify);
23
+ @include css-var(soundcloud, $soundcloud);
24
+ @include css-var(bandcamp, $bandcamp);
25
+ @include css-var(amazon-0, $amazon-0);
26
+ @include css-var(amazon-1, $amazon-1);
27
+ @include css-var(napster-0, $napster-0);
28
+ @include css-var(napster-1, $napster-1);
29
+ @include css-var(google-play-0, $google-play-0);
30
+ @include css-var(google-play-1, $google-play-1);
31
+ @include css-var(google-play-2, $google-play-2);
32
+ @include css-var(instagram-0, $instagram-0);
33
+ @include css-var(instagram-1, $instagram-1);
34
+ @include css-var(instagram-2, $instagram-2);
35
+ @include css-var(instagram-3, $instagram-3);
36
+ @include css-var(instagram-4, $instagram-4);
37
+ @include css-var(instagram-5, $instagram-5);
38
+ @include css-var(instagram-6, $instagram-6);
39
+
40
+ /// Application Colors
41
+ @include shades('black', $black, lighten);
42
+ @include shades('white', $white, darken);
43
+ @include shades(glow, $trans-light, darken, 7, 10%, true);
44
+ @include shades(shadow, $trans-dark, darken, 7, 10%, true);
45
+
46
+ @include shades(brand, $brand);
47
+ @include shades(accent, $accent);
48
+ @include shades(success, $success);
49
+ @include shades(danger, $danger);
50
+ @include shades(warning, $warning);
51
+ @include shades(info, $info);
52
+ }
53
+
54
+ /// Light theme
55
+ @mixin light-theme {
56
+ @include css-var(fore, $fore);
57
+ @include css-var(back, $back);
58
+ }
59
+
60
+ /// Dark theme
61
+ @mixin dark-theme {
62
+ @include css-var(fore, $back);
63
+ @include css-var(back, $fore);
64
+ }
65
+
66
+ /// Apply themes
67
+ :root {
68
+ @if ($theme-default ==light) {
69
+ @include light-theme;
70
+ }
71
+
72
+ @else {
73
+ @include dark-theme;
74
+ }
75
+ }
76
+
77
+ #{class(dark)} {
78
+ @include dark-theme;
79
+ color: css-var(fore);
80
+ }
81
+
82
+ #{class(light)} {
83
+ @include light-theme;
84
+ color: css-var(fore);
85
+ }
86
+
87
+ #{class(success)} {
88
+ background-color: css-var(success-2);
89
+ border-color: css-var(success-4);
90
+ }
91
+
92
+ #{class(danger)} {
93
+ color: css-var(danger);
94
+ }
95
+
96
+ a {
97
+ color: css-var($link-color);
98
+ transition-duration: css-var(delay-default);
99
+ transition-property: color, background-color;
100
+
101
+ .fa-instagram {
102
+ position: relative;
103
+
104
+ &::after {
105
+ content: '\f16d';
106
+ position: absolute;
107
+ top: 50%;
108
+ left: 50%;
109
+ transform: translate(-50%, -50%);
110
+ opacity: 0;
111
+ transition: opacity css-var(delay-default);
112
+
113
+ @include background-clip(css-var(instagram-0)) {
114
+ /// https://codepen.io/thomasrye/pen/VaRoYv
115
+ background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
116
+ }
117
+ }
118
+ }
119
+
120
+ @include states(hover, focus, active) {
121
+ color: css-var($link-color-hover);
122
+
123
+ .fa-facebook,
124
+ .fa-square-facebook {
125
+ color: css-var(facebook);
126
+ }
127
+
128
+ .fa-instagram {
129
+ &::after {
130
+ opacity: 1;
131
+ }
132
+ }
133
+
134
+ .fa-twitter {
135
+ color: css-var(twitter);
136
+ }
137
+
138
+ .fa-youtube {
139
+ color: css-var(youtube);
140
+ }
141
+
142
+ .fa-spotify {
143
+ color: css-var(spotify);
144
+ }
145
+
146
+ .fa-apple {
147
+ color: css-var(apple-music);
148
+ }
149
+
150
+ .fa-soundcloud {
151
+ color: css-var(soundcloud);
152
+ }
153
+
154
+ .fa-bandcamp {
155
+ color: css-var(bandcamp);
156
+ }
157
+
158
+ .fa-github {
159
+ color: css-var(white-1);
160
+ }
161
+
162
+ .fa-bitcoin {
163
+ color: css-var(bitcoin);
164
+ }
165
+
166
+ .fa-ethereum {
167
+ color: css-var(ethereum);
168
+ }
169
+
170
+ .fa-vimeo {
171
+ color: css-var(venmo);
172
+ }
173
+ }
174
+ }
@@ -0,0 +1,48 @@
1
+ /// _amplify.scss - Amplify styles
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Overrides
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @use '../util' as *;
9
+ @use '../components/buttons';
10
+ @use '../components/cards';
11
+
12
+ /// Amplify Styles
13
+ :root:root {
14
+ @include css-var-ref(--amplify-colors-background-error, $amp-background-error);
15
+ @include css-var-ref(--amplify-colors-border-primary, $amp-border-primary);
16
+ @include css-var-ref(--amplify-colors-border-focus, $amp-border-focus);
17
+ @include css-var-ref(--amplify-colors-font-hover, $amp-font-hover);
18
+ @include css-var-ref(--amplify-colors-font-interactive, $amp-font-interactive);
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
+ @include css-var-ref(--amplify-colors-font-secondary, $amp-font-secondary);
22
+ @include css-var-ref(--amplify-colors-font-error, $amp-font-error);
23
+ @include css-var-ref(--amplify-colors-font-warning, $amp-font-warning);
24
+ @include css-var-ref(--amplify-colors-font-success, $amp-font-success);
25
+ @include css-var-ref(--amplify-colors-font-info, $amp-font-info);
26
+
27
+ @include css-var(--amplify-border-widths-small, $amp-border-width);
28
+
29
+ [data-amplify-authenticator] {
30
+ [data-amplify-container] {
31
+ @extend #{class(card)};
32
+
33
+ [data-amplify-router] {
34
+ @extend #{class(content)};
35
+ border: none;
36
+ }
37
+ }
38
+ }
39
+
40
+ [amplify-button] {
41
+ @extend #{class(btn)};
42
+ margin: auto;
43
+ }
44
+
45
+ .amplify-icon {
46
+ display: block;
47
+ }
48
+ }
@@ -0,0 +1,46 @@
1
+ /// _amplify.scss - Amplify styles
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Overrides
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @use '../util' as *;
9
+
10
+ /// FullCalendar Styles
11
+ .fc {
12
+ --fc-page-bg-color: #{css-var(brand-6)};
13
+ .fc-toolbar {
14
+ flex-wrap: wrap;
15
+ justify-content: space-around;
16
+ gap: 1rem;
17
+
18
+ &-title {
19
+ @include break-max(sm) {
20
+ font-size: 1.25rem;
21
+ }
22
+ }
23
+ }
24
+ .fc-timegrid {
25
+ &-divider {
26
+ padding: 0;
27
+ }
28
+ &-slot-minor {
29
+ border-top-style: groove;
30
+ }
31
+ }
32
+ .fc-list-table {
33
+ --fc-list-event-hover-bg-color: #{css-var(brand-4)};
34
+
35
+ @include break-max(sm) {
36
+ word-break: normal;
37
+ }
38
+
39
+ .fc-list-event-time {
40
+ @include break-max(xs) {
41
+ white-space: normal;
42
+
43
+ }
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,11 @@
1
+ /// _index.scss - Forward all overrides
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Index
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @use './amplify';
9
+ @use './full-calendar';
10
+ @use './material';
11
+ @use './swiper';
@@ -0,0 +1,24 @@
1
+ /// _material.scss - Material styles
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Overrides
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @use '../util' as *;
9
+
10
+ /// Material Styles
11
+ :root:root {
12
+ @include css-var(--mat-table-background-color, $mat-table-bg);
13
+ @include css-var(--mat-paginator-container-background-color, $mat-table-bg);
14
+ @include css-var(--mat-table-row-item-label-text-color, $mat-table-fore);
15
+ @include css-var(--mat-table-header-headline-color, $mat-table-fore);
16
+ @include css-var(--mat-table-header-subheadline-color, $mat-table-fore);
17
+ @include css-var(--mat-paginator-container-text-color, $mat-table-fore);
18
+ }
19
+
20
+ .cdk-overlay-container {
21
+ .mat-mdc-select-panel {
22
+ background: css-var($mat-select-bg);
23
+ }
24
+ }
@@ -0,0 +1,55 @@
1
+ /// _swiper.scss - Swiper styles
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Overrides
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @use '../util' as *;
9
+
10
+ /// Variables
11
+ $arrows-offset: 1rem;
12
+ $arrows-size: 2rem;
13
+
14
+ /// Swiper Styles
15
+ :root {
16
+ @include css-var-ref(--swiper-navigation-color, fore);
17
+ @include css-var-ref(--swiper-pagination-color, brand);
18
+ @include css-var(--swiper-navigation-size, $arrows-size);
19
+
20
+ .swiper {
21
+ max-width: 100%;
22
+
23
+ @include break(xs) {
24
+ @include css-var(--swiper-navigation-sides-offset, $arrows-offset);
25
+ }
26
+
27
+ &-slide {
28
+ @include break(xs) {
29
+ padding: $arrows-offset + $arrows-size;
30
+ }
31
+ }
32
+
33
+ &-button {
34
+ &-prev,
35
+ &-next {
36
+ &::after {
37
+ font-family: "Font Awesome 6 Pro";
38
+ font-weight: 900;
39
+ }
40
+ }
41
+
42
+ &-prev {
43
+ &::after {
44
+ content: '\f053';
45
+ }
46
+ }
47
+
48
+ &-next {
49
+ &::after {
50
+ content: '\f054';
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,9 @@
1
+ /// _index.scss - Forward all overrides
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Index
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @forward './util';
9
+ @forward './vars';