Add styling to make mouse-based menu display look as the same as before (no focus highlighting, though focus is still set)

This commit is contained in:
Davide P. Cervone 2015-09-12 08:58:20 -04:00
parent 9d508c72d8
commit 0cf2a52745

View File

@ -152,12 +152,21 @@
".MathJax_MenuDisabled": {
color:"GrayText"
},
".MathJax_MenuActive": {
"background-color": (isPC ? "Highlight" : "#606872"),
color: (isPC ? "HighlightText" : "white")
},
".MathJax_MenuDisabled:focus, .MathJax_MenuLabel:focus": {
"background-color": "#E8E8E8"
},
".MathJax_ContextMenu:focus": {
outline:"none"
},
".MathJax_ContextMenu .MathJax_MenuItem:focus": {
outline:"none"
},
"#MathJax_AboutClose": {
top:".2em", right:".2em"
},
@ -282,6 +291,8 @@
menuItem: this, className: "MathJax_Menu", onkeydown: MENU.Keydown,
role: "navigation"
});
if (event.type === "contextmenu" || event.type === "mouseover")
menu.className += " MathJax_ContextMenu";
if (!forceLTR) {MathJax.Localization.setCSS(menu)}
for (var i = 0, m = this.items.length; i < m; i++) {this.items[i].Create(menu)}