mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-10 19:09:44 +02:00
Simplify scss code
This commit is contained in:
@@ -36,10 +36,10 @@ import gitGraphRenderer from './diagrams/gitGraph/gitGraphRenderer'
|
|||||||
import gitGraphAst from './diagrams/gitGraph/gitGraphAst'
|
import gitGraphAst from './diagrams/gitGraph/gitGraphAst'
|
||||||
import pkg from '../package.json'
|
import pkg from '../package.json'
|
||||||
|
|
||||||
import darkTheme from './themes/dark/mermaid.scss'
|
import darkTheme from './themes/dark/index.scss'
|
||||||
import defaultTheme from './themes/default/mermaid.scss'
|
import defaultTheme from './themes/default/index.scss'
|
||||||
import forestTheme from './themes/forest/mermaid.scss'
|
import forestTheme from './themes/forest/index.scss'
|
||||||
import neutralTheme from './themes/neutral/mermaid.scss'
|
import neutralTheme from './themes/neutral/index.scss'
|
||||||
|
|
||||||
const themes = {
|
const themes = {
|
||||||
dark: darkTheme,
|
dark: darkTheme,
|
||||||
|
@@ -50,3 +50,5 @@ $critBorderColor: #E83737;
|
|||||||
$critBkgColor: #E83737;
|
$critBkgColor: #E83737;
|
||||||
$taskTextDarkColor: $darkTextColor;
|
$taskTextDarkColor: $darkTextColor;
|
||||||
$todayLineColor: #DB5757;
|
$todayLineColor: #DB5757;
|
||||||
|
|
||||||
|
@import '../mermaid';
|
@@ -1,24 +0,0 @@
|
|||||||
@import "variables";
|
|
||||||
@import "../flow";
|
|
||||||
@import "../sequenceDiagram";
|
|
||||||
@import "../gantt";
|
|
||||||
@import "../classDiagram";
|
|
||||||
@import "../gitGraph";
|
|
||||||
.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;
|
|
||||||
}
|
|
@@ -48,3 +48,5 @@ $doneTaskBorderColor: grey;
|
|||||||
$critBorderColor: #ff8888;
|
$critBorderColor: #ff8888;
|
||||||
$critBkgColor: red;
|
$critBkgColor: red;
|
||||||
$todayLineColor: red;
|
$todayLineColor: red;
|
||||||
|
|
||||||
|
@import '../mermaid';
|
@@ -1,23 +0,0 @@
|
|||||||
@import "variables";
|
|
||||||
@import "../flow";
|
|
||||||
@import "../sequenceDiagram";
|
|
||||||
@import "../gantt";
|
|
||||||
@import "../classDiagram";
|
|
||||||
.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;
|
|
||||||
}
|
|
@@ -50,3 +50,5 @@ $doneTaskBorderColor: grey;
|
|||||||
$critBorderColor: #ff8888;
|
$critBorderColor: #ff8888;
|
||||||
$critBkgColor: red;
|
$critBkgColor: red;
|
||||||
$todayLineColor: red;
|
$todayLineColor: red;
|
||||||
|
|
||||||
|
@import '../mermaid';
|
@@ -1,8 +1,9 @@
|
|||||||
@import "variables";
|
@import 'flow';
|
||||||
@import "../flow";
|
@import 'sequenceDiagram';
|
||||||
@import "../sequenceDiagram";
|
@import 'gantt';
|
||||||
@import "../gantt";
|
@import 'classDiagram';
|
||||||
@import "../classDiagram";
|
@import 'gitGraph';
|
||||||
|
|
||||||
.node text {
|
.node text {
|
||||||
font-family: 'trebuchet ms', verdana, arial;
|
font-family: 'trebuchet ms', verdana, arial;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
@@ -53,3 +53,5 @@ $doneTaskBorderColor: $lineColor;
|
|||||||
$critBkgColor: $critical;
|
$critBkgColor: $critical;
|
||||||
$critBorderColor: darken($critBkgColor, 10%);
|
$critBorderColor: darken($critBkgColor, 10%);
|
||||||
$todayLineColor: $critBkgColor;
|
$todayLineColor: $critBkgColor;
|
||||||
|
|
||||||
|
@import '../mermaid';
|
@@ -1,23 +0,0 @@
|
|||||||
@import "variables";
|
|
||||||
@import "../flow";
|
|
||||||
@import "../sequenceDiagram";
|
|
||||||
@import "../gantt";
|
|
||||||
@import "../classDiagram";
|
|
||||||
.node text {
|
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.mermaidTooltip {
|
|
||||||
position: absolute;
|
|
||||||
text-align: center;
|
|
||||||
max-width: 200px;
|
|
||||||
padding: 2px;
|
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
|
||||||
font-size: 12px;
|
|
||||||
background: $secondBkg;
|
|
||||||
border: 1px solid $border2;
|
|
||||||
border-radius: 2px;
|
|
||||||
pointer-events: none;
|
|
||||||
z-index: 100;
|
|
||||||
}
|
|
@@ -14,14 +14,14 @@ text.actor {
|
|||||||
|
|
||||||
.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;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,8 +56,8 @@ text.actor {
|
|||||||
|
|
||||||
.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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user