@conduction/docusaurus-preset 3.14.0 → 3.15.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": "3.14.0",
3
+ "version": "3.15.1",
4
4
  "scripts": {
5
5
  "prepack": "node scripts/prepack-bundle-css.js"
6
6
  },
package/src/css/brand.css CHANGED
@@ -311,6 +311,31 @@ a:not(.navbar__link):not(.footer__link-item):not(.button):hover {
311
311
  background: transparent;
312
312
  }
313
313
 
314
+ /* ============================================================
315
+ Heading anchor hash glyphs.
316
+
317
+ Docusaurus auto-generates a hidden `<a class="hash-link">#</a>`
318
+ inside every h2-h6 so readers can copy a deep link. Default
319
+ Infima styling renders the glyph in the primary brand colour
320
+ (cobalt) which is fine for the visible state, but the affordance
321
+ reads stronger when the hash itself lights up in KNVB orange
322
+ the moment the cursor touches it.
323
+
324
+ We render the glyph in cobalt-300 by default (visible-on-hover
325
+ of the heading, via the theme's anchorWithStickyNavbar rule)
326
+ and flip it to var(--c-orange-knvb) the moment the user hovers
327
+ or focuses the hash itself.
328
+ ============================================================ */
329
+ .hash-link {
330
+ color: var(--c-cobalt-300);
331
+ transition: color 120ms ease;
332
+ }
333
+ .hash-link:hover,
334
+ .hash-link:focus-visible {
335
+ color: var(--c-orange-knvb);
336
+ text-decoration: none;
337
+ }
338
+
314
339
  /* ============================================================
315
340
  Body grows with content.
316
341
 
@@ -1,14 +1,11 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
1
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="-86.6 -100 173.2 200" role="img" aria-label="Conduction avatar">
3
- <title>Conduction avatar, drawn as three pointy-top polygons</title>
2
+ <title>Conduction avatar, drawn as two shapes on a transparent ground</title>
4
3
  <!-- viewBox is the bounding box of the outer hex (R=100), no
5
- internal padding. Three polygons in the same drawing
4
+ internal padding. Two shapes in the same drawing
6
5
  vocabulary as the watermark hexes:
7
- 1. Outer hex cobalt, the frame
8
- 2. Inner hex white, the empty interior (so the
9
- logo reads correctly on any ground)
10
- 3. C-shape cobalt, sits inside the inner hex -->
11
- <polygon fill="#21468B" points="0,-100 86.6,-50 86.6,50 0,100 -86.6,50 -86.6,-50"/>
12
- <polygon fill="#FFFFFF" points="0,-74.5 64.5,-37.3 64.5,37.3 0,74.5 -64.5,37.3 -64.5,-37.3"/>
6
+ 1. Hex ring cobalt, the frame (outer hex with inner hex
7
+ punched out as transparent via evenodd fill-rule)
8
+ 2. C-shape cobalt, sits inside the ring -->
9
+ <path fill="#21468B" fill-rule="evenodd" d="M 0,-100 L 86.6,-50 L 86.6,50 L 0,100 L -86.6,50 L -86.6,-50 Z M 0,-74.5 L 64.5,-37.3 L 64.5,37.3 L 0,74.5 L -64.5,37.3 L -64.5,-37.3 Z"/>
13
10
  <polygon fill="#21468B" points="-0.2,-25.2 20.1,-13.5 43.7,-27.1 -0.2,-52.4 -45.6,-26.2 -45.6,26.2 -0.2,52.4 43.7,27.1 20.1,13.5 -0.2,25.2 -22,12.6 -22,-12.6"/>
14
11
  </svg>