maverick-wave 5.8.0 → 5.11.0
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/.claude/skills/mw-maverick-wave/SKILL.md +26 -14
- package/.claude/skills/mw-maverick-wave/examples/angular-services.md +10 -1
- package/.claude/skills/mw-maverick-wave/examples/static-landing-page.md +4 -3
- package/.claude/skills/mw-maverick-wave/references/components.md +23 -9
- package/.claude/skills/mw-maverick-wave/references/javascript.md +14 -14
- package/.claude/skills/mw-maverick-wave/references/layout.md +29 -9
- package/.claude/skills/mw-maverick-wave/references/theming.md +48 -25
- package/CHANGELOG.md +23 -0
- package/README.md +41 -24
- package/index.html +356 -20
- package/maverick-wave.min.css +61 -5
- package/maverick-wave.min.js +1 -1
- package/package.json +2 -2
- package/scripts/verify.js +7 -1
- package/src/js/main.js +27 -7
- package/src/partials/palette-container.html +105 -65
- package/src/partials/parallax-container.html +20 -1
- package/src/partials/preview-container.html +136 -0
- package/src/partials/utilities-container.html +38 -0
- package/src/scss/abstracts/_functions.scss +31 -3
- package/src/scss/abstracts/_mixins.scss +62 -12
- package/src/scss/abstracts/_variables.scss +47 -21
- package/src/scss/base/_base.scss +97 -8
- package/src/scss/components/_badge.scss +1 -1
- package/src/scss/components/_buttons.scss +1 -1
- package/src/scss/components/_cards.scss +23 -14
- package/src/scss/components/_dropdown.scss +58 -1
- package/src/scss/components/_kanban.scss +10 -9
- package/src/scss/components/_lang-switch.scss +1 -1
- package/src/scss/components/_localhost-indicator.scss +1 -1
- package/src/scss/components/_modals.scss +13 -1
- package/src/scss/components/_pricing.scss +1 -1
- package/src/scss/components/_progress.scss +9 -5
- package/src/scss/components/_skeleton.scss +1 -1
- package/src/scss/components/_spinners.scss +5 -5
- package/src/scss/components/_stepper.scss +4 -1
- package/src/scss/components/_tabs.scss +28 -8
- package/src/scss/components/_tiles.scss +41 -16
- package/src/scss/components/_timelines.scss +13 -5
- package/src/scss/layout/_header-reveal.scss +5 -5
- package/src/scss/layout/_main.scss +1 -1
- package/src/scss/layout/_parallax.scss +65 -14
- package/src/scss/utilities/_elevation.scss +23 -0
- package/src/scss/utilities/_reveal.scss +5 -5
- package/src/scss/utilities/_touch-targets.scss +1 -1
- package/src/scss/utilities/_variants.scss +74 -7
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
// Firefox
|
|
39
|
-
// same movement (main.js): `mw-reveal-hidden` while the element
|
|
40
|
-
// the fold, `mw-reveal-run` once it enters. Both classes are
|
|
41
|
-
// script and never by the markup - a page without JS keeps
|
|
42
|
-
// visible, which is what the guard above is for.
|
|
38
|
+
// Older Safari and Firefox ship no scroll timelines, so there the script
|
|
39
|
+
// drives the same movement (main.js): `mw-reveal-hidden` while the element
|
|
40
|
+
// waits below the fold, `mw-reveal-run` once it enters. Both classes are
|
|
41
|
+
// added by the script and never by the markup - a page without JS keeps
|
|
42
|
+
// everything visible, which is what the guard above is for.
|
|
43
43
|
@media (prefers-reduced-motion: no-preference) {
|
|
44
44
|
.mw-reveal-hidden {
|
|
45
45
|
opacity: 0;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// sizes are right under a pointer and too small under a thumb. Coarse *or*
|
|
6
6
|
// narrow, because a tablet in landscape is wide and still finger-operated.
|
|
7
7
|
// Loaded last, so these win without extra specificity.
|
|
8
|
-
@media (pointer: coarse), (
|
|
8
|
+
@media (pointer: coarse), (width <= #{breakpoint('md')}) {
|
|
9
9
|
// Padding and line-height add up to ~35px, under the 44px a thumb needs. Only
|
|
10
10
|
// the height grows: the padding sets the label's relationship to the edges.
|
|
11
11
|
.mw-btn {
|
|
@@ -31,12 +31,10 @@
|
|
|
31
31
|
// the modal, which genuinely float above content and keep their shadow - in a
|
|
32
32
|
// flat page they are the only two things that should cast one.
|
|
33
33
|
//
|
|
34
|
-
//
|
|
35
|
-
//
|
|
36
|
-
//
|
|
37
|
-
|
|
38
|
-
:root.mw-shadows-flat,
|
|
39
|
-
:root.mw-shadows-flat .mw-theme-light {
|
|
34
|
+
// One selector, unlike mw-surfaces-flush below: the ramp is no longer declared
|
|
35
|
+
// per theme, so there is no copy further down the tree to shadow this one. The
|
|
36
|
+
// theme reaches it through --mw-shadow-near/-far instead - see elevation().
|
|
37
|
+
:root.mw-shadows-flat {
|
|
40
38
|
--mw-elevation-1: none;
|
|
41
39
|
--mw-elevation-2: none;
|
|
42
40
|
--mw-elevation-3: none;
|
|
@@ -47,7 +45,9 @@
|
|
|
47
45
|
// --mw-border is a neighbouring shade of the surface and reads as nothing once
|
|
48
46
|
// the surface *is* the page, so it is redrawn from the ink instead.
|
|
49
47
|
//
|
|
50
|
-
// Theme-bound tokens,
|
|
48
|
+
// Theme-bound tokens, and those *are* re-declared on <body> when the toggle puts
|
|
49
|
+
// .mw-theme-light there - a value written on :root alone would be shadowed for
|
|
50
|
+
// the whole body subtree and the switch would do nothing in light mode.
|
|
51
51
|
:root.mw-surfaces-flush,
|
|
52
52
|
:root.mw-surfaces-flush .mw-theme-light {
|
|
53
53
|
--mw-card-background: var(--mw-page-background);
|
|
@@ -159,4 +159,71 @@
|
|
|
159
159
|
letter-spacing: 0.045em;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
+
|
|
163
|
+
// The other axis to --mw-root-font-size, which zooms the whole page: there
|
|
164
|
+
// the layout is the same layout, larger. This moves the padding inside a
|
|
165
|
+
// surface and leaves the type alone, so a dense screen reads as well as a
|
|
166
|
+
// roomy one and only fits more on.
|
|
167
|
+
//
|
|
168
|
+
// --mw-section-padding-block is deliberately untouched: section spacing is
|
|
169
|
+
// its own switch, and both writing it would have the panel print a setup that
|
|
170
|
+
// contradicts itself. Steps along the spacing scale rather than free values,
|
|
171
|
+
// because that scale is what every other measure is built from - two of them
|
|
172
|
+
// down for compact, where the point is to fit more on screen, one up for
|
|
173
|
+
// roomy, where a second step would only look loose.
|
|
174
|
+
:root.mw-density-compact {
|
|
175
|
+
--mw-control-height-sm: 1.5rem;
|
|
176
|
+
--mw-control-height: 1.75rem;
|
|
177
|
+
--mw-control-height-lg: 2rem;
|
|
178
|
+
|
|
179
|
+
.mw-card-body {
|
|
180
|
+
padding: spacing('4') spacing('2') spacing('3');
|
|
181
|
+
|
|
182
|
+
@container mw-card (width >= #{$mw-card-wide}) {
|
|
183
|
+
padding: spacing('5') spacing('3') spacing('4');
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.mw-panel-header,
|
|
188
|
+
.mw-panel-body {
|
|
189
|
+
padding: spacing('2') spacing('3');
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
:root.mw-density-roomy {
|
|
194
|
+
--mw-control-height-sm: 2.25rem;
|
|
195
|
+
--mw-control-height: 2.5rem;
|
|
196
|
+
--mw-control-height-lg: 2.75rem;
|
|
197
|
+
|
|
198
|
+
.mw-card-body {
|
|
199
|
+
padding: spacing('7') spacing('5') spacing('6');
|
|
200
|
+
|
|
201
|
+
@container mw-card (width >= #{$mw-card-wide}) {
|
|
202
|
+
padding: spacing('8') spacing('6') spacing('7');
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.mw-panel-header,
|
|
207
|
+
.mw-panel-body {
|
|
208
|
+
padding: spacing('5') spacing('6');
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
:root.mw-links-underline {
|
|
213
|
+
.mw-link,
|
|
214
|
+
.mw-link-muted,
|
|
215
|
+
.mw-btn-link {
|
|
216
|
+
// The longhand, because the `text-decoration` shorthand resets
|
|
217
|
+
// text-decoration-thickness along with it and would drop the 1.5px
|
|
218
|
+
// link-look() draws the line at.
|
|
219
|
+
text-decoration-line: underline;
|
|
220
|
+
|
|
221
|
+
// The underline was the hover signal and is now the resting state, so the
|
|
222
|
+
// weight takes over: .mw-link carries no colour change of its own and
|
|
223
|
+
// would otherwise go completely dead under the pointer.
|
|
224
|
+
&:hover:not(:disabled) {
|
|
225
|
+
text-decoration-thickness: 3px;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
162
229
|
}
|