Skip to content

Commit dcc8bd4

Browse files
committed
Make dialogs movable and sizable.
1 parent afaf1ea commit dcc8bd4

File tree

13 files changed

+1533
-575
lines changed

13 files changed

+1533
-575
lines changed

components/mjs/core/config.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"targets": [
55
"mathjax.ts",
66
"core", "util", "handlers",
7+
"ui/dialog/DraggableDialog.ts",
8+
"ui/dialog/InfoDialog.ts",
79
"adaptors/HTMLAdaptor.ts",
810
"adaptors/browserAdaptor.ts",
911
"components/global.ts"

ts/a11y/explorer.ts

Lines changed: 1 addition & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -417,78 +417,6 @@ export function ExplorerMathDocumentMixin<
417417
display: 'inline-flex',
418418
'align-items': 'center',
419419
},
420-
421-
'mjx-help-sizer': {
422-
position: 'fixed',
423-
width: '40%',
424-
'max-width': '30em',
425-
top: '3em',
426-
left: '50%',
427-
},
428-
'mjx-help-dialog': {
429-
position: 'absolute',
430-
width: '200%',
431-
left: '-100%',
432-
border: '3px outset',
433-
'border-radius': '15px',
434-
color: 'black',
435-
'background-color': '#DDDDDD',
436-
'z-index': '301',
437-
'text-align': 'right',
438-
'font-style': 'normal',
439-
'text-indent': 0,
440-
'text-transform': 'none',
441-
'line-height': 'normal',
442-
'letter-spacing': 'normal',
443-
'word-spacing': 'normal',
444-
'word-wrap': 'normal',
445-
float: 'none',
446-
'box-shadow': '0px 10px 20px #808080',
447-
outline: 'none',
448-
},
449-
'mjx-help-dialog > h1': {
450-
'font-size': '24px',
451-
'text-align': 'center',
452-
margin: '.5em 0',
453-
},
454-
'mjx-help-dialog > div': {
455-
margin: '0 1em',
456-
padding: '3px',
457-
overflow: 'auto',
458-
height: '20em',
459-
border: '2px inset black',
460-
'background-color': 'white',
461-
'text-align': 'left',
462-
},
463-
'mjx-help-dialog > input': {
464-
margin: '.5em 2em',
465-
},
466-
'mjx-help-dialog kbd': {
467-
display: 'inline-block',
468-
padding: '3px 5px',
469-
'font-size': '11px',
470-
'line-height': '10px',
471-
color: '#444d56',
472-
'vertical-align': 'middle',
473-
'background-color': '#fafbfc',
474-
border: 'solid 1.5px #c6cbd1',
475-
'border-bottom-color': '#959da5',
476-
'border-radius': '3px',
477-
'box-shadow': 'inset -.5px -1px 0 #959da5',
478-
},
479-
'mjx-help-dialog ul': {
480-
'list-style-type': 'none',
481-
},
482-
'mjx-help-dialog li': {
483-
'margin-bottom': '.5em',
484-
},
485-
'mjx-help-background': {
486-
position: 'fixed',
487-
top: 0,
488-
left: 0,
489-
right: 0,
490-
bottom: 0,
491-
},
492420
};
493421

494422
/**
@@ -556,7 +484,7 @@ export function ExplorerMathDocumentMixin<
556484
SVGNS
557485
),
558486
]);
559-
this.tmpFocus = this.adaptor.node('mjx-focus', {
487+
this.tmpFocus = adaptor.node('mjx-focus', {
560488
tabIndex: 0,
561489
style: {
562490
outline: 'none',

0 commit comments

Comments
 (0)