@appartmint/mint 0.9.1 → 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.
- package/dist/css/mint.css +158 -77
- 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/package.json +1 -1
- package/src/scss/imports/components/_cards.scss +51 -39
- package/src/scss/imports/components/_footer.scss +19 -0
- package/src/scss/imports/components/_header.scss +38 -39
- package/src/scss/imports/components/_index.scss +1 -0
- package/src/scss/imports/global/_global.scss +34 -4
- package/src/scss/imports/global/_structure.scss +37 -0
- package/src/scss/imports/global/_text.scss +3 -30
- package/src/scss/imports/global/_themes.scss +0 -4
- package/src/scss/imports/util/_util.scss +12 -0
- package/src/scss/imports/util/_vars.scss +39 -2
|
@@ -7,42 +7,28 @@
|
|
|
7
7
|
/// Imports
|
|
8
8
|
@use '../util' as *;
|
|
9
9
|
|
|
10
|
-
/// CSS
|
|
10
|
+
/// CSS Variables
|
|
11
11
|
:root {
|
|
12
|
-
@include css-var(
|
|
13
|
-
@include css-var(
|
|
14
|
-
@include css-var(
|
|
15
|
-
@include css-var(delay-default, delay(default));
|
|
16
|
-
@include css-var(delay-med-slow, delay(med-slow));
|
|
17
|
-
@include css-var(delay-slow, delay(slow));
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/// Styles
|
|
21
|
-
#{class(sr-only)} {
|
|
22
|
-
position: absolute !important;
|
|
23
|
-
width: 1px !important;
|
|
24
|
-
height: 1px !important;
|
|
25
|
-
padding: 0 !important;
|
|
26
|
-
margin: -1px !important;
|
|
27
|
-
overflow: hidden !important;
|
|
28
|
-
clip: rect(0, 0, 0, 0) !important;
|
|
29
|
-
border: 0 !important;
|
|
12
|
+
@include css-var(header-height, $header-height);
|
|
13
|
+
@include css-var-ref(header-bg, $header-bg);
|
|
14
|
+
@include css-var-ref(header-fg, $header-fg);
|
|
30
15
|
}
|
|
31
16
|
|
|
17
|
+
/// Header Styles
|
|
32
18
|
#{id(header)} {
|
|
33
19
|
display: flex;
|
|
34
20
|
flex-direction: column;
|
|
35
21
|
position: relative;
|
|
36
22
|
width: 100%;
|
|
37
|
-
color: css-var(fg);
|
|
23
|
+
color: css-var(header-fg);
|
|
38
24
|
background-color: css-var(header-bg);
|
|
39
|
-
z-index:
|
|
25
|
+
z-index: 10000;
|
|
40
26
|
|
|
41
27
|
&#{class(js)} {
|
|
42
28
|
align-items: center;
|
|
43
29
|
flex-direction: row;
|
|
44
|
-
height: css-var(height);
|
|
45
|
-
padding: calc(
|
|
30
|
+
height: css-var(header-height);
|
|
31
|
+
padding: calc(css-var(header-height) / 2);
|
|
46
32
|
|
|
47
33
|
#{controls(wrapper)} {
|
|
48
34
|
display: inline-block;
|
|
@@ -80,7 +66,7 @@
|
|
|
80
66
|
|
|
81
67
|
&.mint-right {
|
|
82
68
|
#{id(wrapper)} {
|
|
83
|
-
top: css-var(height);
|
|
69
|
+
top: css-var(header-height);
|
|
84
70
|
right: -100%;
|
|
85
71
|
left: unset;
|
|
86
72
|
|
|
@@ -103,7 +89,7 @@
|
|
|
103
89
|
|
|
104
90
|
&.mint-left {
|
|
105
91
|
#{id(wrapper)} {
|
|
106
|
-
top: css-var(height);
|
|
92
|
+
top: css-var(header-height);
|
|
107
93
|
left: -100%;
|
|
108
94
|
|
|
109
95
|
&#{class(open)} {
|
|
@@ -118,7 +104,7 @@
|
|
|
118
104
|
top: 0;
|
|
119
105
|
left: 0;
|
|
120
106
|
width: 100%;
|
|
121
|
-
height: css-var(height);
|
|
107
|
+
height: css-var(header-height);
|
|
122
108
|
background: css-var(header-bg);
|
|
123
109
|
z-index: -1;
|
|
124
110
|
}
|
|
@@ -140,17 +126,30 @@
|
|
|
140
126
|
a, button {
|
|
141
127
|
display: flex;
|
|
142
128
|
align-items: center;
|
|
143
|
-
|
|
129
|
+
width: 100%;
|
|
130
|
+
margin: 0;
|
|
131
|
+
border: 0;
|
|
132
|
+
color: css-var(header-fg);
|
|
133
|
+
background: css-var(trans);
|
|
144
134
|
}
|
|
145
135
|
|
|
136
|
+
h1 {
|
|
137
|
+
display: flex;
|
|
138
|
+
white-space: nowrap;
|
|
139
|
+
margin: 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
#{class(logo)} {
|
|
143
|
+
text-decoration: none;
|
|
144
|
+
|
|
145
|
+
img {
|
|
146
|
+
max-width: css-var(header-height);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
146
150
|
#{controls(wrapper)} {
|
|
147
151
|
display: none;
|
|
148
152
|
}
|
|
149
|
-
|
|
150
|
-
#{id(logo)} {
|
|
151
|
-
margin: calc((css-var(height) - css-var(btn-height)) / 2);
|
|
152
|
-
padding: 0;
|
|
153
|
-
}
|
|
154
153
|
|
|
155
154
|
#{id(wrapper)} {
|
|
156
155
|
display: flex;
|
|
@@ -159,12 +158,12 @@
|
|
|
159
158
|
top: -100%;
|
|
160
159
|
left: 0;
|
|
161
160
|
width: 100%;
|
|
162
|
-
height: calc(100vh - css-var(height));
|
|
161
|
+
height: calc(100vh - css-var(header-height));
|
|
163
162
|
transition: none;
|
|
164
163
|
z-index: -2;
|
|
165
164
|
|
|
166
165
|
&#{class(open)} {
|
|
167
|
-
top: css-var(height);
|
|
166
|
+
top: css-var(header-height);
|
|
168
167
|
}
|
|
169
168
|
}
|
|
170
169
|
|
|
@@ -172,7 +171,7 @@
|
|
|
172
171
|
position: absolute;
|
|
173
172
|
top: 0;
|
|
174
173
|
right: 0;
|
|
175
|
-
height: css-var(height);
|
|
174
|
+
height: css-var(header-height);
|
|
176
175
|
}
|
|
177
176
|
|
|
178
177
|
#{class(dropdown)} {
|
|
@@ -182,13 +181,13 @@
|
|
|
182
181
|
display: flex;
|
|
183
182
|
align-items: center;
|
|
184
183
|
justify-content: center;
|
|
185
|
-
min-width: css-var(height);
|
|
186
|
-
height: css-var(height);
|
|
187
|
-
padding: calc(
|
|
184
|
+
min-width: css-var(header-height);
|
|
185
|
+
height: css-var(header-height);
|
|
186
|
+
padding: calc(css-var(header-height) / 2);
|
|
188
187
|
}
|
|
189
188
|
|
|
190
189
|
li {
|
|
191
|
-
padding: calc(
|
|
190
|
+
padding: calc(css-var(header-height) / 2);
|
|
192
191
|
line-height: 1;
|
|
193
192
|
cursor: pointer;
|
|
194
193
|
}
|
|
@@ -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 {
|
|
@@ -75,3 +88,20 @@ img {
|
|
|
75
88
|
#{class(noglow)} {
|
|
76
89
|
box-shadow: none !important;
|
|
77
90
|
}
|
|
91
|
+
|
|
92
|
+
#{class(sr-only)} {
|
|
93
|
+
position: absolute !important;
|
|
94
|
+
width: 1px !important;
|
|
95
|
+
height: 1px !important;
|
|
96
|
+
padding: 0 !important;
|
|
97
|
+
margin: -1px !important;
|
|
98
|
+
overflow: hidden !important;
|
|
99
|
+
clip: rect(0, 0, 0, 0) !important;
|
|
100
|
+
border: 0 !important;
|
|
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
|
+
}
|
|
@@ -7,31 +7,6 @@
|
|
|
7
7
|
/// Imports
|
|
8
8
|
@use '../util' as *;
|
|
9
9
|
|
|
10
|
-
/// Fonts
|
|
11
|
-
$font-primary: 'Palanquin' !default;
|
|
12
|
-
$font-secondary: 'JosefinSans' !default;
|
|
13
|
-
$font-backups: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji' !default;
|
|
14
|
-
|
|
15
|
-
/// Font Sizes
|
|
16
|
-
$font-size-mobile: (
|
|
17
|
-
h1: 2.5rem,
|
|
18
|
-
h2: 2rem,
|
|
19
|
-
h3: 1.75rem,
|
|
20
|
-
h4: 1.5rem,
|
|
21
|
-
h5: 1.25rem,
|
|
22
|
-
h6: 1.125rem,
|
|
23
|
-
p: 1rem,
|
|
24
|
-
) !default;
|
|
25
|
-
$font-size-desktop: (
|
|
26
|
-
h1: 3rem,
|
|
27
|
-
h2: 2.5rem,
|
|
28
|
-
h3: 2rem,
|
|
29
|
-
h4: 1.75rem,
|
|
30
|
-
h5: 1.5rem,
|
|
31
|
-
h6: 1.25rem,
|
|
32
|
-
p: 1.125rem,
|
|
33
|
-
) !default;
|
|
34
|
-
|
|
35
10
|
/// Text Styles
|
|
36
11
|
html, body {
|
|
37
12
|
font-family: $font-primary, $font-backups;
|
|
@@ -46,11 +21,9 @@ p {
|
|
|
46
21
|
line-height: 1.75;
|
|
47
22
|
}
|
|
48
23
|
|
|
49
|
-
@
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
line-height: 1;
|
|
53
|
-
}
|
|
24
|
+
@include headers () {
|
|
25
|
+
font-family: $font-secondary, $font-secondary-backups;
|
|
26
|
+
line-height: 1;
|
|
54
27
|
}
|
|
55
28
|
|
|
56
29
|
@each $tag in map-keys($font-size-mobile) {
|
|
@@ -34,7 +34,7 @@ $grey: #888 !default;
|
|
|
34
34
|
$trans-light: rgba(255, 255, 255, 0) !default;
|
|
35
35
|
$trans-dark: rgba(0, 0, 0, 0) !default;
|
|
36
36
|
|
|
37
|
-
$brand: #
|
|
37
|
+
$brand: #bada55 !default;
|
|
38
38
|
$accent: #483d8b !default;
|
|
39
39
|
$success: #208a20 !default;
|
|
40
40
|
$danger: #ff4d4d !default;
|
|
@@ -44,8 +44,38 @@ $info: $brand !default;
|
|
|
44
44
|
$fore: lighten($black, 10%) !default;
|
|
45
45
|
$back: darken($white, 10%) !default;
|
|
46
46
|
|
|
47
|
+
$header-bg: brand-4 !default;
|
|
48
|
+
$header-fg: back !default;
|
|
49
|
+
|
|
50
|
+
/// Fonts
|
|
51
|
+
$font-primary: sans-serif !default;
|
|
52
|
+
$font-secondary: serif !default;
|
|
53
|
+
$font-backups: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji' !default;
|
|
54
|
+
$font-secondary-backups: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji' !default;
|
|
55
|
+
|
|
56
|
+
/// Font Sizes
|
|
57
|
+
$font-size-mobile: (
|
|
58
|
+
h1: 2.5rem,
|
|
59
|
+
h2: 2rem,
|
|
60
|
+
h3: 1.75rem,
|
|
61
|
+
h4: 1.5rem,
|
|
62
|
+
h5: 1.25rem,
|
|
63
|
+
h6: 1.125rem,
|
|
64
|
+
p: 1rem,
|
|
65
|
+
) !default;
|
|
66
|
+
$font-size-desktop: (
|
|
67
|
+
h1: 3rem,
|
|
68
|
+
h2: 2.5rem,
|
|
69
|
+
h3: 2rem,
|
|
70
|
+
h4: 1.75rem,
|
|
71
|
+
h5: 1.5rem,
|
|
72
|
+
h6: 1.25rem,
|
|
73
|
+
p: 1.125rem,
|
|
74
|
+
) !default;
|
|
75
|
+
|
|
47
76
|
/// Structure
|
|
48
|
-
$
|
|
77
|
+
$header-height: 4rem !default;
|
|
78
|
+
$grid-gap: 2rem !default;
|
|
49
79
|
|
|
50
80
|
/// Default theme
|
|
51
81
|
$theme-default: light !default;
|
|
@@ -53,3 +83,10 @@ $theme-default: light !default;
|
|
|
53
83
|
/// Outline width
|
|
54
84
|
$outline-width: 0.125rem !default;
|
|
55
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;
|