aboutsummaryrefslogtreecommitdiff
path: root/doc/sphinx/_static/notations.css
diff options
context:
space:
mode:
authorClément Pit-Claudel2019-05-10 22:29:57 -0400
committerClément Pit-Claudel2019-05-16 11:59:12 -0400
commitfeb9c50b5812a01e9dc60e2408f4f9f38986ce8c (patch)
treef35a5b763eb5fb2c6041928089508aebf154b351 /doc/sphinx/_static/notations.css
parentf3f758896b82d34acd0e42a65f08a5cb80aa0da9 (diff)
[refman] Introduce syntax for alternatives in notations
Closes GH-8482.
Diffstat (limited to 'doc/sphinx/_static/notations.css')
-rw-r--r--doc/sphinx/_static/notations.css37
1 files changed, 34 insertions, 3 deletions
diff --git a/doc/sphinx/_static/notations.css b/doc/sphinx/_static/notations.css
index dcb47d1786..8322ab0137 100644
--- a/doc/sphinx/_static/notations.css
+++ b/doc/sphinx/_static/notations.css
@@ -45,15 +45,46 @@
width: 2.2em;
}
-.notation .repeat {
+.notation .repeat, .notation .alternative {
background: #EAEAEA;
border: 1px solid #AAA;
display: inline-block;
- padding-right: 0.6em; /* Space for the left half of the sub- and sup-scripts */
- padding-left: 0.2em;
+ padding: 0 0.2em 0 0.3em;
margin: 0.25em 0;
}
+.notation .repeated-alternative {
+ display: inline-table;
+}
+
+.notation .alternative {
+ display: inline-table;
+ padding: 0 0.2em;
+}
+
+.notation .alternative-block {
+ display: table-cell;
+ padding: 0 0.5em;
+}
+
+.notation .alternative-separator {
+ border-left: 1px solid black; /* Display a thin bar */
+ display: table-cell;
+ width: 0;
+}
+
+.alternative-block:first-child {
+ padding-left: 0;
+}
+
+.alternative-block:last-child {
+ padding-right: 0;
+}
+
+.notation .repeat {
+ padding-right: 0.6em; /* Space for the left half of the sub- and sup-scripts */
+}
+
.notation .repeat-wrapper {
display: inline-block;
position: relative;