Add wrap support to long table entries.

This commit is contained in:
Chris Johns 2016-01-27 17:50:07 +11:00 committed by Amar Takhar
parent 859f0b7319
commit eccd84e752

View File

@ -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;
} }
/* /*