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