mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
moved hard-coded fill and stroke colors from svgDraw.js to scss files, and added defaults to all themes
This commit is contained in:
parent
a4992963b3
commit
228b832bed
@ -106,7 +106,7 @@ export const drawActivation = function (elem, bounds, verticalPos) {
|
||||
const g = bounds.anchored
|
||||
rect.x = bounds.startx
|
||||
rect.y = bounds.starty
|
||||
rect.fill = '#f4f4f4'
|
||||
rect.class = 'activation'
|
||||
rect.width = bounds.stopx - bounds.startx
|
||||
rect.height = verticalPos - bounds.starty
|
||||
drawRect(g, rect)
|
||||
|
@ -30,6 +30,8 @@ $labelBoxBorderColor: $actorBorder;
|
||||
$labelTextColor: $mainContrastColor;
|
||||
$noteBorderColor: $border2;
|
||||
$noteBkgColor: #fff5ad;
|
||||
$activationBorderColor: #666;
|
||||
$activationBkgColor: #f4f4f4;
|
||||
|
||||
/* Gantt chart variables */
|
||||
|
||||
|
@ -28,6 +28,8 @@ $labelBoxBorderColor: $actorBorder;
|
||||
$labelTextColor: $actorTextColor;
|
||||
$noteBorderColor: $border2;
|
||||
$noteBkgColor: #fff5ad;
|
||||
$activationBorderColor: #666;
|
||||
$activationBkgColor: #f4f4f4;
|
||||
|
||||
/* Gantt chart variables */
|
||||
|
||||
|
@ -29,6 +29,8 @@ $labelBoxBorderColor: #326932;
|
||||
$labelTextColor: $actorTextColor;
|
||||
$noteBorderColor: $border2;
|
||||
$noteBkgColor: #fff5ad;
|
||||
$activationBorderColor: #666;
|
||||
$activationBkgColor: #f4f4f4;
|
||||
|
||||
/* Gantt chart variables */
|
||||
|
||||
|
@ -33,6 +33,8 @@ $labelBoxBorderColor: $actorBorder;
|
||||
$labelTextColor: white;
|
||||
$noteBorderColor: darken($note, 60%);
|
||||
$noteBkgColor: $note;
|
||||
$activationBorderColor: #666;
|
||||
$activationBkgColor: #f4f4f4;
|
||||
|
||||
/* Gantt chart variables */
|
||||
|
||||
|
@ -73,3 +73,8 @@ text.actor {
|
||||
font-family: 'trebuchet ms', verdana, arial;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.activation {
|
||||
fill: $activationBkgColor;
|
||||
stroke: $activationBorderColor;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user