Skip to content

Commit

Permalink
Add CSS for mjx-xypic-object
Browse files Browse the repository at this point in the history
  • Loading branch information
sonoisa committed May 1, 2021
1 parent 23cfb91 commit 36425fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/xypic.js

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions src/output/CHTMLWrappers.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,6 @@ export function CreateCHTMLWrapper(wrapper, wrappers) {
const thisRoot = textObjectWrapper.html("mjx-xypic-object");
adaptor.append(parent.getElement(), thisRoot);

// TODO define CSS
adaptor.setStyle(thisRoot, "text-align", "center");
adaptor.setStyle(thisRoot, "position", "absolute");
adaptor.setStyle(thisRoot, "color", svg.getCurrentColor());
textObjectWrapper.toCHTML(thisRoot);

Expand Down Expand Up @@ -221,6 +218,10 @@ export function CreateCHTMLWrapper(wrapper, wrappers) {
},
'.MathJax mjx-xypic path': {
"stroke-width": "inherit"
},
'mjx-xypic-object': {
"text-align": "center",
"position": "absolute"
}
};
}
Expand Down

0 comments on commit 36425fb

Please sign in to comment.