beautify less code

This commit is contained in:
Tyler Long
2017-04-22 20:37:43 +08:00
parent 727f6c0e28
commit 7072979cfc
24 changed files with 676 additions and 381 deletions

View File

@@ -1,23 +1,23 @@
g.classGroup text { g.classGroup text {
fill:@nodeBorder; fill: @nodeBorder;
stroke:none; stroke: none;
font-family: 'trebuchet ms', verdana, arial; font-family: 'trebuchet ms', verdana, arial;
font-size: 14px; font-size: 14px;
} }
g.classGroup rect { g.classGroup rect {
fill:@nodeBkg; fill: @nodeBkg;
stroke: @nodeBorder; stroke: @nodeBorder;
} }
g.classGroup line { g.classGroup line {
stroke: @nodeBorder; stroke: @nodeBorder;
stroke-width:1; stroke-width: 1;
} }
svg .classLabel .box { svg .classLabel .box {
stroke: none; stroke: none;
stroke-width:0; stroke-width: 0;
fill: @nodeBkg; fill: @nodeBkg;
opacity: 0.5; opacity: 0.5;
} }
@@ -29,28 +29,33 @@ svg .classLabel .label {
.relation { .relation {
stroke: @nodeBorder; stroke: @nodeBorder;
stroke-width: 1; stroke-width: 1;
fill:none; fill: none;
} }
.composition{ .composition {
fill : @nodeBorder; fill: @nodeBorder;
stroke: @nodeBorder; stroke: @nodeBorder;
stroke-width:1; stroke-width: 1;
} }
#compositionStart { #compositionStart {
.composition; .composition;
} }
#compositionEnd { #compositionEnd {
.composition; .composition;
} }
.aggregation{
fill : @nodeBkg; .aggregation {
fill: @nodeBkg;
stroke: @nodeBorder; stroke: @nodeBorder;
stroke-width:1; stroke-width: 1;
} }
#aggregationStart { #aggregationStart {
.aggregation; .aggregation;
} }
#aggregationEnd { #aggregationEnd {
.aggregation; .aggregation;
} }
@@ -58,12 +63,15 @@ svg .classLabel .label {
#dependencyStart { #dependencyStart {
.composition; .composition;
} }
#dependencyEnd { #dependencyEnd {
.composition; .composition;
} }
#extensionStart { #extensionStart {
.composition; .composition;
} }
#extensionEnd { #extensionEnd {
.composition; .composition;
} }

View File

@@ -1,4 +1,6 @@
.mermaid .label { color: @darkTextColor } .mermaid .label {
color: @darkTextColor
}
.node rect, .node rect,
.node circle, .node circle,
@@ -9,7 +11,6 @@
stroke-width: 1px; stroke-width: 1px;
} }
.arrowheadPath { .arrowheadPath {
fill: @arrowheadColor; fill: @arrowheadColor;
} }
@@ -22,7 +23,7 @@
background-color: @edgeLabelBackground; background-color: @edgeLabelBackground;
} }
.cluster rect{ .cluster rect {
fill: @secondBkg !important; fill: @secondBkg !important;
rx: 4 !important; rx: 4 !important;
stroke: @clusterBorder !important; stroke: @clusterBorder !important;

View File

@@ -1,24 +1,39 @@
/** Section styling */ /** Section styling */
.section { .section {
stroke: none; stroke: none;
opacity: 0.2; opacity: 0.2;
} }
.section0{
.section0 {
fill: @sectionBkgColor; fill: @sectionBkgColor;
} }
.section2 { .section2 {
fill: @sectionBkgColor2; fill: @sectionBkgColor2;
} }
.section1,.section3 {
.section1,
.section3 {
fill: @altSectionBkgColor; fill: @altSectionBkgColor;
opacity: 0.2; opacity: 0.2;
} }
.sectionTitle0 { fill: @titleColor;} .sectionTitle0 {
.sectionTitle1 { fill: @titleColor;} fill: @titleColor;
.sectionTitle2 { fill: @titleColor;} }
.sectionTitle3 { fill: @titleColor;}
.sectionTitle1 {
fill: @titleColor;
}
.sectionTitle2 {
fill: @titleColor;
}
.sectionTitle3 {
fill: @titleColor;
}
.sectionTitle { .sectionTitle {
text-anchor: start; text-anchor: start;
@@ -26,29 +41,39 @@
text-height: 14px; text-height: 14px;
} }
/* Grid and axis */ /* Grid and axis */
.grid .tick { .grid .tick {
stroke: @sectionBkgColor; stroke: @sectionBkgColor;
opacity: 0.3; opacity: 0.3;
shape-rendering: crispEdges; shape-rendering: crispEdges;
} }
.grid .tick text { .grid .tick text {
fill: @taskTextLightColor; fill: @taskTextLightColor;
opacity: 0.5; opacity: 0.5;
} }
.grid path { .grid path {
stroke-width: 0; stroke-width: 0;
} }
/* Today line */ /* Today line */
.today { .today {
fill: none; fill: none;
stroke: @todayLineColor; stroke: @todayLineColor;
stroke-width: 2px; stroke-width: 2px;
} }
/* Task styling */ /* Task styling */
/* Default task */ /* Default task */
.task { .task {
stroke-width: 1; stroke-width: 1;
} }
@@ -57,75 +82,126 @@
text-anchor: middle; text-anchor: middle;
font-size: 11px; font-size: 11px;
} }
.taskTextOutsideRight { .taskTextOutsideRight {
fill: @taskTextDarkColor; fill: @taskTextDarkColor;
text-anchor: start; text-anchor: start;
font-size: 11px; font-size: 11px;
} }
.taskTextOutsideLeft { .taskTextOutsideLeft {
fill: @taskTextDarkColor; fill: @taskTextDarkColor;
text-anchor: end; text-anchor: end;
font-size: 11px; font-size: 11px;
} }
/* Specific task settings for the sections*/ /* Specific task settings for the sections*/
.taskText0, .taskText1, .taskText2, .taskText3 { .taskText0,
.taskText1,
.taskText2,
.taskText3 {
fill: @taskTextColor; fill: @taskTextColor;
} }
.task0, .task1, .task2, .task3 { .task0,
.task1,
.task2,
.task3 {
fill: @taskBkgColor; fill: @taskBkgColor;
stroke: @taskBorderColor; stroke: @taskBorderColor;
} }
.taskTextOutside0,.taskTextOutside2, { .taskTextOutside0,
fill: @taskTextOutsideColor; .taskTextOutside2,
} {
.taskTextOutside1, .taskTextOutside3 {
fill: @taskTextOutsideColor; fill: @taskTextOutsideColor;
} }
.taskTextOutside1,
.taskTextOutside3 {
fill: @taskTextOutsideColor;
}
/* Active task */ /* Active task */
.active0, .active1, .active2, .active3 {
.active0,
.active1,
.active2,
.active3 {
fill: @activeTaskBkgColor; fill: @activeTaskBkgColor;
stroke: @activeTaskBorderColor; stroke: @activeTaskBorderColor;
} }
.activeText0, .activeText1, .activeText2, .activeText3 { .activeText0,
.activeText1,
.activeText2,
.activeText3 {
fill: @taskTextDarkColor !important; fill: @taskTextDarkColor !important;
} }
/* Completed task */ /* Completed task */
.done0, .done1, .done2, .done3 {
.done0,
.done1,
.done2,
.done3 {
fill: @doneTaskBkgColor; fill: @doneTaskBkgColor;
} }
.doneText0, .doneText1, .doneText2, .doneText3 { .doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: @taskTextDarkColor !important; fill: @taskTextDarkColor !important;
} }
/* Tasks on the critical line */ /* Tasks on the critical line */
.crit0, .crit1, .crit2, .crit3 {
.crit0,
.crit1,
.crit2,
.crit3 {
stroke: @critBorderColor; stroke: @critBorderColor;
fill: @critBkgColor; fill: @critBkgColor;
stroke-width: 2; stroke-width: 2;
} }
.activeCrit0, .activeCrit1, .activeCrit2, .activeCrit3 {
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: @critBorderColor; stroke: @critBorderColor;
fill: @activeTaskBkgColor; fill: @activeTaskBkgColor;
stroke-width: 2; stroke-width: 2;
} }
.doneCrit0, .doneCrit1, .doneCrit2, .doneCrit3 {
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: @critBorderColor; stroke: @critBorderColor;
fill: @doneTaskBkgColor; fill: @doneTaskBkgColor;
stroke-width: 1; stroke-width: 1;
cursor: pointer; cursor: pointer;
shape-rendering: crispEdges; shape-rendering: crispEdges;
} }
.doneCritText0, .doneCritText1, .doneCritText2, .doneCritText3 {
.doneCritText0,
.doneCritText1,
.doneCritText2,
.doneCritText3 {
fill: @taskTextLightColor !important; fill: @taskTextLightColor !important;
} }
.activeCritText0, .activeCritText1, .activeCritText2, .activeCritText3 {
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: @taskTextDarkColor !important; fill: @taskTextDarkColor !important;
} }

View File

@@ -3,10 +3,9 @@
@import "sequenceDiagram"; @import "sequenceDiagram";
@import "gantt"; @import "gantt";
@import "classDiagram"; @import "classDiagram";
.node text { .node text {
font-family: 'trebuchet ms', verdana, arial; font-family: 'trebuchet ms', verdana, arial;
font-size:14px; font-size: 14px;
} }
div.mermaidTooltip { div.mermaidTooltip {
@@ -20,5 +19,5 @@ div.mermaidTooltip {
border: 1px solid @border2; border: 1px solid @border2;
border-radius: 2px; border-radius: 2px;
pointer-events: none; pointer-events: none;
z-index:100; z-index: 100;
} }

View File

@@ -2,6 +2,7 @@
stroke: @actorBorder; stroke: @actorBorder;
fill: @actorBkg; fill: @actorBkg;
} }
text.actor { text.actor {
fill: @actorTextColor; fill: @actorTextColor;
stroke: none; stroke: none;
@@ -31,8 +32,8 @@ text.actor {
#crosshead path { #crosshead path {
fill: @signalColor !important; fill: @signalColor !important;
stroke: @signalColor !important; stroke: @signalColor !important;
} }
.messageText { .messageText {
fill: @signalTextColor; fill: @signalTextColor;
stroke: none; stroke: none;

View File

@@ -7,58 +7,46 @@
@border2: rgba(255, 255, 255, 0.25); @border2: rgba(255, 255, 255, 0.25);
@arrowheadColor: @mainContrastColor; @arrowheadColor: @mainContrastColor;
/* Flowchart variables */ /* Flowchart variables */
@nodeBkg:@mainBkg;
@nodeBorder:@border1;
@clusterBkg:@secondBkg;
@clusterBorder:@border2;
@defaultLinkColor:@lineColor;
@nodeBkg: @mainBkg;
@nodeBorder: @border1;
@clusterBkg: @secondBkg;
@clusterBorder: @border2;
@defaultLinkColor: @lineColor;
@titleColor: #F9FFFE; @titleColor: #F9FFFE;
@edgeLabelBackground: #e8e8e8; @edgeLabelBackground: #e8e8e8;
/* Sequence Diagram variables */ /* Sequence Diagram variables */
@actorBorder: @border1; @actorBorder: @border1;
@actorBkg: @mainBkg; @actorBkg: @mainBkg;
@actorTextColor: black; @actorTextColor: black;
@actorLineColor: @mainContrastColor; @actorLineColor: @mainContrastColor;
@signalColor: @mainContrastColor; @signalColor: @mainContrastColor;
@signalTextColor: @mainContrastColor; @signalTextColor: @mainContrastColor;
@labelBoxBkgColor: @actorBkg; @labelBoxBkgColor: @actorBkg;
@labelBoxBorderColor: @actorBorder; @labelBoxBorderColor: @actorBorder;
@labelTextColor: @mainContrastColor; @labelTextColor: @mainContrastColor;
@noteBorderColor: @border2; @noteBorderColor: @border2;
@noteBkgColor: #fff5ad; @noteBkgColor: #fff5ad;
/* Gantt chart variables */ /* Gantt chart variables */
@sectionBkgColor: rgba(255, 255, 255, 0.3); @sectionBkgColor: rgba(255, 255, 255, 0.3);
@altSectionBkgColor: white; @altSectionBkgColor: white;
@sectionBkgColor2: #EAE8B9; @sectionBkgColor2: #EAE8B9;
@taskBorderColor: rgba(255, 255, 255, 0.5); @taskBorderColor: rgba(255, 255, 255, 0.5);
@taskBkgColor: @mainBkg; @taskBkgColor: @mainBkg;
@taskTextColor: @darkTextColor; @taskTextColor: @darkTextColor;
@taskTextOutsideColor: @taskTextLightColor; @taskTextOutsideColor: @taskTextLightColor;
@activeTaskBorderColor: rgba(255, 255, 255, 0.5); @activeTaskBorderColor: rgba(255, 255, 255, 0.5);
@activeTaskBkgColor: #81B1DB; @activeTaskBkgColor: #81B1DB;
@gridColor: @mainContrastColor; @gridColor: @mainContrastColor;
@doneTaskBkgColor: @mainContrastColor; @doneTaskBkgColor: @mainContrastColor;
@doneTaskBorderColor: grey; @doneTaskBorderColor: grey;
@critBorderColor: #E83737; @critBorderColor: #E83737;
@critBkgColor: #E83737; @critBkgColor: #E83737;
@taskTextLightColor: @mainContrastColor; @taskTextLightColor: @mainContrastColor;
@taskTextDarkColor: @darkTextColor; @taskTextDarkColor: @darkTextColor;
@todayLineColor: #DB5757; @todayLineColor: #DB5757;

View File

@@ -1,23 +1,23 @@
g.classGroup text { g.classGroup text {
fill:@nodeBorder; fill: @nodeBorder;
stroke:none; stroke: none;
font-family: 'trebuchet ms', verdana, arial; font-family: 'trebuchet ms', verdana, arial;
font-size: 14px; font-size: 14px;
} }
g.classGroup rect { g.classGroup rect {
fill:@nodeBkg; fill: @nodeBkg;
stroke: @nodeBorder; stroke: @nodeBorder;
} }
g.classGroup line { g.classGroup line {
stroke: @nodeBorder; stroke: @nodeBorder;
stroke-width:1; stroke-width: 1;
} }
svg .classLabel .box { svg .classLabel .box {
stroke: none; stroke: none;
stroke-width:0; stroke-width: 0;
fill: @nodeBkg; fill: @nodeBkg;
opacity: 0.5; opacity: 0.5;
} }
@@ -29,28 +29,33 @@ svg .classLabel .label {
.relation { .relation {
stroke: @nodeBorder; stroke: @nodeBorder;
stroke-width: 1; stroke-width: 1;
fill:none; fill: none;
} }
.composition{ .composition {
fill : @nodeBorder; fill: @nodeBorder;
stroke: @nodeBorder; stroke: @nodeBorder;
stroke-width:1; stroke-width: 1;
} }
#compositionStart { #compositionStart {
.composition; .composition;
} }
#compositionEnd { #compositionEnd {
.composition; .composition;
} }
.aggregation{
fill : @nodeBkg; .aggregation {
fill: @nodeBkg;
stroke: @nodeBorder; stroke: @nodeBorder;
stroke-width:1; stroke-width: 1;
} }
#aggregationStart { #aggregationStart {
.aggregation; .aggregation;
} }
#aggregationEnd { #aggregationEnd {
.aggregation; .aggregation;
} }
@@ -58,12 +63,15 @@ svg .classLabel .label {
#dependencyStart { #dependencyStart {
.composition; .composition;
} }
#dependencyEnd { #dependencyEnd {
.composition; .composition;
} }
#extensionStart { #extensionStart {
.composition; .composition;
} }
#extensionEnd { #extensionEnd {
.composition; .composition;
} }

View File

@@ -1,4 +1,6 @@
.mermaid .label { color:#333} .mermaid .label {
color: #333
}
.node rect, .node rect,
.node circle, .node circle,
@@ -21,13 +23,13 @@
background-color: @edgeLabelBackground; background-color: @edgeLabelBackground;
} }
.cluster rect{ .cluster rect {
fill: @secondBkg !important; fill: @secondBkg !important;
rx:4 !important; rx: 4 !important;
stroke: @clusterBorder !important; stroke: @clusterBorder !important;
stroke-width: 1px !important; stroke-width: 1px !important;
} }
.cluster text { .cluster text {
fill:@titleColor; fill: @titleColor;
} }

View File

@@ -1,134 +1,209 @@
/** Section styling */ /** Section styling */
.section { .section {
stroke:none; stroke: none;
opacity:0.2; opacity: 0.2;
} }
.section0{
fill:@sectionBkgColor; .section0 {
fill: @sectionBkgColor;
} }
.section2 { .section2 {
fill:@sectionBkgColor2; fill: @sectionBkgColor2;
}
.section1,.section3 {
fill:@altSectionBkgColor;
opacity:0.2;
} }
.sectionTitle0 { fill:@titleColor;} .section1,
.sectionTitle1 { fill:@titleColor;} .section3 {
.sectionTitle2 { fill:@titleColor;} fill: @altSectionBkgColor;
.sectionTitle3 { fill:@titleColor;} opacity: 0.2;
}
.sectionTitle0 {
fill: @titleColor;
}
.sectionTitle1 {
fill: @titleColor;
}
.sectionTitle2 {
fill: @titleColor;
}
.sectionTitle3 {
fill: @titleColor;
}
.sectionTitle { .sectionTitle {
text-anchor:start; text-anchor: start;
font-size:11px; font-size: 11px;
text-height:14px; text-height: 14px;
} }
/* Grid and axis */ /* Grid and axis */
.grid .tick { .grid .tick {
stroke: @gridColor; stroke: @gridColor;
opacity: 0.3; opacity: 0.3;
shape-rendering: crispEdges; shape-rendering: crispEdges;
} }
.grid path { .grid path {
stroke-width: 0; stroke-width: 0;
} }
/* Today line */ /* Today line */
.today { .today {
fill:none; fill: none;
stroke:@todayLineColor; stroke: @todayLineColor;
stroke-width:2px; stroke-width: 2px;
} }
/* Task styling */ /* Task styling */
/* Default task */ /* Default task */
.task { .task {
stroke-width:2; stroke-width: 2;
} }
.taskText { .taskText {
text-anchor:middle; text-anchor: middle;
font-size:11px; font-size: 11px;
} }
.taskTextOutsideRight { .taskTextOutsideRight {
fill:@taskTextDarkColor; fill: @taskTextDarkColor;
text-anchor:start; text-anchor: start;
font-size:11px; font-size: 11px;
} }
.taskTextOutsideLeft { .taskTextOutsideLeft {
fill:@taskTextDarkColor; fill: @taskTextDarkColor;
text-anchor:end; text-anchor: end;
font-size:11px; font-size: 11px;
} }
/* Specific task settings for the sections*/ /* Specific task settings for the sections*/
.taskText0, .taskText1, .taskText2, .taskText3 { .taskText0,
fill:@taskTextColor; .taskText1,
.taskText2,
.taskText3 {
fill: @taskTextColor;
} }
.task0, .task1, .task2, .task3 { .task0,
.task1,
.task2,
.task3 {
fill: @taskBkgColor; fill: @taskBkgColor;
stroke: @taskBorderColor; stroke: @taskBorderColor;
} }
.taskTextOutside0,.taskTextOutside2, { .taskTextOutside0,
fill:@taskTextOutsideColor; .taskTextOutside2,
} {
.taskTextOutside1, .taskTextOutside3 { fill: @taskTextOutsideColor;
fill:@taskTextOutsideColor;
} }
.taskTextOutside1,
.taskTextOutside3 {
fill: @taskTextOutsideColor;
}
/* Active task */ /* Active task */
.active0, .active1, .active2, .active3 {
.active0,
.active1,
.active2,
.active3 {
fill: @activeTaskBkgColor; fill: @activeTaskBkgColor;
stroke: @activeTaskBorderColor; stroke: @activeTaskBorderColor;
} }
.activeText0, .activeText1, .activeText2, .activeText3 { .activeText0,
fill:@taskTextDarkColor !important; .activeText1,
} .activeText2,
/* Completed task */ .activeText3 {
.done0, .done1, .done2, .done3 { fill: @taskTextDarkColor !important;
stroke:@doneTaskBorderColor;
fill: @doneTaskBkgColor;
stroke-width:2;
} }
.doneText0, .doneText1, .doneText2, .doneText3 {
fill:@taskTextDarkColor !important; /* Completed task */
.done0,
.done1,
.done2,
.done3 {
stroke: @doneTaskBorderColor;
fill: @doneTaskBkgColor;
stroke-width: 2;
} }
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: @taskTextDarkColor !important;
}
/* Tasks on the critical line */ /* Tasks on the critical line */
.crit0, .crit1, .crit2, .crit3 {
stroke:@critBorderColor; .crit0,
.crit1,
.crit2,
.crit3 {
stroke: @critBorderColor;
fill: @critBkgColor; fill: @critBkgColor;
stroke-width:2; stroke-width: 2;
} }
.activeCrit0, .activeCrit1, .activeCrit2, .activeCrit3 {
stroke:@critBorderColor; .activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: @critBorderColor;
fill: @activeTaskBkgColor; fill: @activeTaskBkgColor;
stroke-width:2; stroke-width: 2;
} }
.doneCrit0, .doneCrit1, .doneCrit2, .doneCrit3 {
stroke:@critBorderColor; .doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: @critBorderColor;
fill: @doneTaskBkgColor; fill: @doneTaskBkgColor;
stroke-width:2; stroke-width: 2;
cursor: pointer; cursor: pointer;
shape-rendering: crispEdges; shape-rendering: crispEdges;
} }
.doneCritText0, .doneCritText1, .doneCritText2, .doneCritText3 {
fill:@taskTextDarkColor !important; .doneCritText0,
.doneCritText1,
.doneCritText2,
.doneCritText3 {
fill: @taskTextDarkColor !important;
} }
.activeCritText0, .activeCritText1, .activeCritText2, .activeCritText3 {
fill:@taskTextDarkColor !important; .activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: @taskTextDarkColor !important;
} }
.titleText { .titleText {
text-anchor:middle; text-anchor: middle;
font-size:18px; font-size: 18px;
fill:@taskTextDarkColor; fill: @taskTextDarkColor;
} }

View File

@@ -3,10 +3,9 @@
@import "sequenceDiagram"; @import "sequenceDiagram";
@import "gantt"; @import "gantt";
@import "classDiagram"; @import "classDiagram";
.node text { .node text {
font-family: 'trebuchet ms', verdana, arial; font-family: 'trebuchet ms', verdana, arial;
font-size:14px; font-size: 14px;
} }
div.mermaidTooltip { div.mermaidTooltip {
@@ -20,5 +19,5 @@ div.mermaidTooltip {
border: 1px solid @border2; border: 1px solid @border2;
border-radius: 2px; border-radius: 2px;
pointer-events: none; pointer-events: none;
z-index:100; z-index: 100;
} }

View File

@@ -2,39 +2,41 @@
stroke: @actorBorder; stroke: @actorBorder;
fill: @actorBkg; fill: @actorBkg;
} }
text.actor { text.actor {
fill:@actorTextColor; fill: @actorTextColor;
stroke:none; stroke: none;
} }
.actor-line { .actor-line {
stroke:@actorLineColor; stroke: @actorLineColor;
} }
.messageLine0 { .messageLine0 {
stroke-width:1.5; stroke-width: 1.5;
stroke-dasharray: "2 2"; stroke-dasharray: "2 2";
marker-end:"url(#arrowhead)"; marker-end: "url(#arrowhead)";
stroke:@signalColor; stroke: @signalColor;
} }
.messageLine1 { .messageLine1 {
stroke-width:1.5; stroke-width: 1.5;
stroke-dasharray: "2 2"; stroke-dasharray: "2 2";
stroke:@signalColor; stroke: @signalColor;
} }
#arrowhead { #arrowhead {
fill:@signalColor; fill: @signalColor;
} }
#crosshead path {
fill:@signalColor !important;
stroke: @signalColor !important;
#crosshead path {
fill: @signalColor !important;
stroke: @signalColor !important;
} }
.messageText { .messageText {
fill:@signalTextColor; fill: @signalTextColor;
stroke:none; stroke: none;
} }
.labelBox { .labelBox {
@@ -43,19 +45,19 @@ text.actor {
} }
.labelText { .labelText {
fill:@labelTextColor; fill: @labelTextColor;
stroke:none; stroke: none;
} }
.loopText { .loopText {
fill:@labelTextColor; fill: @labelTextColor;
stroke:none; stroke: none;
} }
.loopLine { .loopLine {
stroke-width:2; stroke-width: 2;
stroke-dasharray: "2 2"; stroke-dasharray: "2 2";
marker-end:"url(#arrowhead)"; marker-end: "url(#arrowhead)";
stroke: @labelBoxBorderColor; stroke: @labelBoxBorderColor;
} }
@@ -66,8 +68,8 @@ text.actor {
} }
.noteText { .noteText {
fill:black; fill: black;
stroke:none; stroke: none;
font-family: 'trebuchet ms', verdana, arial; font-family: 'trebuchet ms', verdana, arial;
font-size:14px; font-size: 14px;
} }

View File

@@ -1,61 +1,50 @@
@mainBkg: #ECECFF; @mainBkg: #ECECFF;
@secondBkg: #ffffde; @secondBkg: #ffffde;
@lineColor: #333333; @lineColor: #333333;
@border1:#CCCCFF; @border1: #CCCCFF;
@border2:#aaaa33; @border2: #aaaa33;
@arrowheadColor: #333333; @arrowheadColor: #333333;
/* Flowchart variables */ /* Flowchart variables */
@nodeBkg:@mainBkg;
@nodeBorder:@border1;
@clusterBkg:@secondBkg;
@clusterBorder:@border2;
@defaultLinkColor:@lineColor;
@nodeBkg: @mainBkg;
@nodeBorder: @border1;
@clusterBkg: @secondBkg;
@clusterBorder: @border2;
@defaultLinkColor: @lineColor;
@titleColor: #333; @titleColor: #333;
@edgeLabelBackground: #e8e8e8; @edgeLabelBackground: #e8e8e8;
/* Sequence Diagram variables */ /* Sequence Diagram variables */
@actorBorder: @border1; @actorBorder: @border1;
@actorBkg: @mainBkg; @actorBkg: @mainBkg;
@actorTextColor: black; @actorTextColor: black;
@actorLineColor: grey; @actorLineColor: grey;
@signalColor: #333; @signalColor: #333;
@signalTextColor: #333; @signalTextColor: #333;
@labelBoxBkgColor: @actorBkg; @labelBoxBkgColor: @actorBkg;
@labelBoxBorderColor: @actorBorder; @labelBoxBorderColor: @actorBorder;
@labelTextColor: @actorTextColor; @labelTextColor: @actorTextColor;
@noteBorderColor: @border2; @noteBorderColor: @border2;
@noteBkgColor: #fff5ad; @noteBkgColor: #fff5ad;
/* Gantt chart variables */ /* Gantt chart variables */
@sectionBkgColor: rgba(102, 102, 255, 0.49); @sectionBkgColor: rgba(102, 102, 255, 0.49);
@altSectionBkgColor: white; @altSectionBkgColor: white;
@sectionBkgColor2: #fff400; @sectionBkgColor2: #fff400;
@taskBorderColor: #534fbc; @taskBorderColor: #534fbc;
@taskBkgColor: #8a90dd; @taskBkgColor: #8a90dd;
@taskTextColor: @taskTextLightColor; @taskTextColor: @taskTextLightColor;
@taskTextOutsideColor: @taskTextDarkColor; @taskTextOutsideColor: @taskTextDarkColor;
@activeTaskBorderColor: #534fbc; @activeTaskBorderColor: #534fbc;
@activeTaskBkgColor: #bfc7ff; @activeTaskBkgColor: #bfc7ff;
@gridColor: lightgrey; @gridColor: lightgrey;
@doneTaskBkgColor: lightgrey; @doneTaskBkgColor: lightgrey;
@doneTaskBorderColor: grey; @doneTaskBorderColor: grey;
@critBorderColor: #ff8888; @critBorderColor: #ff8888;
@critBkgColor: red; @critBkgColor: red;
@taskTextLightColor: white; @taskTextLightColor: white;
@taskTextDarkColor: black; @taskTextDarkColor: black;
@todayLineColor: red; @todayLineColor: red;

View File

@@ -1,23 +1,23 @@
g.classGroup text { g.classGroup text {
fill:@nodeBorder; fill: @nodeBorder;
stroke:none; stroke: none;
font-family: 'trebuchet ms', verdana, arial; font-family: 'trebuchet ms', verdana, arial;
font-size: 14px; font-size: 14px;
} }
g.classGroup rect { g.classGroup rect {
fill:@nodeBkg; fill: @nodeBkg;
stroke: @nodeBorder; stroke: @nodeBorder;
} }
g.classGroup line { g.classGroup line {
stroke: @nodeBorder; stroke: @nodeBorder;
stroke-width:1; stroke-width: 1;
} }
svg .classLabel .box { svg .classLabel .box {
stroke: none; stroke: none;
stroke-width:0; stroke-width: 0;
fill: @nodeBkg; fill: @nodeBkg;
opacity: 0.5; opacity: 0.5;
} }
@@ -29,28 +29,33 @@ svg .classLabel .label {
.relation { .relation {
stroke: @nodeBorder; stroke: @nodeBorder;
stroke-width: 1; stroke-width: 1;
fill:none; fill: none;
} }
.composition{ .composition {
fill : @nodeBorder; fill: @nodeBorder;
stroke: @nodeBorder; stroke: @nodeBorder;
stroke-width:1; stroke-width: 1;
} }
#compositionStart { #compositionStart {
.composition; .composition;
} }
#compositionEnd { #compositionEnd {
.composition; .composition;
} }
.aggregation{
fill : @nodeBkg; .aggregation {
fill: @nodeBkg;
stroke: @nodeBorder; stroke: @nodeBorder;
stroke-width:1; stroke-width: 1;
} }
#aggregationStart { #aggregationStart {
.aggregation; .aggregation;
} }
#aggregationEnd { #aggregationEnd {
.aggregation; .aggregation;
} }
@@ -58,12 +63,15 @@ svg .classLabel .label {
#dependencyStart { #dependencyStart {
.composition; .composition;
} }
#dependencyEnd { #dependencyEnd {
.composition; .composition;
} }
#extensionStart { #extensionStart {
.composition; .composition;
} }
#extensionEnd { #extensionEnd {
.composition; .composition;
} }

View File

@@ -1,6 +1,6 @@
.mermaid .label { .mermaid .label {
font-family: 'trebuchet ms', verdana, arial; font-family: 'trebuchet ms', verdana, arial;
color:#333 color: #333
} }
.node rect, .node rect,
@@ -25,13 +25,13 @@ color:#333
background-color: @edgeLabelBackground; background-color: @edgeLabelBackground;
} }
.cluster rect{ .cluster rect {
fill: @secondBkg !important; fill: @secondBkg !important;
rx:4 !important; rx: 4 !important;
stroke: @clusterBorder !important; stroke: @clusterBorder !important;
stroke-width: 1px !important; stroke-width: 1px !important;
} }
.cluster text { .cluster text {
fill:@titleColor; fill: @titleColor;
} }

View File

@@ -1,134 +1,209 @@
/** Section styling */ /** Section styling */
.section { .section {
stroke:none; stroke: none;
opacity:0.2; opacity: 0.2;
} }
.section0{
fill:@sectionBkgColor; .section0 {
fill: @sectionBkgColor;
} }
.section2 { .section2 {
fill:@sectionBkgColor2; fill: @sectionBkgColor2;
}
.section1,.section3 {
fill:@altSectionBkgColor;
opacity:0.2;
} }
.sectionTitle0 { fill:@titleColor;} .section1,
.sectionTitle1 { fill:@titleColor;} .section3 {
.sectionTitle2 { fill:@titleColor;} fill: @altSectionBkgColor;
.sectionTitle3 { fill:@titleColor;} opacity: 0.2;
}
.sectionTitle0 {
fill: @titleColor;
}
.sectionTitle1 {
fill: @titleColor;
}
.sectionTitle2 {
fill: @titleColor;
}
.sectionTitle3 {
fill: @titleColor;
}
.sectionTitle { .sectionTitle {
text-anchor:start; text-anchor: start;
font-size:11px; font-size: 11px;
text-height:14px; text-height: 14px;
} }
/* Grid and axis */ /* Grid and axis */
.grid .tick { .grid .tick {
stroke: @gridColor; stroke: @gridColor;
opacity: 0.3; opacity: 0.3;
shape-rendering: crispEdges; shape-rendering: crispEdges;
} }
.grid path { .grid path {
stroke-width: 0; stroke-width: 0;
} }
/* Today line */ /* Today line */
.today { .today {
fill:none; fill: none;
stroke:@todayLineColor; stroke: @todayLineColor;
stroke-width:2px; stroke-width: 2px;
} }
/* Task styling */ /* Task styling */
/* Default task */ /* Default task */
.task { .task {
stroke-width:2; stroke-width: 2;
} }
.taskText { .taskText {
text-anchor:middle; text-anchor: middle;
font-size:11px; font-size: 11px;
} }
.taskTextOutsideRight { .taskTextOutsideRight {
fill:@taskTextDarkColor; fill: @taskTextDarkColor;
text-anchor:start; text-anchor: start;
font-size:11px; font-size: 11px;
} }
.taskTextOutsideLeft { .taskTextOutsideLeft {
fill:@taskTextDarkColor; fill: @taskTextDarkColor;
text-anchor:end; text-anchor: end;
font-size:11px; font-size: 11px;
} }
/* Specific task settings for the sections*/ /* Specific task settings for the sections*/
.taskText0, .taskText1, .taskText2, .taskText3 { .taskText0,
fill:@taskTextColor; .taskText1,
.taskText2,
.taskText3 {
fill: @taskTextColor;
} }
.task0, .task1, .task2, .task3 { .task0,
.task1,
.task2,
.task3 {
fill: @taskBkgColor; fill: @taskBkgColor;
stroke: @taskBorderColor; stroke: @taskBorderColor;
} }
.taskTextOutside0,.taskTextOutside2, { .taskTextOutside0,
fill:@taskTextOutsideColor; .taskTextOutside2,
} {
.taskTextOutside1, .taskTextOutside3 { fill: @taskTextOutsideColor;
fill:@taskTextOutsideColor;
} }
.taskTextOutside1,
.taskTextOutside3 {
fill: @taskTextOutsideColor;
}
/* Active task */ /* Active task */
.active0, .active1, .active2, .active3 {
.active0,
.active1,
.active2,
.active3 {
fill: @activeTaskBkgColor; fill: @activeTaskBkgColor;
stroke: @activeTaskBorderColor; stroke: @activeTaskBorderColor;
} }
.activeText0, .activeText1, .activeText2, .activeText3 { .activeText0,
fill:@taskTextDarkColor !important; .activeText1,
} .activeText2,
/* Completed task */ .activeText3 {
.done0, .done1, .done2, .done3 { fill: @taskTextDarkColor !important;
stroke:@doneTaskBorderColor;
fill: @doneTaskBkgColor;
stroke-width:2;
} }
.doneText0, .doneText1, .doneText2, .doneText3 {
fill:@taskTextDarkColor !important; /* Completed task */
.done0,
.done1,
.done2,
.done3 {
stroke: @doneTaskBorderColor;
fill: @doneTaskBkgColor;
stroke-width: 2;
} }
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: @taskTextDarkColor !important;
}
/* Tasks on the critical line */ /* Tasks on the critical line */
.crit0, .crit1, .crit2, .crit3 {
stroke:@critBorderColor; .crit0,
.crit1,
.crit2,
.crit3 {
stroke: @critBorderColor;
fill: @critBkgColor; fill: @critBkgColor;
stroke-width:2; stroke-width: 2;
} }
.activeCrit0, .activeCrit1, .activeCrit2, .activeCrit3 {
stroke:@critBorderColor; .activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: @critBorderColor;
fill: @activeTaskBkgColor; fill: @activeTaskBkgColor;
stroke-width:2; stroke-width: 2;
} }
.doneCrit0, .doneCrit1, .doneCrit2, .doneCrit3 {
stroke:@critBorderColor; .doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: @critBorderColor;
fill: @doneTaskBkgColor; fill: @doneTaskBkgColor;
stroke-width:2; stroke-width: 2;
cursor: pointer; cursor: pointer;
shape-rendering: crispEdges; shape-rendering: crispEdges;
} }
.doneCritText0, .doneCritText1, .doneCritText2, .doneCritText3 {
fill:@taskTextDarkColor !important; .doneCritText0,
.doneCritText1,
.doneCritText2,
.doneCritText3 {
fill: @taskTextDarkColor !important;
} }
.activeCritText0, .activeCritText1, .activeCritText2, .activeCritText3 {
fill:@taskTextDarkColor !important; .activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: @taskTextDarkColor !important;
} }
.titleText { .titleText {
text-anchor:middle; text-anchor: middle;
font-size:18px; font-size: 18px;
fill:@taskTextDarkColor; fill: @taskTextDarkColor;
} }

View File

@@ -3,10 +3,9 @@
@import "sequenceDiagram"; @import "sequenceDiagram";
@import "gantt"; @import "gantt";
@import "classDiagram"; @import "classDiagram";
.node text { .node text {
font-family: 'trebuchet ms', verdana, arial; font-family: 'trebuchet ms', verdana, arial;
font-size:14px; font-size: 14px;
} }
div.mermaidTooltip { div.mermaidTooltip {
@@ -20,5 +19,5 @@ div.mermaidTooltip {
border: 1px solid @border2; border: 1px solid @border2;
border-radius: 2px; border-radius: 2px;
pointer-events: none; pointer-events: none;
z-index:100; z-index: 100;
} }

View File

@@ -2,39 +2,41 @@
stroke: @actorBorder; stroke: @actorBorder;
fill: @actorBkg; fill: @actorBkg;
} }
text.actor { text.actor {
fill:@actorTextColor; fill: @actorTextColor;
stroke:none; stroke: none;
} }
.actor-line { .actor-line {
stroke:@actorLineColor; stroke: @actorLineColor;
} }
.messageLine0 { .messageLine0 {
stroke-width:1.5; stroke-width: 1.5;
stroke-dasharray: "2 2"; stroke-dasharray: "2 2";
marker-end:"url(#arrowhead)"; marker-end: "url(#arrowhead)";
stroke:@signalColor; stroke: @signalColor;
} }
.messageLine1 { .messageLine1 {
stroke-width:1.5; stroke-width: 1.5;
stroke-dasharray: "2 2"; stroke-dasharray: "2 2";
stroke:@signalColor; stroke: @signalColor;
} }
#arrowhead { #arrowhead {
fill:@signalColor; fill: @signalColor;
} }
#crosshead path {
fill:@signalColor !important;
stroke: @signalColor !important;
#crosshead path {
fill: @signalColor !important;
stroke: @signalColor !important;
} }
.messageText { .messageText {
fill:@signalTextColor; fill: @signalTextColor;
stroke:none; stroke: none;
} }
.labelBox { .labelBox {
@@ -43,19 +45,19 @@ text.actor {
} }
.labelText { .labelText {
fill:@labelTextColor; fill: @labelTextColor;
stroke:none; stroke: none;
} }
.loopText { .loopText {
fill:@labelTextColor; fill: @labelTextColor;
stroke:none; stroke: none;
} }
.loopLine { .loopLine {
stroke-width:2; stroke-width: 2;
stroke-dasharray: "2 2"; stroke-dasharray: "2 2";
marker-end:"url(#arrowhead)"; marker-end: "url(#arrowhead)";
stroke: @labelBoxBorderColor; stroke: @labelBoxBorderColor;
} }
@@ -66,8 +68,8 @@ text.actor {
} }
.noteText { .noteText {
fill:black; fill: black;
stroke:none; stroke: none;
font-family: 'trebuchet ms', verdana, arial; font-family: 'trebuchet ms', verdana, arial;
font-size:14px; font-size: 14px;
} }

View File

@@ -7,56 +7,46 @@
@arrowheadColor: green; @arrowheadColor: green;
/* Flowchart variables */ /* Flowchart variables */
@nodeBkg:@mainBkg;
@nodeBorder:@border1;
@clusterBkg:@secondBkg;
@clusterBorder:@border2;
@defaultLinkColor:@lineColor;
@nodeBkg: @mainBkg;
@nodeBorder: @border1;
@clusterBkg: @secondBkg;
@clusterBorder: @border2;
@defaultLinkColor: @lineColor;
@titleColor: #333; @titleColor: #333;
@edgeLabelBackground: #e8e8e8; @edgeLabelBackground: #e8e8e8;
/* Sequence Diagram variables */ /* Sequence Diagram variables */
@actorBorder: @border1; @actorBorder: @border1;
@actorBkg: @mainBkg; @actorBkg: @mainBkg;
@actorTextColor: black; @actorTextColor: black;
@actorLineColor: grey; @actorLineColor: grey;
@signalColor: #333; @signalColor: #333;
@signalTextColor: #333; @signalTextColor: #333;
@labelBoxBkgColor: @actorBkg; @labelBoxBkgColor: @actorBkg;
@labelBoxBorderColor: #326932; @labelBoxBorderColor: #326932;
@labelTextColor: @actorTextColor; @labelTextColor: @actorTextColor;
@noteBorderColor: @border2; @noteBorderColor: @border2;
@noteBkgColor: #fff5ad; @noteBkgColor: #fff5ad;
/* Gantt chart variables */ /* Gantt chart variables */
@sectionBkgColor: #6eaa49;;
@sectionBkgColor: #6eaa49;
;
@altSectionBkgColor: white; @altSectionBkgColor: white;
@sectionBkgColor2: #6eaa49; @sectionBkgColor2: #6eaa49;
@taskBorderColor: @border1; @taskBorderColor: @border1;
@taskBkgColor: #487e3a; @taskBkgColor: #487e3a;
@taskTextColor: @taskTextLightColor; @taskTextColor: @taskTextLightColor;
@taskTextOutsideColor: @taskTextDarkColor; @taskTextOutsideColor: @taskTextDarkColor;
@activeTaskBorderColor: @taskBorderColor; @activeTaskBorderColor: @taskBorderColor;
@activeTaskBkgColor: @mainBkg; @activeTaskBkgColor: @mainBkg;
@gridColor: lightgrey; @gridColor: lightgrey;
@doneTaskBkgColor: lightgrey; @doneTaskBkgColor: lightgrey;
@doneTaskBorderColor: grey; @doneTaskBorderColor: grey;
@critBorderColor: #ff8888; @critBorderColor: #ff8888;
@critBkgColor: red; @critBkgColor: red;
@taskTextLightColor: white; @taskTextLightColor: white;
@taskTextDarkColor: black; @taskTextDarkColor: black;
@todayLineColor: red; @todayLineColor: red;

View File

@@ -1,23 +1,23 @@
g.classGroup text { g.classGroup text {
fill: @nodeBorder; fill: @nodeBorder;
stroke:none; stroke: none;
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
font-size: 14px; font-size: 14px;
} }
g.classGroup rect { g.classGroup rect {
fill:@nodeBkg; fill: @nodeBkg;
stroke: @nodeBorder; stroke: @nodeBorder;
} }
g.classGroup line { g.classGroup line {
stroke: @nodeBorder; stroke: @nodeBorder;
stroke-width:1; stroke-width: 1;
} }
svg .classLabel .box { svg .classLabel .box {
stroke: none; stroke: none;
stroke-width:0; stroke-width: 0;
fill: @nodeBkg; fill: @nodeBkg;
opacity: 0.5; opacity: 0.5;
} }
@@ -29,28 +29,33 @@ svg .classLabel .label {
.relation { .relation {
stroke: @nodeBorder; stroke: @nodeBorder;
stroke-width: 1; stroke-width: 1;
fill:none; fill: none;
} }
.composition{ .composition {
fill : @nodeBorder; fill: @nodeBorder;
stroke: @nodeBorder; stroke: @nodeBorder;
stroke-width:1; stroke-width: 1;
} }
#compositionStart { #compositionStart {
.composition; .composition;
} }
#compositionEnd { #compositionEnd {
.composition; .composition;
} }
.aggregation{
fill : @nodeBkg; .aggregation {
fill: @nodeBkg;
stroke: @nodeBorder; stroke: @nodeBorder;
stroke-width:1; stroke-width: 1;
} }
#aggregationStart { #aggregationStart {
.aggregation; .aggregation;
} }
#aggregationEnd { #aggregationEnd {
.aggregation; .aggregation;
} }
@@ -58,12 +63,15 @@ svg .classLabel .label {
#dependencyStart { #dependencyStart {
.composition; .composition;
} }
#dependencyEnd { #dependencyEnd {
.composition; .composition;
} }
#extensionStart { #extensionStart {
.composition; .composition;
} }
#extensionEnd { #extensionEnd {
.composition; .composition;
} }

View File

@@ -1,4 +1,6 @@
.mermaid .label { color: @text } .mermaid .label {
color: @text
}
.node rect, .node rect,
.node circle, .node circle,

View File

@@ -1,24 +1,39 @@
/** Section styling */ /** Section styling */
.section { .section {
stroke: none; stroke: none;
opacity:0.2; opacity: 0.2;
} }
.section0{
.section0 {
fill: @sectionBkgColor; fill: @sectionBkgColor;
} }
.section2 { .section2 {
fill: @sectionBkgColor2; fill: @sectionBkgColor2;
} }
.section1,.section3 {
.section1,
.section3 {
fill: @altSectionBkgColor; fill: @altSectionBkgColor;
opacity: 0.2; opacity: 0.2;
} }
.sectionTitle0 { fill: @titleColor;} .sectionTitle0 {
.sectionTitle1 { fill: @titleColor;} fill: @titleColor;
.sectionTitle2 { fill: @titleColor;} }
.sectionTitle3 { fill: @titleColor;}
.sectionTitle1 {
fill: @titleColor;
}
.sectionTitle2 {
fill: @titleColor;
}
.sectionTitle3 {
fill: @titleColor;
}
.sectionTitle { .sectionTitle {
text-anchor: start; text-anchor: start;
@@ -26,25 +41,34 @@
text-height: 14px; text-height: 14px;
} }
/* Grid and axis */ /* Grid and axis */
.grid .tick { .grid .tick {
stroke: @gridColor; stroke: @gridColor;
opacity: 0.3; opacity: 0.3;
shape-rendering: crispEdges; shape-rendering: crispEdges;
} }
.grid path { .grid path {
stroke-width: 0; stroke-width: 0;
} }
/* Today line */ /* Today line */
.today { .today {
fill: none; fill: none;
stroke: @todayLineColor; stroke: @todayLineColor;
stroke-width: 2px; stroke-width: 2px;
} }
/* Task styling */ /* Task styling */
/* Default task */ /* Default task */
.task { .task {
stroke-width: 2; stroke-width: 2;
} }
@@ -53,77 +77,127 @@
text-anchor: middle; text-anchor: middle;
font-size: 11px; font-size: 11px;
} }
.taskTextOutsideRight { .taskTextOutsideRight {
fill: @taskTextDarkColor; fill: @taskTextDarkColor;
text-anchor: start; text-anchor: start;
font-size: 11px; font-size: 11px;
} }
.taskTextOutsideLeft { .taskTextOutsideLeft {
fill: @taskTextDarkColor; fill: @taskTextDarkColor;
text-anchor: end; text-anchor: end;
font-size: 11px; font-size: 11px;
} }
/* Specific task settings for the sections*/ /* Specific task settings for the sections*/
.taskText0, .taskText1, .taskText2, .taskText3 { .taskText0,
.taskText1,
.taskText2,
.taskText3 {
fill: @taskTextColor; fill: @taskTextColor;
} }
.task0, .task1, .task2, .task3 { .task0,
.task1,
.task2,
.task3 {
fill: @taskBkgColor; fill: @taskBkgColor;
stroke: @taskBorderColor; stroke: @taskBorderColor;
} }
.taskTextOutside0,.taskTextOutside2, { .taskTextOutside0,
fill: @taskTextOutsideColor; .taskTextOutside2,
} {
.taskTextOutside1, .taskTextOutside3 {
fill: @taskTextOutsideColor; fill: @taskTextOutsideColor;
} }
.taskTextOutside1,
.taskTextOutside3 {
fill: @taskTextOutsideColor;
}
/* Active task */ /* Active task */
.active0, .active1, .active2, .active3 {
.active0,
.active1,
.active2,
.active3 {
fill: @activeTaskBkgColor; fill: @activeTaskBkgColor;
stroke: @activeTaskBorderColor; stroke: @activeTaskBorderColor;
} }
.activeText0, .activeText1, .activeText2, .activeText3 { .activeText0,
.activeText1,
.activeText2,
.activeText3 {
fill: @taskTextDarkColor !important; fill: @taskTextDarkColor !important;
} }
/* Completed task */ /* Completed task */
.done0, .done1, .done2, .done3 {
.done0,
.done1,
.done2,
.done3 {
stroke: @doneTaskBorderColor; stroke: @doneTaskBorderColor;
fill: @doneTaskBkgColor; fill: @doneTaskBkgColor;
stroke-width: 2; stroke-width: 2;
} }
.doneText0, .doneText1, .doneText2, .doneText3 { .doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: @taskTextDarkColor !important; fill: @taskTextDarkColor !important;
} }
/* Tasks on the critical line */ /* Tasks on the critical line */
.crit0, .crit1, .crit2, .crit3 {
stroke:@critBorderColor; .crit0,
.crit1,
.crit2,
.crit3 {
stroke: @critBorderColor;
fill: @critBkgColor; fill: @critBkgColor;
stroke-width: 2; stroke-width: 2;
} }
.activeCrit0, .activeCrit1, .activeCrit2, .activeCrit3 {
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: @critBorderColor; stroke: @critBorderColor;
fill: @activeTaskBkgColor; fill: @activeTaskBkgColor;
stroke-width: 2; stroke-width: 2;
} }
.doneCrit0, .doneCrit1, .doneCrit2, .doneCrit3 {
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: @critBorderColor; stroke: @critBorderColor;
fill: @doneTaskBkgColor; fill: @doneTaskBkgColor;
stroke-width: 2; stroke-width: 2;
cursor: pointer; cursor: pointer; //shape-rendering: crispEdges;
//shape-rendering: crispEdges;
} }
.doneCritText0, .doneCritText1, .doneCritText2, .doneCritText3 {
.doneCritText0,
.doneCritText1,
.doneCritText2,
.doneCritText3 {
fill: @taskTextDarkColor !important; fill: @taskTextDarkColor !important;
} }
.activeCritText0, .activeCritText1, .activeCritText2, .activeCritText3 {
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: @taskTextDarkColor !important; fill: @taskTextDarkColor !important;
} }

View File

@@ -3,10 +3,9 @@
@import "sequenceDiagram"; @import "sequenceDiagram";
@import "gantt"; @import "gantt";
@import "classDiagram"; @import "classDiagram";
.node text { .node text {
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
font-size:14px; font-size: 14px;
} }
div.mermaidTooltip { div.mermaidTooltip {
@@ -20,5 +19,5 @@ div.mermaidTooltip {
border: 1px solid @border2; border: 1px solid @border2;
border-radius: 2px; border-radius: 2px;
pointer-events: none; pointer-events: none;
z-index:100; z-index: 100;
} }

View File

@@ -2,6 +2,7 @@
stroke: @actorBorder; stroke: @actorBorder;
fill: @actorBkg; fill: @actorBkg;
} }
text.actor { text.actor {
fill: @actorTextColor; fill: @actorTextColor;
stroke: none; stroke: none;
@@ -27,11 +28,12 @@ text.actor {
#arrowhead { #arrowhead {
fill: @signalColor; fill: @signalColor;
} }
#crosshead path { #crosshead path {
fill: @signalColor !important; fill: @signalColor !important;
stroke: @signalColor !important; stroke: @signalColor !important;
} }
.messageText { .messageText {
fill: @signalTextColor; fill: @signalTextColor;
stroke: none; stroke: none;

View File

@@ -1,66 +1,54 @@
@mainBkg: #eee; @mainBkg: #eee;
@secondBkg: lighten(@contrast, 55%); @secondBkg: lighten(@contrast, 55%);
@lineColor: #666; @lineColor: #666;
@border1: #999; @border1: #999;
@border2: @contrast; @border2: @contrast;
@note: #ffa;
@note: #ffa; @text: #333;
@text: #333; @contrast: #26a;
@contrast: #26a; @critical: #d42;
@critical: #d42; @done: #bbb;
@done: #bbb;
/* Flowchart variables */ /* Flowchart variables */
@nodeBkg: @mainBkg; @nodeBkg: @mainBkg;
@nodeBorder: @border1; @nodeBorder: @border1;
@clusterBkg: @secondBkg; @clusterBkg: @secondBkg;
@clusterBorder: @border2; @clusterBorder: @border2;
@defaultLinkColor: @lineColor; @defaultLinkColor: @lineColor;
@titleColor: @text; @titleColor: @text;
@edgeLabelBackground: white; @edgeLabelBackground: white;
/* Sequence Diagram variables */ /* Sequence Diagram variables */
@actorBorder: @border1; @actorBorder: @border1;
@actorBkg: @mainBkg; @actorBkg: @mainBkg;
@actorTextColor: @text; @actorTextColor: @text;
@actorLineColor: @lineColor; @actorLineColor: @lineColor;
@signalColor: @text; @signalColor: @text;
@signalTextColor: @text; @signalTextColor: @text;
@labelBoxBkgColor: @contrast; @labelBoxBkgColor: @contrast;
@labelBoxBorderColor: @contrast; @labelBoxBorderColor: @contrast;
@labelTextColor: white; @labelTextColor: white;
@noteBorderColor: darken(@note, 60%); @noteBorderColor: darken(@note, 60%);
@noteBkgColor: @note; @noteBkgColor: @note;
/* Gantt chart variables */ /* Gantt chart variables */
@sectionBkgColor: lighten(@contrast, 30%); @sectionBkgColor: lighten(@contrast, 30%);
@altSectionBkgColor: white; @altSectionBkgColor: white;
@sectionBkgColor2: lighten(@contrast, 30%); @sectionBkgColor2: lighten(@contrast, 30%);
@taskBorderColor: darken(@contrast, 10%); @taskBorderColor: darken(@contrast, 10%);
@taskBkgColor: @contrast; @taskBkgColor: @contrast;
@taskTextColor: @taskTextLightColor; @taskTextColor: @taskTextLightColor;
@taskTextOutsideColor: @taskTextDarkColor; @taskTextOutsideColor: @taskTextDarkColor;
@activeTaskBorderColor: @taskBorderColor; @activeTaskBorderColor: @taskBorderColor;
@activeTaskBkgColor: @mainBkg; @activeTaskBkgColor: @mainBkg;
@gridColor: lighten(@border1, 30%); @gridColor: lighten(@border1, 30%);
@doneTaskBkgColor: @done; @doneTaskBkgColor: @done;
@doneTaskBorderColor: @lineColor; @doneTaskBorderColor: @lineColor;
@critBorderColor: darken(@critBkgColor, 10%); @critBorderColor: darken(@critBkgColor, 10%);
@critBkgColor: @critical; @critBkgColor: @critical;
@taskTextLightColor: white; @taskTextLightColor: white;
@taskTextDarkColor: @text; @taskTextDarkColor: @text;
@todayLineColor: @critBkgColor; @todayLineColor: @critBkgColor;