Skip to content

Commit f304c83

Browse files
committed
Add display:inline-block; for all colors, and comments.
1 parent c284366 commit f304c83

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

doc/math.css

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -126,28 +126,32 @@ span.alignjustify
126126
Names at http://www.w3.org/TR/2002/WD-css3-color-20020219/ 4.3. X11 color keywords.
127127
Quickbook Usage: [role red Some red text]
128128
129+
inline-block - Flows a element inline with the text, but allows width and height to be specified.
130+
131+
https://stackoverflow.com/questions/3043021/is-there-any-guide-on-when-to-use-displayblock-when-inline-and-when-inline-b#:~:text=The%20use%20cases%20for%20block,it%27s%20used%20naturally%20for%20images
132+
129133
*/
130134
span.red { display:inline-block; color: red; }
131-
span.green { color: green; }
132-
span.lime { color: #00FF00; }
133-
span.blue { color: blue; }
134-
span.navy { color: navy; }
135-
span.yellow { color: yellow; }
136-
span.magenta { color: magenta; }
137-
span.indigo { color: #4B0082; }
138-
span.cyan { color: cyan; }
139-
span.purple { color: purple; }
140-
span.gold { color: gold; }
141-
span.silver { color: silver; } /* lighter gray */
142-
span.gray { color: #808080; } /* light gray */
135+
span.green { display:inline-block; color: green; }
136+
span.lime { display:inline-block; color: #00FF00; }
137+
span.blue { display:inline-block; color: blue; }
138+
span.navy { display:inline-block; color: navy; }
139+
span.yellow { display:inline-block; color: yellow; }
140+
span.magenta { display:inline-block; color: magenta; }
141+
span.indigo { display:inline-block; color: #4B0082; }
142+
span.cyan { display:inline-block; color: cyan; }
143+
span.purple { display:inline-block; color: purple; }
144+
span.gold { display:inline-block; color: gold; }
145+
span.silver { display:inline-block; color: silver; } /* lighter gray */
146+
span.gray { display:inline-block; color: #808080; } /* light gray */
143147

144148
/* role for inline Unicode mathematical equations,
145149
making font an italic (as is conventional for equations)
146150
and a serif version of font (to match those generated using .mml to SVG or PNG)
147151
and a little bigger (* 125%) because the serif font appears smaller than the default sans serif fonts.
148152
Used, for example: [role serif_italic This is in serif font and italic].
149153
Used in turn by template for inline expressions to match equations as SVG or PNG images.
150-
154+
Can be combined with colors and bold.
151155
*/
152156
span.serif_italic {
153157
font-family: serif;

0 commit comments

Comments
 (0)