@appartmint/mint 0.9.2 → 0.9.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.
@@ -8,18 +8,16 @@
8
8
  @use '../util' as *;
9
9
 
10
10
  /// Variables
11
- $border-radius: 1rem;
12
- $padding: 1.5rem;
13
- $box-shadow: 0 0 2rem -0.5rem #{css-var(glow-2)};
14
- $logo-size: 4rem;
11
+ $card-shadow: $card-shadow-size #{css-var($card-shadow-color)};
15
12
 
16
13
  /// Card Styles
17
14
  #{class(card)} {
18
15
  display: flex;
19
16
  flex-direction: column;
20
- margin: $padding * 2 0;
21
- border-radius: $border-radius;
22
- box-shadow: $box-shadow;
17
+ height: 100%;
18
+ margin: 0;
19
+ border-radius: $card-radius;
20
+ box-shadow: $card-shadow;
23
21
  overflow: hidden;
24
22
 
25
23
  @include break(sm) {
@@ -46,8 +44,8 @@ $logo-size: 4rem;
46
44
  left: 0;
47
45
  width: 50%;
48
46
  height: calc(100% - 3rem);
49
- border-radius: $border-radius;
50
- box-shadow: $box-shadow;
47
+ border-radius: $card-radius;
48
+ box-shadow: $card-shadow;
51
49
 
52
50
  img {
53
51
  height: 100%;
@@ -56,10 +54,10 @@ $logo-size: 4rem;
56
54
  }
57
55
 
58
56
  & > #{class(content)} {
59
- width: calc(50% + $padding * 2);
60
- margin-top: $padding * 2;
61
- border-radius: $border-radius;
62
- box-shadow: $box-shadow;
57
+ width: calc(50% + $card-padding * 2);
58
+ margin-top: $card-padding * 2;
59
+ border-radius: $card-radius;
60
+ box-shadow: $card-shadow;
63
61
  }
64
62
  }
65
63
 
@@ -88,15 +86,18 @@ $logo-size: 4rem;
88
86
  @include break(sm) {
89
87
  width: 50%;
90
88
  }
89
+
90
+ & + #{class(content)} {
91
+ @include break(sm) {
92
+ width: 50%;
93
+ }
94
+ }
91
95
  }
92
96
 
93
97
  #{class(content)} {
94
- padding: $padding;
98
+ padding: $card-padding;
95
99
  background: css-var(black-2);
96
-
97
- @include break(sm) {
98
- width: 50%;
99
- }
100
+ width: 100%;
100
101
 
101
102
  :first-child {
102
103
  margin-top: 0;
@@ -105,33 +106,44 @@ $logo-size: 4rem;
105
106
  :last-child {
106
107
  margin-bottom: 0;
107
108
  }
109
+ }
108
110
 
109
- #{class(title)} {
110
- display: flex;
111
- align-items: center;
112
- justify-content: flex-start;
113
-
114
- & > #{class(image)},
115
- & > mint-image {
111
+ #{class(title)} {
112
+ display: flex;
113
+ align-items: center;
114
+ justify-content: flex-start;
115
+ height: 100%;
116
+
117
+ & > #{class(image)},
118
+ & > mint-image {
119
+ width: 100%;
120
+ height: 100%;
121
+ max-width: $card-logo-size;
122
+ max-height: $card-logo-size;
123
+ margin-right: $card-padding;
124
+
125
+ img {
126
+ display: block;
116
127
  width: 100%;
117
128
  height: 100%;
118
- max-width: $logo-size;
119
- max-height: $logo-size;
120
- margin-right: 1rem;
121
-
122
- img {
123
- display: block;
124
- width: 100%;
125
- height: 100%;
126
- }
127
129
  }
130
+ }
128
131
 
129
- div {
130
- width: 100%;
132
+ i {
133
+ display: flex;
134
+ align-items: center;
135
+ justify-content: center;
136
+ min-width: $card-logo-size;
137
+ max-width: $card-logo-size;
138
+ margin-right: $card-padding;
139
+ font-size: calc($card-logo-size - 1rem);
140
+ }
131
141
 
132
- & > * {
133
- margin: 0;
134
- }
142
+ & > div {
143
+ width: 100%;
144
+
145
+ & > * {
146
+ margin: 0;
135
147
  }
136
148
  }
137
149
  }
@@ -0,0 +1,19 @@
1
+ /// _footer.scss - Header styles
2
+ /// @author App/Art Mint
3
+ ///
4
+ /// @group Components
5
+ @charset 'utf-8';
6
+
7
+ /// Footer Styles
8
+ app-footer {
9
+ display: flex;
10
+ flex-direction: column;
11
+
12
+ &::before {
13
+ content: '';
14
+ display: flex;
15
+ flex-grow: 1;
16
+ height: 100%;
17
+ background: css-var(trans);
18
+ }
19
+ }
@@ -22,7 +22,7 @@
22
22
  width: 100%;
23
23
  color: css-var(header-fg);
24
24
  background-color: css-var(header-bg);
25
- z-index: 1000;
25
+ z-index: 10000;
26
26
 
27
27
  &#{class(js)} {
28
28
  align-items: center;
@@ -1,5 +1,6 @@
1
1
  @use './backgrounds';
2
2
  @use './buttons';
3
3
  @use './cards';
4
+ @use './footer';
4
5
  @use './header';
5
6
  @use './image';
@@ -12,10 +12,6 @@ html, body {
12
12
  color: css-var(fore);
13
13
  background-color: css-var(back);
14
14
  overflow-x: hidden;
15
- }
16
-
17
- html, body, main {
18
- width: 100%;
19
15
  min-height: 100vh;
20
16
  margin: 0;
21
17
  padding: 0;
@@ -25,7 +21,24 @@ main {
25
21
  display: flex;
26
22
  flex-direction: column;
27
23
  position: relative;
24
+ width: 100%;
25
+ min-height: calc(100vh - css-var(header-height));
28
26
  z-index: 1000;
27
+
28
+ & > router-outlet {
29
+ & + * {
30
+ width: 100%;
31
+ flex-grow: 1;
32
+ }
33
+ }
34
+
35
+ router-outlet {
36
+ flex-grow: 0;
37
+ }
38
+ }
39
+
40
+ app-root {
41
+ display: block;
29
42
  }
30
43
 
31
44
  nav {
@@ -86,3 +99,9 @@ img {
86
99
  clip: rect(0, 0, 0, 0) !important;
87
100
  border: 0 !important;
88
101
  }
102
+
103
+ #{class(list)} {
104
+ list-style: none;
105
+ margin: 0;
106
+ padding: 0;
107
+ }
@@ -82,3 +82,40 @@ section {
82
82
  justify-content: center;
83
83
  text-align: center;
84
84
  }
85
+
86
+ #{class(grid)} {
87
+ display: grid;
88
+ grid-template-columns: 1fr;
89
+ gap: $grid-gap;
90
+ margin: $grid-gap 0;
91
+
92
+ &#{class('2')} {
93
+ @include break(sm) {
94
+ grid-template-columns: repeat(2, 1fr);
95
+ }
96
+ }
97
+
98
+ &#{class('3')} {
99
+ @include break(sm) {
100
+ grid-template-columns: repeat(2, 1fr);
101
+ }
102
+
103
+ @include break(lg) {
104
+ grid-template-columns: repeat(3, 1fr);
105
+ }
106
+ }
107
+
108
+ &#{class('4')} {
109
+ @include break(sm) {
110
+ grid-template-columns: repeat(2, 1fr);
111
+ }
112
+
113
+ @include break(lg) {
114
+ grid-template-columns: repeat(3, 1fr);
115
+ }
116
+
117
+ @include break(xl) {
118
+ grid-template-columns: repeat(4, 1fr);
119
+ }
120
+ }
121
+ }
@@ -75,6 +75,7 @@ $font-size-desktop: (
75
75
 
76
76
  /// Structure
77
77
  $header-height: 4rem !default;
78
+ $grid-gap: 2rem !default;
78
79
 
79
80
  /// Default theme
80
81
  $theme-default: light !default;
@@ -82,3 +83,10 @@ $theme-default: light !default;
82
83
  /// Outline width
83
84
  $outline-width: 0.125rem !default;
84
85
  $border-radius: 0.25rem !default;
86
+
87
+ /// Cards
88
+ $card-padding: 1.5rem !default;
89
+ $card-radius: 1rem !default;
90
+ $card-shadow-color: glow-2 !default;
91
+ $card-shadow-size: 0 0 2rem -0.5rem !default;
92
+ $card-logo-size: 4rem !default;