Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve API doc content alignment #923

Merged
merged 5 commits into from
Jun 19, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions docs/content/fsdocs-default.css
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,23 @@ span[onmouseout] {
display: flex;
flex-direction: column;
justify-content: flex-start;

> * {
margin: var(--spacing-200) 0 var(--spacing-200) var(--spacing-300);

&:first-child:is(.icon-button-row) {
margin-top: 0;
brianrourkeboll marked this conversation as resolved.
Show resolved Hide resolved
margin-bottom: 0;
}

&:nth-child(2) {
margin-top: 0;
}

&:last-child {
margin-bottom: 0;
}
}
}

.icon-button-row {
Expand All @@ -1099,8 +1116,6 @@ span[onmouseout] {
counter-increment: list-item 0;
list-style: disclosure-closed outside;
cursor: pointer;
width: calc(100% - var(--spacing-300));
margin-left: var(--spacing-300);

> .fsdocs-summary {
display: flex;
Expand All @@ -1127,9 +1142,14 @@ span[onmouseout] {
margin-bottom: var(--spacing-200);
}

.fsdocs-returns, .fsdocs-params {
& details > * {
margin: var(--spacing-200) 0 var(--spacing-200) var(--spacing-300);

&:is(summary) {
margin-top: 0;
brianrourkeboll marked this conversation as resolved.
Show resolved Hide resolved
margin-bottom: 0;
}

&:first-child {
margin-top: 0;
}
Expand All @@ -1147,6 +1167,10 @@ span[onmouseout] {
margin: var(--spacing-200) 0;
}

.fsdocs-example-header {
font-size: var(--font-200);
}

> div.fsdocs-summary {
display: flex;
flex-direction: row;
Expand Down
Loading