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.
@@ -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
- // Half a step more than the gap it leaves below itself, and that difference
239
- // is the whole margin the boundary between two components has over the one
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) * 1.5);
243
+ margin-top: calc(var(--mw-section-head-step) * 2);
244
244
  }
245
245
  }
246
246