maverick-wave 5.32.0 → 5.34.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/README.md +2 -2
- package/maverick-wave.min.css +16 -2
- package/maverick-wave.min.js +1 -1
- package/package.json +2 -2
- package/src/js/main.js +769 -3
- package/src/js/occasions.js +107 -0
- package/src/scss/abstracts/_variables.scss +2 -0
- package/src/scss/components/_deck-blocks.scss +963 -0
- package/src/scss/components/_deck-frame.scss +102 -0
- package/src/scss/components/_deck.scss +700 -0
- package/src/scss/components/_index.scss +3 -0
- package/src/scss/components/_occasions.scss +1574 -0
- package/src/scss/layout/_main.scss +18 -0
- package/src/scss/layout/_section.scss +4 -4
|
@@ -12,6 +12,24 @@
|
|
|
12
12
|
counter-reset: mw-section-head;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
// The fixed header and the ribbon under it take no room in the flow. A page
|
|
16
|
+
// that opens with a hero lets them lie over the picture; every other page
|
|
17
|
+
// keeps the room free where it starts - a section or the content wrapper -
|
|
18
|
+
// on top of the space that one has anyway. The same tokens as
|
|
19
|
+
// scroll-padding-top, so a ribbon that is not there costs nothing.
|
|
20
|
+
body:has(.mw-header) .mw-main > .mw-section:first-child:not(:has(.mw-hero)) {
|
|
21
|
+
padding-top: calc(
|
|
22
|
+
var(--mw-header-height) + var(--mw-announcement-offset) +
|
|
23
|
+
var(--mw-section-padding-block)
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
body:has(.mw-header) .mw-main > .mw-content:first-child:not(:has(.mw-hero)) {
|
|
28
|
+
padding-top: calc(
|
|
29
|
+
var(--mw-header-height) + var(--mw-announcement-offset) + #{spacing('7')}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
15
33
|
// Takes the full container on a phone and steps inwards as the screen grows.
|
|
16
34
|
// For a column of full-width cards, which at 1200px leaves more empty card
|
|
17
35
|
// than content.
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
font-size: fluid('xl', '2xl', $to: 'sm');
|
|
125
125
|
// The section boundary steps down on a phone, so the component boundary
|
|
126
126
|
// sits with it or the two stop being distinguishable
|
|
127
|
-
margin-block: var(--mw-section-head-step)
|
|
127
|
+
margin-block: calc(var(--mw-section-head-step) * 1.5)
|
|
128
128
|
calc(var(--mw-section-head-step) * 0.56);
|
|
129
129
|
margin-inline: spacing('0');
|
|
130
130
|
position: relative;
|
|
@@ -235,12 +235,12 @@
|
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
@include media-up('sm') {
|
|
238
|
-
//
|
|
239
|
-
//
|
|
238
|
+
// A step more than the gap it leaves below itself, and that difference is
|
|
239
|
+
// the whole margin the boundary between two components has over the one
|
|
240
240
|
// between two demos - the heading leans toward what it names, not toward
|
|
241
241
|
// what came before it.
|
|
242
242
|
.mw-section-subtitle {
|
|
243
|
-
margin-top: calc(var(--mw-section-head-step) *
|
|
243
|
+
margin-top: calc(var(--mw-section-head-step) * 2);
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
|