mirror of
https://git.rtems.org/rtems-docs/
synced 2025-05-17 18:31:44 +08:00
Add wrap support to long table entries.
This commit is contained in:
parent
859f0b7319
commit
eccd84e752
@ -30,32 +30,26 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Special table for RTEMS. Wrap cell contents and vertically align to the top.
|
* Literals.
|
||||||
*/
|
*/
|
||||||
table.rtems-table.docutils td {
|
.rst-content code.literal {
|
||||||
white-space: normal;
|
background: transparent;
|
||||||
vertical-align: top;
|
color: #77AD4A;
|
||||||
|
border: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Special table. We do not use this because the format is only for HTML
|
* Special table for RTEMS. Wrap cell contents and vertically align to the top.
|
||||||
* not PDF. Left here as a record.
|
*
|
||||||
|
* Note: this is not working as expected. The white-space: normal cause the
|
||||||
|
* columns in the box to not space correctly. The split in half.
|
||||||
*/
|
*/
|
||||||
table.rtems-items-table.docutils:not(.field-list) tr:nth-child(2n-1) td,
|
table.rtems-table.docutils {
|
||||||
table.rtems-items-table.docutils:not(.field-list) tr:nth-child(2n) td {
|
table-layout: fixed;
|
||||||
background-color: #fcfcfc;
|
}
|
||||||
white-space: normal;
|
table.rtems-table.docutils td {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
border-width: 0;
|
white-space: normal;
|
||||||
padding-right: 5px;
|
|
||||||
padding-left: 5px;
|
|
||||||
}
|
|
||||||
table.rtems-items-table.docutils:not(.field-list) tr td:nth-child(2n-1) {
|
|
||||||
text-align: right;
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
|
||||||
table.rtems-items-table.docutils:not(.field-list) tr td:nth-child(2n) {
|
|
||||||
text-align: left;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user