doc/common/css/ide: improve styling of field list

The default style of using a grid with two columns wastes space when
displayed in a narrow pane, like in Pybricks Code. Using flex with
column direction makes it flow from top to bottom.

Fixes: https://github.com/pybricks/support/issues/832
This commit is contained in:
David Lechner authored and laurensvalk committed 2022-12-07 20:21:47 +01:00
1 parent 4da4ce8f7c
commit 3418c8320c
1 file changed
+8
+8
View File
@@ -40,3 +40,11 @@
::-webkit-scrollbar-thumb:hover {
background: #182026;
}
html.writer-html5 .rst-content dl.citation,
html.writer-html5 .rst-content dl.field-list,
html.writer-html5 .rst-content dl.footnote {
display: flex;
flex-direction: column;
grid-template-columns: unset;
}