doc: Allow to control wrapping behavior per table
Backport a useful CSS rule from Godot that allows to have *all* cells of a table to wrap. This can be useful for list-tables in particular, where otherwise the first column don't wrap. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
7e02a0379f
commit
677219ff1a
1 changed files with 6 additions and 0 deletions
6
doc/_static/css/custom.css
vendored
6
doc/_static/css/custom.css
vendored
|
@ -306,6 +306,12 @@ a.icon-home:visited {
|
|||
white-space: normal;
|
||||
}
|
||||
|
||||
/* Allow to control wrapping behavior per table */
|
||||
.wy-table-responsive table.wrap-normal td,
|
||||
.wy-table-responsive table.wrap-normal th {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
/* Make sure not to wrap keyboard shortcuts */
|
||||
.wy-table-responsive table td kbd {
|
||||
white-space: nowrap;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue