mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-15 02:04:08 +01: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:
@@ -106,7 +106,7 @@ export const drawActivation = function (elem, bounds, verticalPos) {
|
|||||||
const g = bounds.anchored
|
const g = bounds.anchored
|
||||||
rect.x = bounds.startx
|
rect.x = bounds.startx
|
||||||
rect.y = bounds.starty
|
rect.y = bounds.starty
|
||||||
rect.fill = '#f4f4f4'
|
rect.class = 'activation'
|
||||||
rect.width = bounds.stopx - bounds.startx
|
rect.width = bounds.stopx - bounds.startx
|
||||||
rect.height = verticalPos - bounds.starty
|
rect.height = verticalPos - bounds.starty
|
||||||
drawRect(g, rect)
|
drawRect(g, rect)
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ $labelBoxBorderColor: $actorBorder;
|
|||||||
$labelTextColor: $mainContrastColor;
|
$labelTextColor: $mainContrastColor;
|
||||||
$noteBorderColor: $border2;
|
$noteBorderColor: $border2;
|
||||||
$noteBkgColor: #fff5ad;
|
$noteBkgColor: #fff5ad;
|
||||||
|
$activationBorderColor: #666;
|
||||||
|
$activationBkgColor: #f4f4f4;
|
||||||
|
|
||||||
/* Gantt chart variables */
|
/* Gantt chart variables */
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,8 @@ $labelBoxBorderColor: $actorBorder;
|
|||||||
$labelTextColor: $actorTextColor;
|
$labelTextColor: $actorTextColor;
|
||||||
$noteBorderColor: $border2;
|
$noteBorderColor: $border2;
|
||||||
$noteBkgColor: #fff5ad;
|
$noteBkgColor: #fff5ad;
|
||||||
|
$activationBorderColor: #666;
|
||||||
|
$activationBkgColor: #f4f4f4;
|
||||||
|
|
||||||
/* Gantt chart variables */
|
/* Gantt chart variables */
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ $labelBoxBorderColor: #326932;
|
|||||||
$labelTextColor: $actorTextColor;
|
$labelTextColor: $actorTextColor;
|
||||||
$noteBorderColor: $border2;
|
$noteBorderColor: $border2;
|
||||||
$noteBkgColor: #fff5ad;
|
$noteBkgColor: #fff5ad;
|
||||||
|
$activationBorderColor: #666;
|
||||||
|
$activationBkgColor: #f4f4f4;
|
||||||
|
|
||||||
/* Gantt chart variables */
|
/* Gantt chart variables */
|
||||||
|
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ $labelBoxBorderColor: $actorBorder;
|
|||||||
$labelTextColor: white;
|
$labelTextColor: white;
|
||||||
$noteBorderColor: darken($note, 60%);
|
$noteBorderColor: darken($note, 60%);
|
||||||
$noteBkgColor: $note;
|
$noteBkgColor: $note;
|
||||||
|
$activationBorderColor: #666;
|
||||||
|
$activationBkgColor: #f4f4f4;
|
||||||
|
|
||||||
/* Gantt chart variables */
|
/* Gantt chart variables */
|
||||||
|
|
||||||
|
|||||||
@@ -73,3 +73,8 @@ text.actor {
|
|||||||
font-family: 'trebuchet ms', verdana, arial;
|
font-family: 'trebuchet ms', verdana, arial;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.activation {
|
||||||
|
fill: $activationBkgColor;
|
||||||
|
stroke: $activationBorderColor;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user