diff options
| author | Clément Pit-Claudel | 2019-05-10 22:29:57 -0400 |
|---|---|---|
| committer | Clément Pit-Claudel | 2019-05-16 11:59:12 -0400 |
| commit | feb9c50b5812a01e9dc60e2408f4f9f38986ce8c (patch) | |
| tree | f35a5b763eb5fb2c6041928089508aebf154b351 /doc/sphinx/_static/notations.css | |
| parent | f3f758896b82d34acd0e42a65f08a5cb80aa0da9 (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.css | 37 |
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; |
