Skip to content

Commit 8a57c4b

Browse files
committed
Nitpicks
1 parent 6a8521e commit 8a57c4b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

docs/content/fsdocs-default.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
--main-grid-row: 2;
4848
--main-grid-column: 2;
4949
--dialog-width: 500px;
50+
--api-docs-first-column-min-width: 320px;
51+
--api-docs-second-column-min-width: 240px;
5052

5153
/* light theme */
5254
--primary: #1e8bc3;
@@ -1016,11 +1018,11 @@ span[onmouseout] {
10161018
& tr {
10171019
display: flex;
10181020
flex-flow: row wrap;
1019-
column-gap: 1rem;
1021+
column-gap: var(--spacing-300);
10201022

10211023
& td:first-of-type {
10221024
flex: 25 0 0;
1023-
min-width: 20em;
1025+
min-width: var(--api-docs-first-column-min-width);
10241026
overflow-x: hidden;
10251027
text-overflow: ellipsis;
10261028
overflow-wrap: break-word;
@@ -1032,7 +1034,7 @@ span[onmouseout] {
10321034

10331035
& td:nth-of-type(2) {
10341036
flex: 75 0 0;
1035-
min-width: 15em;
1037+
min-width: var(--api-docs-second-column-min-width);
10361038
}
10371039
}
10381040

@@ -1068,7 +1070,7 @@ span[onmouseout] {
10681070
counter-increment: list-item 0;
10691071
list-style: disclosure-closed outside;
10701072
cursor: pointer;
1071-
margin-left: 1rem;
1073+
margin-left: var(--spacing-300);
10721074

10731075
> .fsdocs-summary {
10741076
display: flex;

docs/content/fsdocs-theme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function scrollToAndExpandSelectedMember() {
2222
}
2323

2424
scrollToAndExpandSelectedMember();
25-
addEventListener('hashchange', _event => scrollToAndExpandSelectedMember());
25+
addEventListener('hashchange', scrollToAndExpandSelectedMember);
2626

2727
if(location.pathname.startsWith('/reference/')) {
2828
// Scroll to API Reference header

0 commit comments

Comments
 (0)