@appartmint/mint 0.12.11 → 0.12.13

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.
@@ -11,16 +11,16 @@
11
11
  /// CSS Variables
12
12
  :root {
13
13
  @include css-var(header-height, $header-height);
14
- @include css-var-ref(header-bg, $header-bg);
15
- @include css-var-ref(header-fg, $header-fg);
14
+ @include css-var-ref(header-back, $header-back);
15
+ @include css-var-ref(header-fore, $header-fore);
16
16
  }
17
17
 
18
18
  /// Header Styles
19
19
  #{id(header)} {
20
20
  position: relative;
21
21
  width: 100%;
22
- color: css-var(header-fg);
23
- background-color: css-var(header-bg);
22
+ color: css-var(header-fore);
23
+ background-color: css-var(header-back);
24
24
  z-index: 10000;
25
25
  height: css-var(header-height);
26
26
  //padding: 0 calc(css-var(header-height) / 2);
@@ -66,7 +66,7 @@
66
66
  left: 0;
67
67
  width: 100%;
68
68
  height: css-var(header-height);
69
- background: css-var(header-bg);
69
+ background: css-var(header-back);
70
70
  z-index: -1;
71
71
  }
72
72
 
@@ -89,11 +89,13 @@
89
89
  width: 100%;
90
90
  margin: 0;
91
91
  border: 0;
92
- color: css-var(fore);
92
+ color: css-var($header-link-fore);
93
93
  background: css-var(trans);
94
+ transition-property: color, background;
95
+ transition-duration: css-var(delay-default);
94
96
 
95
- @include states(hover, focus) {
96
- color: css-var(back);
97
+ @include states(hover) {
98
+ color: css-var($header-link-fore-hover);
97
99
  }
98
100
  }
99
101
 
@@ -126,12 +128,19 @@
126
128
  padding: $menu-btn-padding;
127
129
  width: $menu-bar-width + $menu-btn-padding * 2;
128
130
  height: $menu-btn-height + $menu-btn-padding * 2;
129
- margin-left: auto;
130
131
  border-radius: $border-radius;
131
132
  background: css-var($menu-btn-color);
132
133
  box-shadow: $menu-btn-shadow-size css-var($menu-btn-shadow-color);
133
134
  z-index: 1000;
134
135
 
136
+ @include states(hover) {
137
+ #{class(menu-icon)} {
138
+ &, &::before, &::after {
139
+ background-color: css-var($header-link-fore-hover);
140
+ }
141
+ }
142
+ }
143
+
135
144
  #{class(menu-icon)} {
136
145
  top: 50%;
137
146
  left: 50%;
@@ -184,7 +193,7 @@
184
193
  height: calc(100vh - css-var(header-height));
185
194
  height: calc(100dvh - css-var(header-height));
186
195
  z-index: -2;
187
- background: css-var(header-bg);
196
+ background: css-var(header-back);
188
197
  transition-duration: css-var(delay-default);
189
198
  transition-property: top, right, bottom, left;
190
199
  overflow: auto;
@@ -214,8 +223,8 @@
214
223
  display: flex;
215
224
  flex-direction: row;
216
225
  flex-wrap: wrap;
217
- align-items: center;
218
226
  justify-content: space-evenly;
227
+ width: 100%;
219
228
  }
220
229
  }
221
230
  }
@@ -253,15 +262,22 @@
253
262
  }
254
263
  }
255
264
 
256
- #{id(widgets)} {
257
- position: absolute;
258
- top: 0;
259
- right: 0;
260
- height: css-var(header-height);
265
+ #{class(buttons)} {
266
+ flex-wrap: nowrap;
267
+ justify-content: flex-end;
268
+ width: 100%;
269
+
270
+ a, button {
271
+ &#{neg(controls(wrapper))} {
272
+ display: flex;
273
+ width: auto;
274
+ padding: 0.5rem;
275
+ }
276
+ }
261
277
  }
262
278
 
263
279
  #{class(dropdown)} {
264
- background: css-var(header-bg);
280
+ background: css-var(header-back);
265
281
 
266
282
  button {
267
283
  display: flex;
@@ -4,9 +4,6 @@
4
4
  /// @group Vars
5
5
  @charset 'utf-8';
6
6
 
7
- /// Default theme
8
- $theme-default: light !default;
9
-
10
7
  /// Global Colors
11
8
  $bitcoin: #FF9900;
12
9
  $ethereum: #3C3C3D;
@@ -87,13 +84,6 @@ $border-radius: 1rem !default;
87
84
 
88
85
  /// Header
89
86
  $header-height: 4rem !default;
90
- $header-bg: brand-2 !default;
91
- $header-fg: fore !default;
92
-
93
- @if ($theme-default == dark) {
94
- $header-bg: brand-4;
95
- $header-fg: back;
96
- }
97
87
 
98
88
  /// Default Shadows
99
89
  $shadow-color: glow-2 !default;
@@ -120,12 +110,6 @@ $btn-fore: fore !default;
120
110
  $btn-fore-alt: $btn-fore !default;
121
111
  $btn-fore-hover: back !default;
122
112
  $btn-fore-alt-hover: $btn-fore-hover !default;
123
- $btn-back: brand-2 !default;
124
- $btn-border: brand-4 !default;
125
- @if ($theme-default == dark) {
126
- $btn-back: brand-2;
127
- $btn-border: brand-4;
128
- }
129
113
  $btn-back-alt: trans !default;
130
114
  $btn-back-alt-hover: accent-2 !default;
131
115
 
@@ -158,3 +142,41 @@ $texture-border-color: null !default;
158
142
  $texture-border-image: null !default;
159
143
  $texture-border-slice: 42 42 !default;
160
144
  $texture-border-repeat: round !default;
145
+
146
+
147
+ /// Themes
148
+ $theme-default: light !default;
149
+
150
+ /// Default Theme (light)
151
+
152
+ /// Buttons
153
+ $btn-back-default: brand-2;
154
+ $btn-back: $btn-back-default !default;
155
+
156
+ $btn-border-default: brand-4;
157
+ $btn-border: $btn-border-default !default;
158
+
159
+ /// Header
160
+ $header-back-default: brand-2;
161
+ $header-back: $header-back-default !default;
162
+
163
+ $header-fore-default: fore;
164
+ $header-fore: $header-fore-default !default;
165
+
166
+ $header-link-fore-default: fore;
167
+ $header-link-fore: $header-link-fore-default !default;
168
+
169
+ $header-link-fore-hover-default: back;
170
+ $header-link-fore-hover: $header-link-fore-hover-default !default;
171
+
172
+ /// Dark Theme
173
+ @if ($theme-default == dark) {
174
+
175
+ /// Buttons
176
+ $btn-back: if($btn-back != $btn-back-default, $btn-back, brand-5);
177
+ $btn-border: if($btn-border != $btn-border-default, $btn-border, brand-2);
178
+
179
+ /// Header
180
+ $header-back: if($header-back != $header-back-default, $header-back, brand-4);
181
+ $header-fore: if($header-fore != $header-fore-default, $header-fore, back);
182
+ }