Skip to content

Commit 57aedb4

Browse files
committed
Collapse paragraph tag in certain cases
1 parent a553c21 commit 57aedb4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

site/default/static/styles/styles.less

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,19 @@ header, footer {
9090

9191
.main:extend(.container) {
9292
overflow-x: hidden; // fix to hide <pre> code overflow
93+
94+
// Collapse <p> for parameters, returns, and non-nested options
95+
.parameters, .returns, div.options {
96+
margin-bottom: 1em;
97+
98+
p:first-of-type {
99+
display: inline;
100+
101+
& + * {
102+
margin-top: 1em;
103+
}
104+
}
105+
}
93106
}
94107
}
95108

0 commit comments

Comments
 (0)