@conduction/docusaurus-preset 3.15.0 → 3.15.2

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.15.0",
3
+ "version": "3.15.2",
4
4
  "scripts": {
5
5
  "prepack": "node scripts/prepack-bundle-css.js"
6
6
  },
package/src/css/brand.css CHANGED
@@ -315,25 +315,24 @@ a:not(.navbar__link):not(.footer__link-item):not(.button):hover {
315
315
  Heading anchor hash glyphs.
316
316
 
317
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.
318
+ inside every h2-h6 so readers can copy a deep link. The default
319
+ theme keeps the glyph invisible until the heading is hovered
320
+ (theme/MDXComponents/Heading), which is the affordance we want.
321
+
322
+ Branding: the glyph should always render in KNVB orange — never
323
+ cobalt, never underlined. Hover/focus on the hash itself keeps
324
+ the same orange (no second hover colour) so the visual stays
325
+ stable once the hash is on-screen.
328
326
  ============================================================ */
329
- .hash-link {
330
- color: var(--c-cobalt-300);
331
- transition: color 120ms ease;
332
- }
327
+ .hash-link,
333
328
  .hash-link:hover,
334
- .hash-link:focus-visible {
329
+ .hash-link:focus,
330
+ .hash-link:focus-visible,
331
+ .hash-link:active,
332
+ .hash-link:visited {
335
333
  color: var(--c-orange-knvb);
336
334
  text-decoration: none;
335
+ border-bottom: 0;
337
336
  }
338
337
 
339
338
  /* ============================================================
@@ -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>