@conduction/docusaurus-preset 1.5.0 → 1.5.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/docusaurus-preset",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "scripts": {
5
5
  "prepack": "node scripts/prepack-bundle-css.js"
6
6
  },
@@ -12,26 +12,24 @@
12
12
  }
13
13
 
14
14
  /* Cobalt-background hero variant for product-page identity. The brand
15
- panel sits full-bleed via a pseudo-element so the centred content
16
- keeps its 1280px max-width. Text + crumb + badges flip to white /
17
- cobalt-100 against the dark surface; the icon hex and the action
18
- buttons carry their own colour via iconColor + Button tone. */
15
+ panel needs to bleed full-width even though the section keeps its
16
+ 1280px content max-width. Earlier attempt used a 100vw absolute
17
+ pseudo-element, but Docusaurus's <main>/<article> wrappers run
18
+ `overflow: hidden` on some routes which clipped the pseudo to the
19
+ container width (visible as a hard white strip on the right at
20
+ ≥1280px viewports). Switch to the box-shadow + clip-path bleed:
21
+ a single colour paints the element's box AND extends horizontally
22
+ via box-shadow rings, while clip-path: inset(0 -100vmax) trims the
23
+ top/bottom of those rings so the panel doesn't bleed vertically.
24
+ Robust against any ancestor overflow setting. */
19
25
  .bgCobalt {
20
26
  padding-top: 56px;
21
27
  padding-bottom: 64px;
22
28
  color: white;
23
- }
24
- .bgCobalt::before {
25
- content: '';
26
- position: absolute;
27
- inset: 0;
28
- left: 50%;
29
- transform: translateX(-50%);
30
- width: 100vw;
31
29
  background: var(--c-blue-cobalt);
32
- z-index: -1;
30
+ box-shadow: 0 0 0 100vmax var(--c-blue-cobalt);
31
+ clip-path: inset(0 -100vmax);
33
32
  }
34
- .bgCobalt > * { position: relative; }
35
33
 
36
34
  .bgCobalt .crumb,
37
35
  .bgCobalt .crumb a { color: var(--c-cobalt-100); }