@forsakringskassan/docs-generator 2.38.4 → 2.38.6

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/dist/markdown.mjs CHANGED
@@ -2,8 +2,8 @@ import { createRequire as $createRequire } from "node:module";
2
2
 
3
3
  const require = $createRequire(import.meta.url);
4
4
 
5
- export { S as SoftError, c as createMarkdownRenderer } from './create-markdown-renderer-Da-vQQCp.mjs';
6
- import './vendor-BnFYrp5U.mjs';
5
+ export { S as SoftError, c as createMarkdownRenderer } from './create-markdown-renderer-B7yrXROV.mjs';
6
+ import './vendor-DgbU8VP_.mjs';
7
7
  import 'node:url';
8
8
  import 'node:path';
9
9
  import 'fs';
@@ -2054,6 +2054,7 @@ async function initVersionProcessor() {
2054
2054
  }
2055
2055
  dialog.addEventListener("close", () => {
2056
2056
  document.body.removeEventListener("click", clickListener);
2057
+ document.body.classList.remove("docs-modal-active");
2057
2058
  });
2058
2059
  dialogCloseButton.addEventListener("click", () => {
2059
2060
  dialog.close();
@@ -2069,6 +2070,7 @@ async function initVersionProcessor() {
2069
2070
  }
2070
2071
  dialog.showModal();
2071
2072
  document.body.addEventListener("click", clickListener);
2073
+ document.body.classList.add("docs-modal-active");
2072
2074
  });
2073
2075
  }
2074
2076
  function updateVersionList(element, versions) {
@@ -2077,6 +2079,7 @@ function updateVersionList(element, versions) {
2077
2079
  }
2078
2080
  const sortedVersions = ["latest", ...import_semver.default.rsort(versions)];
2079
2081
  const ul = document.createElement("ul");
2082
+ ul.classList.add("docs-selectable-version__list");
2080
2083
  const template = document.querySelector(`#version-list-item`);
2081
2084
  for (const version of sortedVersions) {
2082
2085
  const item = template.content.cloneNode(true);
package/dist/runtime.mjs CHANGED
@@ -1421,7 +1421,7 @@ function createDOMPurify() {
1421
1421
  const originalDocument = document2;
1422
1422
  const currentScript = originalDocument.currentScript;
1423
1423
  const {
1424
- DocumentFragment: DocumentFragment2,
1424
+ DocumentFragment: DocumentFragment3,
1425
1425
  HTMLTemplateElement,
1426
1426
  Node: Node2,
1427
1427
  Element: Element3,
@@ -2055,7 +2055,7 @@ function createDOMPurify() {
2055
2055
  _executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
2056
2056
  _sanitizeElements(shadowNode);
2057
2057
  _sanitizeAttributes(shadowNode);
2058
- if (shadowNode.content instanceof DocumentFragment2) {
2058
+ if (shadowNode.content instanceof DocumentFragment3) {
2059
2059
  _sanitizeShadowDOM2(shadowNode.content);
2060
2060
  }
2061
2061
  }
@@ -2125,7 +2125,7 @@ function createDOMPurify() {
2125
2125
  while (currentNode = nodeIterator.nextNode()) {
2126
2126
  _sanitizeElements(currentNode);
2127
2127
  _sanitizeAttributes(currentNode);
2128
- if (currentNode.content instanceof DocumentFragment2) {
2128
+ if (currentNode.content instanceof DocumentFragment3) {
2129
2129
  _sanitizeShadowDOM(currentNode.content);
2130
2130
  }
2131
2131
  }
@@ -2608,7 +2608,7 @@ function buildHTML(tree, options2) {
2608
2608
  return htmlNode;
2609
2609
  }
2610
2610
  function newDocumentFragment(children2) {
2611
- return new DocumentFragment(children2);
2611
+ return new DocumentFragment2(children2);
2612
2612
  }
2613
2613
  function isNumberPunctuation(group2) {
2614
2614
  if (!group2) {
@@ -3060,7 +3060,7 @@ function sizingGroup(value2, options2, baseOptions) {
3060
3060
  }
3061
3061
  return makeFragment(inner2);
3062
3062
  }
3063
- var ParseError, uppercase, hyphenate, ESCAPE_LOOKUP, ESCAPE_REGEX, escape2, getBaseElem, characterNodesTypes, isCharacterBox, protocolFromUrl, SETTINGS_SCHEMA, Settings, Style, D, Dc, T, Tc, S, Sc, SS, SSc, styles, sup, sub, fracNum, fracDen, cramp, text$1, Style$1, scriptData, allBlocks, hLinePad, sqrtMain, sqrtSize1, sqrtSize2, sqrtSize3, sqrtSize4, phasePath, sqrtTall, sqrtPath, innerPath, path, tallDelim, DocumentFragment, ptPerUnit, relativeUnit, validUnit, calculateSize, makeEm, createClass, initNode, toNode, invalidAttributeNameRegex, toMarkup, Span, Anchor, Img, iCombinations, SymbolNode, SvgNode, PathNode, LineNode, hasHtmlDomChildren, fontMetricsData, sigmasAndXis, extraCharacterMap, fontMetricsBySizeIndex, ATOMS, NON_ATOMS, symbols, math, text2, main, ams, accent, bin, close, inner, mathord, op, open, punct, rel, spacing, textord, ligatures, mathTextSymbols, ch, i3, textSymbols, _ch, _i, letters, _ch2, _i2, wideChar, _ch3, _i3, _ch4, _i4, extraLatin, _ch5, _i5, wideLatinLetterData, wideNumeralData, wideCharacterFont, lookupSymbol, makeSymbol, mathsym, boldsymbol, makeOrd, canCombine, tryCombineChars, sizeElementFromChildren, makeSpan, makeSvgSpan, makeLineSpan, makeAnchor, makeFragment, wrapFragment, getVListChildrenAndDepth, makeVList, makeGlue, retrieveTextFontName, fontMap, svgData, staticSvg, thinspace, mediumspace, thickspace, spacings, tightSpacings, _functions, _htmlGroupBuilders, _mathmlGroupBuilders, normalizeArgument, ordargument, binLeftCanceller, binRightCanceller, styleMap$1, DomEnum, buildExpression$1, _traverseNonSpaceNodes, checkPartialGroup, _getOutermostNode, getTypeOfDomTree, makeNullDelimiter, buildGroup$1, MathNode, TextNode, SpaceNode, noVariantSymbols, rowLikeTypes, makeText, makeRow, getVariant, buildExpression2, buildExpressionRow, buildGroup2, sizeStyleMap, sizeMultipliers, sizeAtStyle, Options, optionsFromSettings, displayWrap, buildTree, buildHTMLTree, stretchyCodePoint, stretchyMathML, katexImagesData, wideAccentLabels, stretchySvg, stretchyEnclose, getBaseSymbol, htmlBuilder$a, mathmlBuilder$9, NON_STRETCHY_ACCENT_REGEX, paddedNode, binrelClass, cdArrowFunctionName, newCell, isStartOfArrow, isLabelEnd, htmlBuilder$8, mathmlBuilder$7, globalMap, checkControlSequence, getRHS, letCommand, getMetrics, styleWrap, centerSpan, makeSmallDelim, mathrmSize, makeLargeDelim, makeGlyphSpan, makeInner, lapInEms, lap, verts, doubleVerts, makeStackedDelim, vbPad, emPad, sqrtSvg, makeSqrtImage, stackLargeDelimiters, stackAlwaysDelimiters, stackNeverDelimiters, sizeToMaxHeight, makeSizedDelim, stackNeverDelimiterSequence, stackAlwaysDelimiterSequence, stackLargeDelimiterSequence, delimTypeToFont, traverseSequence, makeCustomSizedDelim, makeLeftRightDelim, delimiterSizes, delimiters, htmlBuilder$7, mathmlBuilder$6, _environments, _macros, SourceLocation, Token, validateAmsEnvironmentContext, gatherEnvironments, htmlBuilder$6, alignMap, mathmlBuilder$5, alignedHandler, environments, htmlBuilder$5, mathmlBuilder$4, fontAliases, htmlBuilder$4, mathmlBuilder$3, wrapWithStyle, stylArray, delimFromValue, htmlBuilder$3, mathmlBuilder$2, sizeData, chooseMathStyle, assembleSupSub, noSuccessor, htmlBuilder$2, mathmlBuilder$1, singleCharBigOps, singleCharIntegrals, htmlBuilder$1, mathmlBuilder2, sizeFuncs, htmlBuilder2, styleMap, htmlBuilderDelegate, defaultVariant, cssSpace, regularSpace, pad, textFontFamilies, textFontWeights, textFontShapes, optionsWithFont, makeVerb, functions, spaceRegexString, controlWordRegexString, controlSymbolRegexString, controlWordWhitespaceRegexString, controlSpaceRegexString, combiningDiacriticalMarkString, combiningDiacriticalMarksEndRegex, tokenRegexString, Lexer, Namespace, macros, digitToNumber, newcommand, dotsByToken, dotsbGroups, spaceAfterDots, latexRaiseA, braketHelper, implicitCommands, MacroExpander, unicodeSubRegEx, uSubsAndSups, unicodeAccents, unicodeSymbols, Parser, parseTree, render, renderToString, generateParseTree, renderError, renderToDomTree, renderToHTMLTree, version, __domTree, katex;
3063
+ var ParseError, uppercase, hyphenate, ESCAPE_LOOKUP, ESCAPE_REGEX, escape2, getBaseElem, characterNodesTypes, isCharacterBox, protocolFromUrl, SETTINGS_SCHEMA, Settings, Style, D, Dc, T, Tc, S, Sc, SS, SSc, styles, sup, sub, fracNum, fracDen, cramp, text$1, Style$1, scriptData, allBlocks, hLinePad, sqrtMain, sqrtSize1, sqrtSize2, sqrtSize3, sqrtSize4, phasePath, sqrtTall, sqrtPath, innerPath, path, tallDelim, DocumentFragment2, ptPerUnit, relativeUnit, validUnit, calculateSize, makeEm, createClass, initNode, toNode, invalidAttributeNameRegex, toMarkup, Span, Anchor, Img, iCombinations, SymbolNode, SvgNode, PathNode, LineNode, hasHtmlDomChildren, fontMetricsData, sigmasAndXis, extraCharacterMap, fontMetricsBySizeIndex, ATOMS, NON_ATOMS, symbols, math, text2, main, ams, accent, bin, close, inner, mathord, op, open, punct, rel, spacing, textord, ligatures, mathTextSymbols, ch, i3, textSymbols, _ch, _i, letters, _ch2, _i2, wideChar, _ch3, _i3, _ch4, _i4, extraLatin, _ch5, _i5, wideLatinLetterData, wideNumeralData, wideCharacterFont, lookupSymbol, makeSymbol, mathsym, boldsymbol, makeOrd, canCombine, tryCombineChars, sizeElementFromChildren, makeSpan, makeSvgSpan, makeLineSpan, makeAnchor, makeFragment, wrapFragment, getVListChildrenAndDepth, makeVList, makeGlue, retrieveTextFontName, fontMap, svgData, staticSvg, thinspace, mediumspace, thickspace, spacings, tightSpacings, _functions, _htmlGroupBuilders, _mathmlGroupBuilders, normalizeArgument, ordargument, binLeftCanceller, binRightCanceller, styleMap$1, DomEnum, buildExpression$1, _traverseNonSpaceNodes, checkPartialGroup, _getOutermostNode, getTypeOfDomTree, makeNullDelimiter, buildGroup$1, MathNode, TextNode, SpaceNode, noVariantSymbols, rowLikeTypes, makeText, makeRow, getVariant, buildExpression2, buildExpressionRow, buildGroup2, sizeStyleMap, sizeMultipliers, sizeAtStyle, Options, optionsFromSettings, displayWrap, buildTree, buildHTMLTree, stretchyCodePoint, stretchyMathML, katexImagesData, wideAccentLabels, stretchySvg, stretchyEnclose, getBaseSymbol, htmlBuilder$a, mathmlBuilder$9, NON_STRETCHY_ACCENT_REGEX, paddedNode, binrelClass, cdArrowFunctionName, newCell, isStartOfArrow, isLabelEnd, htmlBuilder$8, mathmlBuilder$7, globalMap, checkControlSequence, getRHS, letCommand, getMetrics, styleWrap, centerSpan, makeSmallDelim, mathrmSize, makeLargeDelim, makeGlyphSpan, makeInner, lapInEms, lap, verts, doubleVerts, makeStackedDelim, vbPad, emPad, sqrtSvg, makeSqrtImage, stackLargeDelimiters, stackAlwaysDelimiters, stackNeverDelimiters, sizeToMaxHeight, makeSizedDelim, stackNeverDelimiterSequence, stackAlwaysDelimiterSequence, stackLargeDelimiterSequence, delimTypeToFont, traverseSequence, makeCustomSizedDelim, makeLeftRightDelim, delimiterSizes, delimiters, htmlBuilder$7, mathmlBuilder$6, _environments, _macros, SourceLocation, Token, validateAmsEnvironmentContext, gatherEnvironments, htmlBuilder$6, alignMap, mathmlBuilder$5, alignedHandler, environments, htmlBuilder$5, mathmlBuilder$4, fontAliases, htmlBuilder$4, mathmlBuilder$3, wrapWithStyle, stylArray, delimFromValue, htmlBuilder$3, mathmlBuilder$2, sizeData, chooseMathStyle, assembleSupSub, noSuccessor, htmlBuilder$2, mathmlBuilder$1, singleCharBigOps, singleCharIntegrals, htmlBuilder$1, mathmlBuilder2, sizeFuncs, htmlBuilder2, styleMap, htmlBuilderDelegate, defaultVariant, cssSpace, regularSpace, pad, textFontFamilies, textFontWeights, textFontShapes, optionsWithFont, makeVerb, functions, spaceRegexString, controlWordRegexString, controlSymbolRegexString, controlWordWhitespaceRegexString, controlSpaceRegexString, combiningDiacriticalMarkString, combiningDiacriticalMarksEndRegex, tokenRegexString, Lexer, Namespace, macros, digitToNumber, newcommand, dotsByToken, dotsbGroups, spaceAfterDots, latexRaiseA, braketHelper, implicitCommands, MacroExpander, unicodeSubRegEx, uSubsAndSups, unicodeAccents, unicodeSymbols, Parser, parseTree, render, renderToString, generateParseTree, renderError, renderToDomTree, renderToHTMLTree, version, __domTree, katex;
3064
3064
  var init_katex = __esm({
3065
3065
  "node_modules/katex/dist/katex.mjs"() {
3066
3066
  ParseError = class _ParseError extends Error {
@@ -3631,7 +3631,7 @@ var init_katex = __esm({
3631
3631
  throw new Error("Unknown stretchy delimiter.");
3632
3632
  }
3633
3633
  };
3634
- DocumentFragment = class {
3634
+ DocumentFragment2 = class {
3635
3635
  // Never used; needed for satisfying interface.
3636
3636
  constructor(children2) {
3637
3637
  this.children = children2;
@@ -4038,7 +4038,7 @@ var init_katex = __esm({
4038
4038
  return markup;
4039
4039
  }
4040
4040
  };
4041
- hasHtmlDomChildren = (node2) => node2 instanceof Span || node2 instanceof Anchor || node2 instanceof DocumentFragment;
4041
+ hasHtmlDomChildren = (node2) => node2 instanceof Span || node2 instanceof Anchor || node2 instanceof DocumentFragment2;
4042
4042
  fontMetricsData = {
4043
4043
  "AMS-Regular": {
4044
4044
  "32": [0, 0, 0, 0, 0.25],
@@ -7282,12 +7282,12 @@ var init_katex = __esm({
7282
7282
  return anchor2;
7283
7283
  };
7284
7284
  makeFragment = function makeFragment2(children2) {
7285
- var fragment = new DocumentFragment(children2);
7285
+ var fragment = new DocumentFragment2(children2);
7286
7286
  sizeElementFromChildren(fragment);
7287
7287
  return fragment;
7288
7288
  };
7289
7289
  wrapFragment = function wrapFragment2(group2, options2) {
7290
- if (group2 instanceof DocumentFragment) {
7290
+ if (group2 instanceof DocumentFragment2) {
7291
7291
  return makeSpan([], [group2], options2);
7292
7292
  }
7293
7293
  return group2;
@@ -7637,7 +7637,7 @@ var init_katex = __esm({
7637
7637
  var groups = [];
7638
7638
  for (var i3 = 0; i3 < expression.length; i3++) {
7639
7639
  var output2 = buildGroup$1(expression[i3], options2);
7640
- if (output2 instanceof DocumentFragment) {
7640
+ if (output2 instanceof DocumentFragment2) {
7641
7641
  var children2 = output2.children;
7642
7642
  groups.push(...children2);
7643
7643
  } else {
@@ -7723,7 +7723,7 @@ var init_katex = __esm({
7723
7723
  }
7724
7724
  };
7725
7725
  checkPartialGroup = function checkPartialGroup2(node2) {
7726
- if (node2 instanceof DocumentFragment || node2 instanceof Anchor || node2 instanceof Span && node2.hasClass("enclosing")) {
7726
+ if (node2 instanceof DocumentFragment2 || node2 instanceof Anchor || node2 instanceof Span && node2.hasClass("enclosing")) {
7727
7727
  return node2;
7728
7728
  }
7729
7729
  return null;
@@ -160602,7 +160602,10 @@ function isMoreSpecific(a2, b3) {
160602
160602
  }
160603
160603
  function updateActive(items, active) {
160604
160604
  for (const [index, item2] of items.entries()) {
160605
- item2.classList.toggle("list__item--active", index === active);
160605
+ item2.classList.toggle(
160606
+ "docs-search-result__item--active",
160607
+ index === active
160608
+ );
160606
160609
  }
160607
160610
  const item = items[active];
160608
160611
  e4(item, {
@@ -160630,6 +160633,8 @@ function setup() {
160630
160633
  const input = document.querySelector("#search-field");
160631
160634
  const form = document.querySelector("#search-form");
160632
160635
  const results = document.querySelector("#search-results");
160636
+ const template = document.querySelector(`#search-result-item`);
160637
+ const dialogCloseButton = dialog.querySelector("button");
160633
160638
  let index = null;
160634
160639
  let searchTerm = "";
160635
160640
  let active = 0;
@@ -160687,28 +160692,28 @@ function setup() {
160687
160692
  }
160688
160693
  active = 0;
160689
160694
  const rootUrl = document.documentElement.dataset.rootUrl ?? ".";
160690
- const ul = document.createElement("ul");
160691
- ul.classList.add("list");
160695
+ const fragment = new DocumentFragment();
160692
160696
  for (const [
160693
160697
  i3,
160694
160698
  { matchType, highlighted, doc }
160695
160699
  ] of searchResults.entries()) {
160696
- const li = document.createElement("li");
160697
- const a2 = document.createElement("a");
160700
+ const item = template.content.cloneNode(true);
160701
+ const li = item.querySelector("li");
160702
+ const a2 = item.querySelector("a");
160698
160703
  if (matchType === "term") {
160699
160704
  a2.innerHTML = `${doc.title} (${highlighted})`;
160700
160705
  } else {
160701
160706
  a2.innerHTML = highlighted;
160702
160707
  }
160703
160708
  a2.href = [rootUrl, doc.url].join("/");
160704
- a2.classList.add("list__item__itempane");
160705
- li.classList.add("list__item");
160706
- li.classList.toggle("list__item--active", i3 === active);
160707
- li.append(a2);
160708
- ul.append(li);
160709
+ li.classList.toggle(
160710
+ "docs-search-result__item--active",
160711
+ i3 === active
160712
+ );
160713
+ fragment.append(li);
160709
160714
  }
160710
160715
  results.innerHTML = "";
160711
- results.append(ul);
160716
+ results.append(fragment);
160712
160717
  }
160713
160718
  function clickOutside(event3) {
160714
160719
  const rect3 = dialog.getBoundingClientRect();
@@ -160719,11 +160724,15 @@ function setup() {
160719
160724
  }
160720
160725
  dialog.addEventListener("close", () => {
160721
160726
  document.body.removeEventListener("click", clickOutside);
160727
+ document.body.classList.remove("docs-modal-active");
160722
160728
  });
160723
160729
  fetch(url).then((response) => response.json()).then((value2) => {
160724
160730
  index = value2;
160725
160731
  updateResults();
160726
160732
  });
160733
+ dialogCloseButton.addEventListener("click", () => {
160734
+ dialog.close();
160735
+ });
160727
160736
  input.addEventListener("input", () => {
160728
160737
  searchTerm = input.value.toLowerCase();
160729
160738
  updateResults();
@@ -160765,6 +160774,7 @@ function setup() {
160765
160774
  updateResults();
160766
160775
  dialog.showModal();
160767
160776
  document.body.addEventListener("click", clickOutside);
160777
+ document.body.classList.add("docs-modal-active");
160768
160778
  }
160769
160779
  });
160770
160780
  window.addEventListener("docs:navigation", () => {
@@ -160780,6 +160790,7 @@ function setup() {
160780
160790
  input.value = searchTerm = "";
160781
160791
  dialog.showModal();
160782
160792
  document.body.addEventListener("click", clickOutside);
160793
+ document.body.classList.add("docs-modal-active");
160783
160794
  });
160784
160795
  }
160785
160796
  }
@@ -121,37 +121,37 @@ h6:not(.code-preview h6) {
121
121
  }
122
122
 
123
123
  h1 {
124
- font-size: var(--f-font-size-h1);
125
- color: var(--f-text-color-heading-1);
124
+ font-size: 2.5rem;
125
+ color: inherit;
126
126
  letter-spacing: var(--docs-heading-letter-spacing-h1);
127
127
  }
128
128
 
129
129
  h2 {
130
- font-size: var(--f-font-size-h2);
131
- color: var(--f-text-color-heading-2);
130
+ font-size: 1.75rem;
131
+ color: inherit;
132
132
  letter-spacing: var(--docs-heading-letter-spacing-h2);
133
133
  }
134
134
 
135
135
  h3 {
136
- font-size: var(--f-font-size-h3);
137
- color: var(--f-text-color-heading-3);
136
+ font-size: 1.375rem;
137
+ color: inherit;
138
138
  letter-spacing: var(--docs-heading-letter-spacing-h3);
139
139
  }
140
140
 
141
141
  h4 {
142
- font-size: var(--f-font-size-h4);
143
- color: var(--f-text-color-heading-4);
142
+ font-size: 1.25rem;
143
+ color: inherit;
144
144
  letter-spacing: var(--docs-heading-letter-spacing-h4);
145
145
  }
146
146
 
147
147
  h5 {
148
- font-size: var(--f-font-size-large);
149
- color: var(--f-text-color-heading-5);
148
+ font-size: 1.125rem;
149
+ color: inherit;
150
150
  }
151
151
 
152
152
  h6 {
153
- font-size: var(--f-font-size-standard);
154
- color: var(--f-text-color-heading-6);
153
+ font-size: 1rem;
154
+ color: inherit;
155
155
  }
156
156
 
157
157
  h1 > a,
@@ -174,22 +174,22 @@ h6 > a {
174
174
 
175
175
  @media (width <= 640px) {
176
176
  h1 {
177
- font-size: var(--f-font-size-h2);
177
+ font-size: 1.75rem;
178
178
  }
179
179
  h2 {
180
- font-size: var(--f-font-size-xxx-large);
180
+ font-size: 1.5rem;
181
181
  }
182
182
  h3 {
183
- font-size: var(--f-font-size-h4);
183
+ font-size: 1.25rem;
184
184
  }
185
185
  h4 {
186
- font-size: var(--f-font-size-large);
186
+ font-size: 1.125rem;
187
187
  }
188
188
  h5 {
189
- font-size: var(--f-font-size-standard);
189
+ font-size: 1rem;
190
190
  }
191
191
  h6 {
192
- font-size: var(--f-font-size-standard);
192
+ font-size: 1rem;
193
193
  }
194
194
  }
195
195
  h1 + h2 {
@@ -221,13 +221,13 @@ h5 + h6 {
221
221
 
222
222
  b,
223
223
  strong {
224
- font-weight: var(--f-font-weight-medium);
224
+ font-weight: 700;
225
225
  }
226
226
 
227
227
  code {
228
228
  font-size: var(--docs-font-size);
229
- border-radius: var(--f-border-radius-small);
230
- font-family: var(--f-font-family-code);
229
+ border-radius: 2px;
230
+ font-family: Consolas, "Liberation Mono", Courier, monospace;
231
231
  background-color: var(--docs-code-background-color);
232
232
  display: inline-block;
233
233
  margin: 0 0.25rem;
@@ -723,42 +723,6 @@ main {
723
723
  text-decoration: none;
724
724
  }
725
725
 
726
- #version button {
727
- padding: 0;
728
- background: transparent;
729
- border: 0;
730
- box-shadow: none;
731
- margin: 0;
732
- color: var(--f-text-color-discrete);
733
- text-decoration-color: var(--f-text-color-discrete);
734
- }
735
-
736
- #version-dialog {
737
- --docs-text-color-default: var(--docs-version-text-color);
738
- width: 30rem;
739
- max-height: 80vh;
740
- background: var(--docs-version-background-color);
741
- border: 1px solid var(--docs-version-border-color);
742
- color: var(--docs-text-color-default);
743
- }
744
- #version-dialog a {
745
- text-decoration: none;
746
- }
747
-
748
- #version-dialog-head {
749
- display: flex;
750
- justify-content: space-between;
751
- align-items: flex-start;
752
- }
753
-
754
- #version-dialog .list__item__itempane {
755
- padding: 0.2rem;
756
- }
757
-
758
- #version button:hover {
759
- background-color: #f4f4f4;
760
- }
761
-
762
726
  @keyframes skeleton {
763
727
  from {
764
728
  transform: translateX(-100%);
@@ -918,15 +882,6 @@ code.hljs {
918
882
  font-weight: bold;
919
883
  }
920
884
 
921
- /* reset broken FKUI reset */
922
- dialog {
923
- display: none;
924
- }
925
-
926
- dialog[open] {
927
- display: block;
928
- }
929
-
930
885
  dd > dl {
931
886
  border-left: 2px solid var(--docs-text-color-discrete);
932
887
  padding-left: 1rem;
@@ -1050,17 +1005,6 @@ header .page-header__logo::after {
1050
1005
  margin: 0 1rem;
1051
1006
  }
1052
1007
 
1053
- header .select-field {
1054
- --f-background-input-hover: #f4f4f4;
1055
- --f-input-shadow-inset: none;
1056
- padding-left: 1rem;
1057
- display: flex;
1058
- flex-direction: row;
1059
- align-items: center;
1060
- margin: 0;
1061
- width: var(--f-width-full, 100%);
1062
- }
1063
-
1064
1008
  header .page-header__right {
1065
1009
  justify-content: space-between;
1066
1010
  min-width: 0;
@@ -1082,24 +1026,6 @@ header .page-header__right-slot {
1082
1026
  display: none;
1083
1027
  }
1084
1028
  }
1085
- header .select-field__icon {
1086
- top: 0.5rem;
1087
- color: #1b1e23;
1088
- }
1089
-
1090
- header .select-field__select {
1091
- width: auto;
1092
- border: 1px solid #8d8e91;
1093
- padding-right: 3rem;
1094
- }
1095
-
1096
- header .label {
1097
- font-weight: 400;
1098
- color: var(--docs-text-color-discrete);
1099
- margin-right: 1rem;
1100
- margin-bottom: 0;
1101
- }
1102
-
1103
1029
  /* navigering vänster */
1104
1030
  #sidenav {
1105
1031
  background-color: var(--docs-menu-background-color);
@@ -1216,19 +1142,25 @@ main #aside dd {
1216
1142
  }
1217
1143
 
1218
1144
  /* Increased specificity to override button styling */
1219
- .code-preview .code-preview__fullscreen,
1220
- .code-preview .button.code-preview__toggle-markup {
1145
+ .code-preview .code-preview__button {
1146
+ border: none;
1147
+ background: transparent;
1148
+ cursor: pointer;
1221
1149
  display: inline-flex;
1222
1150
  align-items: center;
1223
1151
  width: fit-content;
1224
1152
  margin: 0;
1225
1153
  padding: 0.5rem;
1226
1154
  font-weight: 600;
1227
- line-height: var(--f-line-height-medium);
1155
+ line-height: 1.4;
1228
1156
  color: var(--docs-text-color-default);
1229
1157
  }
1230
- .code-preview .code-preview__fullscreen .icon,
1231
- .code-preview .button.code-preview__toggle-markup .icon {
1158
+ .code-preview .code-preview__button:focus-visible {
1159
+ border-radius: 0;
1160
+ box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1b1e23, 0 0 0 6px #ffffff;
1161
+ outline: 3px solid transparent;
1162
+ }
1163
+ .code-preview .code-preview__button .icon {
1232
1164
  margin-right: 0.25rem;
1233
1165
  }
1234
1166
 
@@ -1283,86 +1215,6 @@ pre.mermaid:not([data-processed])::after {
1283
1215
  display: flex;
1284
1216
  }
1285
1217
 
1286
- kbd {
1287
- border: 1px solid #bbbbbd;
1288
- color: var(--docs-text-color-discrete);
1289
- padding: 0.1rem 0.5rem;
1290
- border-radius: 6px;
1291
- font-family: var(--docs-font-family);
1292
- }
1293
-
1294
- #search button {
1295
- background: transparent;
1296
- color: var(--docs-text-color-discrete);
1297
- border-radius: 4px;
1298
- border: 0;
1299
- box-shadow: none;
1300
- cursor: text;
1301
- min-height: 2.5rem;
1302
- padding: 0 0.75rem;
1303
- width: 100%;
1304
- }
1305
-
1306
- #search button:hover {
1307
- cursor: pointer;
1308
- background-color: var(--docs-search-button-color-hover);
1309
- }
1310
-
1311
- #search button:focus {
1312
- box-shadow: var(--f-focus-box-shadow);
1313
- }
1314
-
1315
- #search .search__icon {
1316
- display: inline-block;
1317
- height: 1rem;
1318
- margin-right: 0.5rem;
1319
- max-height: 100%;
1320
- max-width: 100%;
1321
- pointer-events: none;
1322
- width: 1rem;
1323
- }
1324
-
1325
- #search-dialog {
1326
- --docs-text-color-default: var(--docs-search-text-color);
1327
- margin-top: 80px;
1328
- background: var(--docs-search-background-color);
1329
- border: 1px solid var(--docs-search-border-color);
1330
- color: var(--docs-text-color-default);
1331
- width: 580px;
1332
- }
1333
-
1334
- #search-dialog label {
1335
- font-weight: 600;
1336
- font-size: 1.2rem;
1337
- margin-bottom: 1rem;
1338
- color: var(--docs-text-color-default);
1339
- }
1340
-
1341
- #search-results {
1342
- overflow-y: auto;
1343
- max-height: 60vh;
1344
- margin: 0.5rem 0;
1345
- padding: 0.2rem;
1346
- }
1347
-
1348
- #search-results a,
1349
- #search-results a:visited {
1350
- color: var(--docs-text-color-default);
1351
- text-decoration: none;
1352
- }
1353
-
1354
- #search-results .list__item--active {
1355
- background-color: #e5e5e5;
1356
- }
1357
-
1358
- #search-results .list__item:hover {
1359
- background-color: #e5e5e5;
1360
- }
1361
-
1362
- #search-results .list__item__itempane:focus {
1363
- background-color: #f4f4f4;
1364
- }
1365
-
1366
1218
  .docs-deprecated {
1367
1219
  color: var(--docs-error-color);
1368
1220
  }