Move .MathJax:focus to right after .MathJax CSS, and make sure full-width equations are full width when converted to display:inline-block
This commit is contained in:
parent
2756525e73
commit
bde96342e6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user