Fix some mermaid graphs and update default colors
This commit is contained in:
parent
33818cdc93
commit
04fe289bf8
2 changed files with 18 additions and 2 deletions
|
@ -331,6 +331,14 @@
|
||||||
line-height: 1em;
|
line-height: 1em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
svg {
|
||||||
|
* {
|
||||||
|
max-width: unset;
|
||||||
|
max-height: unset;
|
||||||
|
font-size: unset;
|
||||||
|
line-height: unset;
|
||||||
|
}
|
||||||
|
}
|
||||||
ul, ol {
|
ul, ol {
|
||||||
ul, ol {
|
ul, ol {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
|
@ -403,6 +403,10 @@ define([
|
||||||
updateLocalColors(md.color, md.backColor);
|
updateLocalColors(md.color, md.backColor);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return {
|
||||||
|
updateLocalColors: updateLocalColors
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
var mkFilePicker = function (framework, editor) {
|
var mkFilePicker = function (framework, editor) {
|
||||||
|
@ -473,7 +477,7 @@ define([
|
||||||
mkThemeButton(framework);
|
mkThemeButton(framework);
|
||||||
mkPrintButton(framework, editor, $content, $print);
|
mkPrintButton(framework, editor, $content, $print);
|
||||||
mkSlideOptionsButton(framework, slideOptions, $toolbarDrawer);
|
mkSlideOptionsButton(framework, slideOptions, $toolbarDrawer);
|
||||||
mkColorConfiguration(framework, $modal);
|
var colors = mkColorConfiguration(framework, $modal);
|
||||||
mkFilePicker(framework, editor);
|
mkFilePicker(framework, editor);
|
||||||
mkSlidePreviewPane(framework, $contentContainer);
|
mkSlidePreviewPane(framework, $contentContainer);
|
||||||
|
|
||||||
|
@ -518,9 +522,13 @@ define([
|
||||||
return CodeMirror.getHeadingText();
|
return CodeMirror.getHeadingText();
|
||||||
});
|
});
|
||||||
|
|
||||||
framework.onReady(function (/*newPad*/) {
|
framework.onReady(function (newPad) {
|
||||||
editor.focus();
|
editor.focus();
|
||||||
|
|
||||||
|
if (newPad) {
|
||||||
|
colors.updateLocalColors('#000', '#FFF');
|
||||||
|
}
|
||||||
|
|
||||||
CodeMirror.setMode('markdown', function () { });
|
CodeMirror.setMode('markdown', function () { });
|
||||||
Slide.onChange(function (o, n, l) {
|
Slide.onChange(function (o, n, l) {
|
||||||
var slideNumber = '';
|
var slideNumber = '';
|
||||||
|
|
Loading…
Reference in a new issue