Skip to content

Commit 71c985a

Browse files
Improve API doc content alignment consistency
1 parent f4014fb commit 71c985a

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

docs/content/fsdocs-default.css

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,23 @@ span[onmouseout] {
10831083
display: flex;
10841084
flex-direction: column;
10851085
justify-content: flex-start;
1086+
1087+
> * {
1088+
margin: var(--spacing-200) 0 var(--spacing-200) var(--spacing-300);
1089+
1090+
&:first-child:is(.icon-button-row) {
1091+
margin-top: 0;
1092+
margin-bottom: 0;
1093+
}
1094+
1095+
&:nth-child(2) {
1096+
margin-top: 0;
1097+
}
1098+
1099+
&:last-child {
1100+
margin-bottom: 0;
1101+
}
1102+
}
10861103
}
10871104

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

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

1130-
.fsdocs-returns, .fsdocs-params, .fsdocs-example-header, pre.fssnip.highlighted {
1145+
& details > * {
11311146
margin: var(--spacing-200) 0 var(--spacing-200) var(--spacing-300);
11321147

1148+
&:is(summary) {
1149+
margin-top: 0;
1150+
margin-bottom: 0;
1151+
}
1152+
11331153
&:first-child {
11341154
margin-top: 0;
11351155
}

0 commit comments

Comments
 (0)