From 8a57c4b22c83d96c5719dd135a22719c22109060 Mon Sep 17 00:00:00 2001 From: nojaf Date: Fri, 31 May 2024 08:49:30 +0200 Subject: [PATCH] Nitpicks --- docs/content/fsdocs-default.css | 10 ++++++---- docs/content/fsdocs-theme.js | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/content/fsdocs-default.css b/docs/content/fsdocs-default.css index b2e050c4..e2063f56 100644 --- a/docs/content/fsdocs-default.css +++ b/docs/content/fsdocs-default.css @@ -47,6 +47,8 @@ --main-grid-row: 2; --main-grid-column: 2; --dialog-width: 500px; + --api-docs-first-column-min-width: 320px; + --api-docs-second-column-min-width: 240px; /* light theme */ --primary: #1e8bc3; @@ -1016,11 +1018,11 @@ span[onmouseout] { & tr { display: flex; flex-flow: row wrap; - column-gap: 1rem; + column-gap: var(--spacing-300); & td:first-of-type { flex: 25 0 0; - min-width: 20em; + min-width: var(--api-docs-first-column-min-width); overflow-x: hidden; text-overflow: ellipsis; overflow-wrap: break-word; @@ -1032,7 +1034,7 @@ span[onmouseout] { & td:nth-of-type(2) { flex: 75 0 0; - min-width: 15em; + min-width: var(--api-docs-second-column-min-width); } } @@ -1068,7 +1070,7 @@ span[onmouseout] { counter-increment: list-item 0; list-style: disclosure-closed outside; cursor: pointer; - margin-left: 1rem; + margin-left: var(--spacing-300); > .fsdocs-summary { display: flex; diff --git a/docs/content/fsdocs-theme.js b/docs/content/fsdocs-theme.js index 3cea8682..eea7d521 100644 --- a/docs/content/fsdocs-theme.js +++ b/docs/content/fsdocs-theme.js @@ -22,7 +22,7 @@ function scrollToAndExpandSelectedMember() { } scrollToAndExpandSelectedMember(); -addEventListener('hashchange', _event => scrollToAndExpandSelectedMember()); +addEventListener('hashchange', scrollToAndExpandSelectedMember); if(location.pathname.startsWith('/reference/')) { // Scroll to API Reference header