## Work in progress.

Implemented directives per PR review comment:

%%{directive: json-encoded-arg-string}%%

example:

%%{init: { 'logLevel': 0, 'theme': 'dark' }}%%

Also changed wrap and config to directives:

%%{wrap}%%
%%{config: { 'fontSize': 18 }}%%
This commit is contained in:
Chris Moran
2020-06-11 15:31:59 -04:00
parent dba617a7fe
commit 04b4da0c75
18 changed files with 1619 additions and 845 deletions

View File

@@ -1,5 +1,5 @@
$mainBkg: #1f2020;
$secondBkg: lighten(#1f2020, 100);
$secondBkg: lighten(#1f2020, 16);
$mainContrastColor: lightgrey;
$darkTextColor: #323D47;
$lineColor: $mainContrastColor;
@@ -31,8 +31,8 @@ $labelTextColor: $mainContrastColor;
$loopTextColor: $mainContrastColor;
$noteBorderColor: $border2;
$noteBkgColor: #fff5ad;
$activationBorderColor: #666;
$activationBkgColor: #f4f4f4;
$activationBorderColor: $border1;
$activationBkgColor: $secondBkg;
$sequenceNumberColor: white;
/* Gantt chart variables */

View File

@@ -12,8 +12,7 @@
// }
:root {
--mermaid-font-family: '"trebuchet ms", verdana, arial';
--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive;
--mermaid-font-family: '"trebuchet ms", verdana, arial, "Comic Sans MS", "Comic Sans", cursive';
// --mermaid-alt-font-family: '"Lucida Console", Monaco, monospace';
}
@@ -23,4 +22,4 @@
.error-text {
fill: $errorTextColor;
stroke: $errorTextColor;
}
}

View File

@@ -78,8 +78,6 @@ text.actor > tspan {
.noteText {
fill: $actorBkg;
stroke: none;
font-family: 'trebuchet ms', verdana, arial, var(--mermaid-font-family);
font-size: 14px;
}
.activation0 {