Skip to content

Commit

Permalink
Merge pull request #503 from yudenzel/master
Browse files Browse the repository at this point in the history
Add style for classDiagram to dark/default theme
  • Loading branch information
knsv authored Apr 7, 2017
2 parents c7c077c + 8f7f1ee commit dff8027
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 2 deletions.
69 changes: 69 additions & 0 deletions src/less/dark/classDiagram.less
Original file line number Diff line number Diff line change
@@ -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;
}
2 changes: 1 addition & 1 deletion src/less/dark/mermaid.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "flow";
@import "sequenceDiagram";
@import "gantt";
@import "variables";
@import "classDiagram";

.node text {
font-family: 'trebuchet ms', verdana, arial;
Expand Down
69 changes: 69 additions & 0 deletions src/less/default/classDiagram.less
Original file line number Diff line number Diff line change
@@ -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;
}
2 changes: 1 addition & 1 deletion src/less/default/mermaid.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "flow";
@import "sequenceDiagram";
@import "gantt";
@import "variables";
@import "classDiagram";

.node text {
font-family: 'trebuchet ms', verdana, arial;
Expand Down

0 comments on commit dff8027

Please sign in to comment.