summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-01-27 17:50:07 +1100
committerAmar Takhar <verm@darkbeer.org>2016-05-02 20:51:25 -0400
commiteccd84e75283cd529f5fc7b343457f3321284417 (patch)
tree6c9689714155b9a945f975b2d1b687c7c9cb441c /common
parentAdd an rtems-table class to wrap and align HTML tables. (diff)
downloadrtems-docs-eccd84e75283cd529f5fc7b343457f3321284417.tar.bz2
Add wrap support to long table entries.
Diffstat (limited to 'common')
-rw-r--r--common/_static/my-styles.css34
1 files 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;
}
/*