@@ -321,6 +321,7 @@ export function ExplorerMathDocumentMixin<
321321 public static OPTIONS : OptionList = {
322322 ...BaseDocument . OPTIONS ,
323323 enableExplorer : hasWindow , // only activate in interactive contexts
324+ enableExplorerHelp : true , // help dialog is enabled
324325 renderActions : expandable ( {
325326 ...BaseDocument . OPTIONS . renderActions ,
326327 explorable : [ STATE . EXPLORER ]
@@ -426,77 +427,20 @@ export function ExplorerMathDocumentMixin<
426427 display : 'inline-flex' ,
427428 'align-items' : 'center' ,
428429 } ,
429-
430- 'mjx-help-sizer' : {
431- position : 'fixed' ,
432- width : '40%' ,
433- 'max-width' : '30em' ,
434- top : '3em' ,
435- left : '50%' ,
436- } ,
437- 'mjx-help-dialog' : {
438- position : 'absolute' ,
439- width : '200%' ,
440- left : '-100%' ,
441- border : '3px outset' ,
442- 'border-radius' : '15px' ,
443- color : 'black' ,
444- 'background-color' : '#DDDDDD' ,
445- 'z-index' : '301' ,
446- 'text-align' : 'right' ,
447- 'font-style' : 'normal' ,
448- 'text-indent' : 0 ,
449- 'text-transform' : 'none' ,
450- 'line-height' : 'normal' ,
451- 'letter-spacing' : 'normal' ,
452- 'word-spacing' : 'normal' ,
453- 'word-wrap' : 'normal' ,
454- float : 'none' ,
455- 'box-shadow' : '0px 10px 20px #808080' ,
456- outline : 'none' ,
457- } ,
458- 'mjx-help-dialog > h1' : {
459- 'font-size' : '24px' ,
460- 'text-align' : 'center' ,
461- margin : '.5em 0' ,
462- } ,
463- 'mjx-help-dialog > div' : {
464- margin : '0 1em' ,
465- padding : '3px' ,
466- overflow : 'auto' ,
467- height : '20em' ,
468- border : '2px inset black' ,
469- 'background-color' : 'white' ,
470- 'text-align' : 'left' ,
471- } ,
472- 'mjx-help-dialog > input' : {
473- margin : '.5em 2em' ,
474- } ,
475- 'mjx-help-dialog kbd' : {
476- display : 'inline-block' ,
477- padding : '3px 5px' ,
478- 'font-size' : '11px' ,
479- 'line-height' : '10px' ,
480- color : '#444d56' ,
481- 'vertical-align' : 'middle' ,
482- 'background-color' : '#fafbfc' ,
483- border : 'solid 1.5px #c6cbd1' ,
484- 'border-bottom-color' : '#959da5' ,
485- 'border-radius' : '3px' ,
486- 'box-shadow' : 'inset -.5px -1px 0 #959da5' ,
487- } ,
488- 'mjx-help-dialog ul' : {
489- 'list-style-type' : 'none' ,
490- } ,
491- 'mjx-help-dialog li' : {
492- 'margin-bottom' : '.5em' ,
493- } ,
494- 'mjx-help-background' : {
495- position : 'fixed' ,
496- top : 0 ,
497- left : 0 ,
498- right : 0 ,
499- bottom : 0 ,
430+ '@media (prefers-color-scheme: dark) /* explorer */' : {
431+ 'mjx-help > svg' : {
432+ stroke : '#E0E0E0' ,
433+ } ,
434+ 'mjx-help > svg > circle' : {
435+ fill : '#404040' ,
436+ } ,
437+ 'mjx-help > svg > circle:nth-child(2)' : {
438+ fill : 'rgba(132, 132, 255, .3)' ,
439+ } ,
440+ 'mjx-help:hover > svg > circle:nth-child(2)' : {
441+ stroke : '#AAAAAA' ,
442+ fill : '#404040' ,
443+ } ,
500444 } ,
501445 } ;
502446
@@ -565,7 +509,7 @@ export function ExplorerMathDocumentMixin<
565509 SVGNS
566510 ) ,
567511 ] ) ;
568- this . tmpFocus = this . adaptor . node ( 'mjx-focus' , {
512+ this . tmpFocus = adaptor . node ( 'mjx-focus' , {
569513 tabIndex : 0 ,
570514 style : {
571515 outline : 'none' ,
0 commit comments