Fix some mermaid graphs and update default colors

This commit is contained in:
yflory 2020-06-04 11:13:08 +02:00
parent 33818cdc93
commit 04fe289bf8
2 changed files with 18 additions and 2 deletions

View File

@ -331,6 +331,14 @@
line-height: 1em;
}
}
svg {
* {
max-width: unset;
max-height: unset;
font-size: unset;
line-height: unset;
}
}
ul, ol {
ul, ol {
margin: 0;

View File

@ -403,6 +403,10 @@ define([
updateLocalColors(md.color, md.backColor);
}
});
return {
updateLocalColors: updateLocalColors
};
};
var mkFilePicker = function (framework, editor) {
@ -473,7 +477,7 @@ define([
mkThemeButton(framework);
mkPrintButton(framework, editor, $content, $print);
mkSlideOptionsButton(framework, slideOptions, $toolbarDrawer);
mkColorConfiguration(framework, $modal);
var colors = mkColorConfiguration(framework, $modal);
mkFilePicker(framework, editor);
mkSlidePreviewPane(framework, $contentContainer);
@ -518,9 +522,13 @@ define([
return CodeMirror.getHeadingText();
});
framework.onReady(function (/*newPad*/) {
framework.onReady(function (newPad) {
editor.focus();
if (newPad) {
colors.updateLocalColors('#000', '#FFF');
}
CodeMirror.setMode('markdown', function () { });
Slide.onChange(function (o, n, l) {
var slideNumber = '';