@forsakringskassan/docs-generator 3.7.0 → 3.8.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.
@@ -159405,7 +159405,7 @@ function requireDebounce() {
159405
159405
  var isObject5 = requireIsObject(), now4 = requireNow(), toNumber5 = requireToNumber();
159406
159406
  var FUNC_ERROR_TEXT7 = "Expected a function";
159407
159407
  var nativeMax11 = Math.max, nativeMin = Math.min;
159408
- function debounce3(func, wait, options2) {
159408
+ function debounce2(func, wait, options2) {
159409
159409
  var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
159410
159410
  if (typeof func != "function") {
159411
159411
  throw new TypeError(FUNC_ERROR_TEXT7);
@@ -159486,7 +159486,7 @@ function requireDebounce() {
159486
159486
  debounced.flush = flush;
159487
159487
  return debounced;
159488
159488
  }
159489
- debounce_1 = debounce3;
159489
+ debounce_1 = debounce2;
159490
159490
  return debounce_1;
159491
159491
  }
159492
159492
  function rotatePoint(x6, y6, centerX, centerY, angleDegrees) {
@@ -303217,25 +303217,99 @@ if (banner) {
303217
303217
  });
303218
303218
  }
303219
303219
 
303220
- // src/runtime/debounce.ts
303221
- function debounce2(func, delay2, immediate = false) {
303222
- let timeout2 = null;
303223
- return function functionToExecute(...args) {
303224
- const timedOutFunction = () => {
303225
- timeout2 = null;
303226
- if (!immediate) {
303227
- func.apply(this, args);
303228
- }
303229
- };
303230
- const callNow = immediate && !timeout2;
303231
- if (timeout2 !== null) {
303232
- clearTimeout(timeout2);
303220
+ // src/runtime/header-layout-detector.ts
303221
+ function parsePx(value2, defaultValue) {
303222
+ const parsed = Number(value2.replace("px", ""));
303223
+ if (Number.isNaN(parsed)) {
303224
+ return defaultValue;
303225
+ }
303226
+ return parsed;
303227
+ }
303228
+ function getContentWidth(header2) {
303229
+ const style4 = window.getComputedStyle(header2);
303230
+ const headerPaddingLeft = parsePx(style4.paddingLeft, 0);
303231
+ const headerPaddingRight = parsePx(style4.paddingRight, 0);
303232
+ const { width: width3 } = header2.getBoundingClientRect();
303233
+ return width3 - (headerPaddingLeft + headerPaddingRight);
303234
+ }
303235
+ function getTopnavMaxWidht(right3) {
303236
+ const rightSlot = right3.querySelector(".docs-page-header__right-slot");
303237
+ const rightSlotWidth = rightSlot ? rightSlot.getBoundingClientRect().width : 0;
303238
+ const rightWidth = right3.getBoundingClientRect().width;
303239
+ const rightStyle = getComputedStyle(right3);
303240
+ const rightGap = parsePx(rightStyle.gap, 0);
303241
+ return rightWidth - rightSlotWidth - rightGap;
303242
+ }
303243
+ function getMenuItemsWidth(items) {
303244
+ if (items.length === 0) {
303245
+ return 0;
303246
+ }
303247
+ const totalItemsWidth = items.reduce(
303248
+ (total, item) => total + item.scrollWidth,
303249
+ 0
303250
+ );
303251
+ const parent4 = items[0].parentElement;
303252
+ let totalGapWidth = 0;
303253
+ if (parent4) {
303254
+ const parentStyle = getComputedStyle(parent4);
303255
+ const itemGap = parsePx(parentStyle.columnGap || parentStyle.gap, 0);
303256
+ totalGapWidth = itemGap * (items.length - 1);
303257
+ }
303258
+ return totalItemsWidth + totalGapWidth;
303259
+ }
303260
+ function setMenuItemVisibility(items, visible) {
303261
+ const visibility = visible ? "visible" : "hidden";
303262
+ for (const item of items) {
303263
+ item.style.visibility = visibility;
303264
+ }
303265
+ }
303266
+ function checkLayout(nav) {
303267
+ const header2 = document.querySelector(
303268
+ "header .docs-page-header"
303269
+ );
303270
+ const left3 = document.querySelector(".docs-page-header__left");
303271
+ const right3 = document.querySelector(
303272
+ ".docs-page-header__right"
303273
+ );
303274
+ const menuItems = Array.from(
303275
+ nav.querySelectorAll(".docs-topnav__item")
303276
+ );
303277
+ header2.classList.remove("is-multi-row", "is-single-row");
303278
+ document.body.classList.remove("is-mobile");
303279
+ setMenuItemVisibility(menuItems, true);
303280
+ const leftWidth = left3.getBoundingClientRect().width;
303281
+ const rightWidth = right3.getBoundingClientRect().width;
303282
+ const headerWidth = getContentWidth(header2);
303283
+ const headerStyle = getComputedStyle(header2);
303284
+ const headerGap = parsePx(headerStyle.gap, 0);
303285
+ const totalNeeded = leftWidth + headerGap + rightWidth;
303286
+ const headerFit = totalNeeded <= headerWidth;
303287
+ header2.classList.toggle("is-multi-row", !headerFit);
303288
+ header2.classList.toggle("is-single-row", headerFit);
303289
+ if (!headerFit) {
303290
+ const topnavMaxWidth = getTopnavMaxWidht(right3);
303291
+ const topnavWidth = getMenuItemsWidth(menuItems);
303292
+ const topnavFit = topnavWidth < topnavMaxWidth;
303293
+ document.body.classList.toggle("is-mobile", !topnavFit);
303294
+ setMenuItemVisibility(menuItems, topnavFit);
303295
+ }
303296
+ }
303297
+ function headerLayoutDetector(nav) {
303298
+ const resizeObserver = new ResizeObserver(() => {
303299
+ const nav2 = document.querySelector("#topnav");
303300
+ if (nav2) {
303301
+ checkLayout(nav2);
303233
303302
  }
303234
- timeout2 = setTimeout(timedOutFunction, delay2);
303235
- if (callNow) {
303236
- func.apply(this);
303303
+ });
303304
+ document.documentElement.classList.remove("loading");
303305
+ resizeObserver.observe(document.body);
303306
+ window.addEventListener("docs:navigation", () => {
303307
+ const nav2 = document.querySelector("#topnav");
303308
+ if (nav2) {
303309
+ checkLayout(nav2);
303237
303310
  }
303238
- };
303311
+ });
303312
+ checkLayout(nav);
303239
303313
  }
303240
303314
 
303241
303315
  // src/runtime/topnav.ts
@@ -303244,102 +303318,15 @@ function getElementsRefs() {
303244
303318
  if (!nav) {
303245
303319
  return;
303246
303320
  }
303247
- const menuItems = Array.from(
303248
- nav.querySelectorAll(".docs-topnav__item")
303249
- );
303250
- const moreItem = menuItems.pop();
303251
- const moreButton = moreItem.querySelector("button");
303252
- const popoverContainer = moreItem.querySelector(".docs-contextmenu");
303253
- const popover = popoverContainer.querySelector(
303254
- ".docs-contextmenu__list"
303255
- );
303256
- const popoverItems = Array.from(
303257
- popover.querySelectorAll(".docs-contextmenu__item")
303258
- );
303259
- const highlightIndex = menuItems.findIndex(
303260
- (it) => it.classList.contains("highlight")
303261
- );
303262
- const itemPairs = menuItems.map((menu, index) => ({
303263
- menu,
303264
- popover: popoverItems[index]
303265
- }));
303266
303321
  return {
303267
- nav,
303268
- moreItem,
303269
- moreButton,
303270
- popoverContainer,
303271
- popover,
303272
- itemPairs,
303273
- highlightIndex
303322
+ nav
303274
303323
  };
303275
303324
  }
303276
- function setPopoverVisibility(visible, refs) {
303277
- refs.popover.style.visibility = visible ? "visible" : "hidden";
303278
- refs.moreButton.ariaExpanded = visible.toString();
303279
- }
303280
- function togglePopover(event3, refs) {
303281
- event3.stopPropagation();
303282
- setPopoverVisibility(refs.popover.style.visibility === "hidden", refs);
303283
- }
303284
- function closePopoverOnEsc(event3, refs) {
303285
- if (event3.key !== "Escape") {
303286
- return;
303287
- }
303288
- setPopoverVisibility(false, refs);
303289
- refs.moreButton.focus();
303290
- }
303291
- function onClickPopover(event3) {
303292
- event3.stopPropagation();
303293
- }
303294
- function hasOverflow(container2, content) {
303295
- return content.offsetLeft + content.offsetWidth > container2.offsetLeft + container2.offsetWidth;
303296
- }
303297
- function setMenuItemVisibility(itemPair, visible) {
303298
- itemPair.menu.style.visibility = visible ? "visible" : "hidden";
303299
- itemPair.popover.style.display = visible ? "none" : "block";
303300
- }
303301
- function calculateVisibility(refs) {
303302
- refs.moreItem.style.left = "0";
303303
- const menuItems = refs.itemPairs.map((item) => item.menu);
303304
- let overflowIndex = menuItems.findIndex((it) => hasOverflow(refs.nav, it));
303305
- if (overflowIndex === -1) {
303306
- for (const it of refs.itemPairs) {
303307
- setMenuItemVisibility(it, true);
303308
- }
303309
- refs.moreItem.style.visibility = "hidden";
303310
- setPopoverVisibility(false, refs);
303311
- return;
303312
- }
303313
- if (hasOverflow(refs.nav, {
303314
- offsetLeft: menuItems[overflowIndex].offsetLeft,
303315
- offsetWidth: refs.moreItem.offsetWidth
303316
- })) {
303317
- overflowIndex--;
303318
- }
303319
- for (const [index, it] of refs.itemPairs.entries()) {
303320
- setMenuItemVisibility(it, index < overflowIndex);
303321
- }
303322
- refs.moreItem.classList.toggle(
303323
- "highlight",
303324
- refs.highlightIndex >= overflowIndex
303325
- );
303326
- refs.moreItem.style.left = `${String(menuItems[overflowIndex].offsetLeft)}px`;
303327
- refs.moreItem.style.visibility = "visible";
303328
- const popupTop = refs.moreItem.offsetHeight + 16;
303329
- refs.popover.style.top = `${String(popupTop)}px`;
303330
- }
303331
303325
  function setup() {
303332
303326
  const refs = getElementsRefs();
303333
303327
  if (!refs) {
303334
303328
  return;
303335
303329
  }
303336
- refs.moreItem.addEventListener("click", (e3) => {
303337
- togglePopover(e3, refs);
303338
- });
303339
- refs.moreItem.addEventListener("keyup", (e3) => {
303340
- closePopoverOnEsc(e3, refs);
303341
- });
303342
- refs.popoverContainer.addEventListener("click", onClickPopover);
303343
303330
  return refs;
303344
303331
  }
303345
303332
  onContentReady(() => {
@@ -303347,25 +303334,7 @@ onContentReady(() => {
303347
303334
  if (!newRefs) {
303348
303335
  return;
303349
303336
  }
303350
- let refs = newRefs;
303351
- window.addEventListener(
303352
- "resize",
303353
- debounce2(() => {
303354
- calculateVisibility(refs);
303355
- }, 100)
303356
- );
303357
- window.addEventListener("docs:navigation", () => {
303358
- const newRefs2 = setup();
303359
- if (newRefs2) {
303360
- refs = newRefs2;
303361
- }
303362
- calculateVisibility(refs);
303363
- });
303364
- document.addEventListener("click", () => {
303365
- setPopoverVisibility(false, refs);
303366
- });
303367
- setPopoverVisibility(false, refs);
303368
- calculateVisibility(refs);
303337
+ headerLayoutDetector(newRefs.nav);
303369
303338
  });
303370
303339
 
303371
303340
  // src/runtime/motd/motd-symbol.ts
@@ -1,4 +1,3 @@
1
- @charset "UTF-8";
2
1
  .docs-api dt code {
3
2
  margin-left: -0.25rem;
4
3
  }
@@ -245,52 +244,19 @@ pre code {
245
244
  display: block;
246
245
  }
247
246
 
248
- .docs-contextmenu {
249
- background-color: var(--docs-contextmenu-background-color);
250
- }
251
- .docs-contextmenu__list {
252
- background: inherit;
253
- border-radius: 2px;
254
- border: 1px solid var(--docs-contextmenu-border-color);
255
- box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
256
- color: var(--docs-contextmenu-link-color);
257
- display: block;
258
- font-weight: normal;
259
- margin: 0;
260
- padding: 0.5rem;
261
- position: absolute;
262
- right: 0;
263
- visibility: hidden;
264
- z-index: 1;
265
- }
266
- .docs-contextmenu__item {
267
- display: block;
268
- list-style-type: none;
269
- white-space: nowrap;
270
- }
271
- .docs-contextmenu__item.highlight {
272
- background-color: var(--docs-contextmenu-highlight-color);
273
- font-weight: bold;
274
- }
275
- .docs-contextmenu__anchor {
276
- cursor: pointer;
277
- display: block;
278
- padding: 0.75rem;
279
- }
280
- .docs-contextmenu__anchor, .docs-contextmenu__anchor:visited, .docs-contextmenu__anchor:active {
281
- color: var(--docs-contextmenu-link-color-default);
282
- }
283
- .docs-contextmenu__anchor:hover {
284
- color: var(--docs-contextmenu-link-color-default);
285
- background-color: var(--docs-contextmenu-link-background-hover);
247
+ @media (width < 640px) {
248
+ .docs-topnav {
249
+ display: none;
250
+ }
286
251
  }
287
-
288
252
  .docs-topnav {
289
253
  background-color: var(--docs-topnav-background-color);
290
- margin: 0 -0.5rem;
291
254
  overflow: hidden;
292
255
  flex-grow: 1;
293
256
  }
257
+ .is-mobile .docs-topnav {
258
+ display: none;
259
+ }
294
260
  .docs-topnav__list {
295
261
  display: flex;
296
262
  gap: 1rem;
@@ -311,10 +277,6 @@ pre code {
311
277
  border-color: var(--docs-topnav-border-color-highlight);
312
278
  font-weight: bold;
313
279
  }
314
- .docs-topnav__item--more {
315
- position: absolute;
316
- visibility: hidden;
317
- }
318
280
  .docs-topnav__anchor {
319
281
  border: none;
320
282
  border-bottom: 5px solid transparent;
@@ -347,6 +309,7 @@ button.docs-topnav__anchor svg {
347
309
  display: grid;
348
310
  grid-template: "header" auto "primary" 1fr "footer" auto;
349
311
  min-height: 100vh;
312
+ max-width: 100vw;
350
313
  }
351
314
 
352
315
  header {
@@ -365,9 +328,19 @@ footer {
365
328
  }
366
329
 
367
330
  main {
368
- padding: 0 3rem 2rem;
331
+ padding: 0 1rem 2rem;
369
332
  max-width: 920px;
370
333
  }
334
+ @media (width > 640px) {
335
+ main {
336
+ padding: 0 3rem 2rem;
337
+ }
338
+ }
339
+ @media (width < 640px) {
340
+ main {
341
+ max-width: 100vw;
342
+ }
343
+ }
371
344
 
372
345
  .layout--content-with-menu #primary,
373
346
  .layout--api #primary,
@@ -403,6 +376,24 @@ main {
403
376
  grid-template: "sidenav title aside" auto "sidenav content aside" 1fr/min-content minmax(10rem, 920px) auto;
404
377
  }
405
378
  }
379
+ @media (width < 640px) {
380
+ .layout--content-with-menu #primary,
381
+ .layout--api #primary,
382
+ .layout--api--class #primary,
383
+ .layout--api--composable #primary,
384
+ .layout--api--constant #primary,
385
+ .layout--api--enum #primary,
386
+ .layout--api--function #primary,
387
+ .layout--api--interface #primary,
388
+ .layout--api--method #primary,
389
+ .layout--api--type #primary,
390
+ .layout--article #primary,
391
+ .layout--component #primary,
392
+ .layout--pattern #primary {
393
+ gap: 0;
394
+ padding: 0;
395
+ }
396
+ }
406
397
  .layout--content-with-menu main,
407
398
  .layout--api main,
408
399
  .layout--api--class main,
@@ -446,7 +437,7 @@ main {
446
437
  .layout--component #content,
447
438
  .layout--pattern #title,
448
439
  .layout--pattern #content {
449
- padding-left: 1rem;
440
+ padding: 0 1rem;
450
441
  }
451
442
  @media screen and (width < 1280px) {
452
443
  .layout--content-with-menu #aside,
@@ -466,10 +457,6 @@ main {
466
457
  }
467
458
  }
468
459
 
469
- #sidenav {
470
- grid-area: sidenav;
471
- }
472
-
473
460
  #aside {
474
461
  grid-area: aside;
475
462
  }
@@ -547,15 +534,6 @@ main {
547
534
  background-color: var(--docs-code-optional-background-color);
548
535
  }
549
536
 
550
- #sidenav {
551
- --header-footer-visible-height: 4.5rem;
552
- overflow: auto;
553
- max-height: calc(100vh - var(--header-footer-visible-height));
554
- scrollbar-gutter: stable;
555
- position: sticky;
556
- top: 0;
557
- }
558
-
559
537
  .navigation {
560
538
  --highlight-width: 4px;
561
539
  display: none;
@@ -563,9 +541,6 @@ main {
563
541
  width: var(--sidenav-width);
564
542
  height: max-content;
565
543
  }
566
- .sidenav__toggle:checked + .navigation {
567
- display: block;
568
- }
569
544
  @media screen and (width >= 1024px) {
570
545
  .navigation {
571
546
  display: block;
@@ -626,6 +601,95 @@ main {
626
601
  display: none;
627
602
  }
628
603
 
604
+ #mobile-sidenav {
605
+ --header-footer-visible-height: 4.5rem;
606
+ overflow: auto;
607
+ max-height: calc(100vh - var(--header-footer-visible-height));
608
+ scrollbar-gutter: stable;
609
+ position: sticky;
610
+ top: 0;
611
+ }
612
+
613
+ #mobile-toggle:focus-visible ~ .docs-mobile-nav-label,
614
+ #mobile-toggle:focus-visible ~ .docs-mobile-navigation .docs-mobile-nav-close {
615
+ box-shadow: var(--docs-focus-box-shadow);
616
+ outline: 3px solid transparent;
617
+ }
618
+
619
+ #mobile-toggle:checked ~ .docs-mobile-navigation {
620
+ display: flex;
621
+ flex-direction: column;
622
+ width: 100%;
623
+ max-width: 100vw;
624
+ height: 100%;
625
+ position: fixed;
626
+ gap: 1.5rem;
627
+ top: 0;
628
+ left: 0;
629
+ }
630
+
631
+ .docs-mobile-navigation {
632
+ --highlight-width: 4px;
633
+ background-color: var(--docs-background-color);
634
+ display: none;
635
+ padding: 1.5rem;
636
+ height: max-content;
637
+ z-index: 2;
638
+ }
639
+ .docs-mobile-navigation ul {
640
+ padding: 0;
641
+ }
642
+ .docs-mobile-navigation li {
643
+ list-style: none;
644
+ border-left: var(--highlight-width) solid transparent;
645
+ }
646
+ .docs-mobile-navigation li.link.highlight {
647
+ font-weight: bold;
648
+ border-color: var(--docs-navigation-highlight-color);
649
+ background-color: var(--docs-topnav-border-color-highlight-background-color);
650
+ }
651
+ .docs-mobile-navigation li.link a {
652
+ display: block;
653
+ color: var(--docs-text-color-default);
654
+ padding: 0.5rem calc(0.25rem + var(--highlight-width)) 0.5rem 0.25rem;
655
+ line-height: 1.2;
656
+ text-decoration: none;
657
+ text-overflow: ellipsis;
658
+ overflow: hidden;
659
+ }
660
+ .docs-mobile-navigation li.link a:hover {
661
+ background: var(--docs-navigation-hover-color);
662
+ border-color: var(--docs-navigation-highlight-color);
663
+ }
664
+ .docs-mobile-navigation summary {
665
+ cursor: pointer;
666
+ display: flex;
667
+ justify-content: space-between;
668
+ line-height: 1.5;
669
+ padding: 0.5rem calc(0.25rem + var(--highlight-width)) 0.5rem 0.25rem;
670
+ align-items: center;
671
+ }
672
+ .docs-mobile-navigation summary:hover {
673
+ background: var(--docs-navigation-hover-color);
674
+ border-color: var(--docs-navigation-highlight-color);
675
+ }
676
+ .docs-mobile-navigation .docs-icon {
677
+ transition: transform 0.2s ease-in-out;
678
+ }
679
+ .docs-mobile-navigation details[open] > summary {
680
+ font-weight: 700;
681
+ }
682
+ .docs-mobile-navigation details[open] > summary .docs-icon {
683
+ transform: rotate(180deg);
684
+ }
685
+ .docs-mobile-navigation details > ul {
686
+ margin-bottom: 0;
687
+ margin-left: 1rem;
688
+ }
689
+ .docs-mobile-navigation details summary::-webkit-details-marker {
690
+ display: none;
691
+ }
692
+
629
693
  #outline {
630
694
  margin-bottom: 1rem;
631
695
  }
@@ -940,106 +1004,6 @@ footer a:hover {
940
1004
  background: var(--docs-background-color);
941
1005
  }
942
1006
 
943
- /* Page header - inverted */
944
- header .page-header {
945
- background-color: var(--docs-header-background-color);
946
- padding: 0.5rem 1.2rem;
947
- border-bottom: 1px solid var(--docs-header-border-color);
948
- }
949
-
950
- header .page-header__logo--small {
951
- background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEiIGhlaWdodD0iMzEiIHZpZXdCb3g9IjAgMCAzMSAzMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iMC41IiB5PSIwLjU4Mzk4NCIgd2lkdGg9IjI5LjM1MzUiIGh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955
- padding: 0.7rem;
956
- }
957
-
958
- header .page-header__app-name {
959
- color: #116a3e;
960
- font-size: 1.2rem;
961
- width: auto;
962
- margin-right: 4rem;
963
- }
964
-
965
- header .page-header__logo::after {
966
- background-color: #116a3e;
967
- margin: 0 1rem;
968
- }
969
-
970
- header .page-header__right {
971
- justify-content: space-between;
972
- min-width: 0;
973
- max-width: 1260px;
974
- padding-top: 0;
975
- flex-wrap: wrap-reverse;
976
- }
977
-
978
- header .page-header__right-slot {
979
- padding-top: 0.3rem;
980
- }
981
-
982
- @media screen and (width < 1024px) {
983
- header .page-header__right-slot {
984
- margin-top: 0.5rem;
985
- margin-left: -1.5rem;
986
- }
987
- header button kbd {
988
- display: none;
989
- }
990
- }
991
- /* navigering vänster */
992
- #sidenav {
993
- background-color: var(--docs-menu-background-color);
994
- width: auto;
995
- display: flex;
996
- justify-content: space-between;
997
- flex-direction: row-reverse;
998
- }
999
-
1000
- .sidenav__toggle {
1001
- position: sticky;
1002
- height: min-content;
1003
- width: min-content;
1004
- padding: 0.5rem;
1005
- cursor: pointer;
1006
- appearance: none;
1007
- display: flex;
1008
- justify-content: center;
1009
- }
1010
-
1011
- @media screen and (width >= 1024px) {
1012
- .sidenav__toggle {
1013
- display: none;
1014
- }
1015
- }
1016
- .sidenav__toggle:hover {
1017
- background-color: #ddddde;
1018
- }
1019
-
1020
- .sidenav__toggle:checked {
1021
- justify-content: flex-end;
1022
- margin-top: 0;
1023
- margin-right: 0;
1024
- }
1025
-
1026
- .sidenav__toggle::after {
1027
- content: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjAuMiwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxhZ2VyXzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggZmlsbD0iY3VycmVudENvbG9yIiBkPSJNNDc1LjQsMjA5LjZIMzYuNkMxNi40LDIwOS42LDAsMjI1LjksMCwyNDYuMWwwLDBjMCwyMC4yLDE2LjQsMzYuNiwzNi42LDM2LjZoNDM4LjljMjAuMiwwLDM2LjYtMTYuNCwzNi42LTM2LjZsMCwwCgkJQzUxMiwyMjUuOSw0OTUuNiwyMDkuNiw0NzUuNCwyMDkuNnogTTQ3NS40LDM5Mi40SDM2LjZDMTYuNCwzOTIuNCwwLDQwOC44LDAsNDI5bDAsMGMwLDIwLjIsMTYuNCwzNi42LDM2LjYsMzYuNmg0MzguOQoJCWMyMC4yLDAsMzYuNi0xNi40LDM2LjYtMzYuNmwwLDBDNTEyLDQwOC44LDQ5NS42LDM5Mi40LDQ3NS40LDM5Mi40eiBNNDc1LjQsMjYuN0gzNi42QzE2LjQsMjYuNywwLDQzLjEsMCw2My4zbDAsMAoJCWMwLDIwLjIsMTYuNCwzNi42LDM2LjYsMzYuNmg0MzguOWMyMC4yLDAsMzYuNi0xNi40LDM2LjYtMzYuNmwwLDBDNTEyLDQzLjEsNDk1LjYsMjYuNyw0NzUuNCwyNi43eiIvPgo8L2c+Cjwvc3ZnPgo=");
1028
- background-size: contain;
1029
- display: inline-block;
1030
- padding: 0.5rem;
1031
- width: 2rem;
1032
- height: 2rem;
1033
- }
1034
-
1035
- .sidenav__toggle:checked::after {
1036
- content: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGlu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Q2LjEsMS40LTY0LjNMMzI5LjUsMjU2eiIvPgo8L2c+Cjwvc3ZnPgo=");
1037
- width: 2rem;
1038
- height: 2rem;
1039
- padding: 0.5rem;
1040
- display: inline-block;
1041
- }
1042
-
1043
1007
  main #aside dl {
1044
1008
  margin-bottom: 2rem;
1045
1009
  }