Skip to content

Commit

Permalink
Scope all css rules to .mermaid
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlong committed Mar 11, 2018
1 parent e20528a commit be33c41
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/themes/flow.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.mermaid .label {
.label {
font-family: 'trebuchet ms', verdana, arial;
color: #333
}
Expand Down
44 changes: 23 additions & 21 deletions src/themes/mermaid.scss
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
@import 'flow';
@import 'sequenceDiagram';
@import 'gantt';
@import 'classDiagram';
@import 'gitGraph';
.mermaid {
@import 'flow';
@import 'sequenceDiagram';
@import 'gantt';
@import 'classDiagram';
@import 'gitGraph';

.node text {
font-family: 'trebuchet ms', verdana, arial;
font-size: 14px;
}
.node text {
font-family: 'trebuchet ms', verdana, arial;
font-size: 14px;
}

div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: 'trebuchet ms', verdana, arial;
font-size: 12px;
background: $secondBkg;
border: 1px solid $border2;
border-radius: 2px;
pointer-events: none;
z-index: 100;
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: 'trebuchet ms', verdana, arial;
font-size: 12px;
background: $secondBkg;
border: 1px solid $border2;
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
}

0 comments on commit be33c41

Please sign in to comment.