www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit bde96342e6d2305b8cb612291cfeca554d6b23b8
parent 2756525e7312e53a6b9c5c2936101c9be58aab3c
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Sat, 12 Sep 2015 06:59:50 -0400

Move .MathJax:focus to right after .MathJax CSS, and make sure full-width equations are full width when converted to display:inline-block

Diffstat:
Munpacked/jax/output/HTML-CSS/jax.js | 36++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js @@ -265,6 +265,22 @@ border: 0, padding: 0, margin: 0 }, + // Focus elements for keyboard tabbing. + ".MathJax:focus": ( + (MathJax.Hub.Browser.isSafari || MathJax.Hub.Browser.isChrome) ? { + display:"inline-block", + outline:"none", + margin:"-3px", + padding:"3px", + "-webkit-box-shadow": "0px 0px 5px #345, inset 0px 0px 5px #345", + "box-shadow": "0px 0px 5px #345, inset 0px 0px 5px #345" + } : { + display:"inline-block", + outline:"none", + border:"1px dotted", + margin:"-1px" + }), + ".MathJax_Display": { position: "relative", display: "block!important", @@ -345,22 +361,6 @@ filter: "none", opacity:1, background:"transparent" // for IE }, - // Focus elements for keyboard tabbing. - ".MathJax:focus": ( - (MathJax.Hub.Browser.isSafari || MathJax.Hub.Browser.isChrome) ? { - display:"inline-block", - outline:"none", - margin:"-3px", - padding:"3px", - "-webkit-box-shadow": "0px 0px 5px #345, inset 0px 0px 5px #345", - "box-shadow": "0px 0px 5px #345, inset 0px 0px 5px #345" - } : { - display:"inline-block", - outline:"none", - border:"1px dotted", - margin:"-1px" - }), - // // Used for testing web fonts against the default font used while // web fonts are loading @@ -2876,7 +2876,7 @@ MML.math.Augment({ toHTML: function (span,node,phase) { - var stack, box, html, math; + var stack, box, html, math, SPAN = span; // // Phase I lays out the math, but doesn't measure the final math yet // (that is done for a chunk at a time, to avoid reflows) @@ -2934,7 +2934,7 @@ if (math && math.bbox.width != null) { span.style.minWidth = (math.bbox.minWidth || span.style.width); span.style.width = math.bbox.width; - box.style.width = stack.style.width = "100%"; + box.style.width = stack.style.width = SPAN.style.width = "100%"; } // // Add color (if any)