From eccd84e75283cd529f5fc7b343457f3321284417 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Wed, 27 Jan 2016 17:50:07 +1100 Subject: Add wrap support to long table entries. --- common/_static/my-styles.css | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/common/_static/my-styles.css b/common/_static/my-styles.css index d899bf6..fd0c706 100644 --- a/common/_static/my-styles.css +++ b/common/_static/my-styles.css @@ -30,32 +30,26 @@ } /* - * Special table for RTEMS. Wrap cell contents and vertically align to the top. + * Literals. */ -table.rtems-table.docutils td { - white-space: normal; - vertical-align: top; +.rst-content code.literal { + background: transparent; + color: #77AD4A; + border: 0px; } /* - * Special table. We do not use this because the format is only for HTML - * not PDF. Left here as a record. + * Special table for RTEMS. Wrap cell contents and vertically align to the top. + * + * 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-items-table.docutils:not(.field-list) tr:nth-child(2n) td { - background-color: #fcfcfc; - white-space: normal; - vertical-align: top; - border-width: 0; - 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-table.docutils { + table-layout: fixed; } -table.rtems-items-table.docutils:not(.field-list) tr td:nth-child(2n) { - text-align: left; +table.rtems-table.docutils td { + vertical-align: top; + white-space: normal; } /* -- cgit v1.2.3