aboutsummaryrefslogtreecommitdiff
path: root/doc/sphinx/_static/notations.css
diff options
context:
space:
mode:
authorJim Fehrle2019-12-04 12:26:04 -0800
committerJim Fehrle2019-12-14 20:14:07 -0800
commitc56492a0447abe230c177a3897707155fc06f1a4 (patch)
tree874de956f8f23d1a7da8f5ee8a4d8114dcf1df77 /doc/sphinx/_static/notations.css
parent28c4f57e0614523879201d1c59816cde188e5b22 (diff)
Make prodn look more like productionlist
Diffstat (limited to 'doc/sphinx/_static/notations.css')
-rw-r--r--doc/sphinx/_static/notations.css53
1 files changed, 48 insertions, 5 deletions
diff --git a/doc/sphinx/_static/notations.css b/doc/sphinx/_static/notations.css
index 4a5fa0b328..d654479b07 100644
--- a/doc/sphinx/_static/notations.css
+++ b/doc/sphinx/_static/notations.css
@@ -85,7 +85,8 @@
padding-right: 0.6em; /* Space for the left half of the sub- and sup-scripts */
}
-.notation .repeat-wrapper {
+.notation .repeat-wrapper,
+.notation .repeat-wrapper-with-sub {
display: inline-block;
position: relative;
margin-right: 0.4em; /* Space for the right half of the sub- and sup-scripts */
@@ -165,10 +166,52 @@
/* Overrides */
/*************/
-.rst-content table.docutils td, .rst-content table.docutils th {
- padding: 8px; /* Reduce horizontal padding */
- border-left: none;
- border-right: none;
+.prodn-table {
+ display: table;
+ margin: 1.5em 0px;
+ vertical-align: baseline;
+ font-weight: bold;
+}
+
+.prodn-column-group {
+ display: table-column-group;
+}
+
+.prodn-column {
+ display: table-column;
+}
+
+.prodn-row-group {
+ display: table-row-group;
+}
+
+.prodn-row {
+ display: table-row;
+}
+
+.prodn-cell-nonterminal,
+.prodn-cell-op,
+.prodn-cell-production
+{
+ display: table-cell;
+}
+
+.prodn-cell-nonterminal {
+ padding-right: 0.49em;
+}
+
+.prodn-cell-op {
+ padding-right: 0.90em;
+ font-weight: normal;
+}
+
+.prodn-table .notation > .repeat-wrapper {
+ margin-top: 0.28em;
+}
+
+.prodn-table .notation > .repeat-wrapper-with-sub {
+ margin-top: 0.28em;
+ margin-bottom: 0.28em;
}
/* We can't display nested blocks otherwise */