Skip to content

Commit

Permalink
Improve API doc content alignment consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
brianrourkeboll committed Jun 19, 2024
1 parent f4014fb commit 71c985a
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 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;
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, .fsdocs-example-header, pre.fssnip.highlighted {
& details > * {
margin: var(--spacing-200) 0 var(--spacing-200) var(--spacing-300);

&:is(summary) {
margin-top: 0;
margin-bottom: 0;
}

&:first-child {
margin-top: 0;
}
Expand Down

0 comments on commit 71c985a

Please sign in to comment.