Add style for classDiagram to dark/default theme

Copy classDiagram.less in forest theme to dark and default theme.

Issue: #454
This commit is contained in:
YuDenzel
2017-04-05 03:11:26 +08:00
parent c7c077c21c
commit 8f7f1ee0b5
4 changed files with 140 additions and 2 deletions

View File

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

View File

@@ -2,7 +2,7 @@
@import "flow"; @import "flow";
@import "sequenceDiagram"; @import "sequenceDiagram";
@import "gantt"; @import "gantt";
@import "variables"; @import "classDiagram";
.node text { .node text {
font-family: 'trebuchet ms', verdana, arial; font-family: 'trebuchet ms', verdana, arial;

View File

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

View File

@@ -2,7 +2,7 @@
@import "flow"; @import "flow";
@import "sequenceDiagram"; @import "sequenceDiagram";
@import "gantt"; @import "gantt";
@import "variables"; @import "classDiagram";
.node text { .node text {
font-family: 'trebuchet ms', verdana, arial; font-family: 'trebuchet ms', verdana, arial;