Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
feat(lib): update mermaid to v8.4.2, echarts to v4.5.0, typeit to v6.…
Browse files Browse the repository at this point in the history
…1.1(modern)
  • Loading branch information
dillonzq committed Nov 23, 2019
1 parent e4627fe commit d056fd4
Show file tree
Hide file tree
Showing 19 changed files with 182 additions and 21 deletions.
5 changes: 5 additions & 0 deletions assets/css/_mermaid/class.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ g.classGroup text {
fill: $nodeBorder;
stroke: none;
font-family: 'trebuchet ms', verdana, arial;
font-family: var(--mermaid-font-family);
font-size: 10px;

.title {
font-weight: bolder;
}
}

g.classGroup rect {
Expand Down
3 changes: 3 additions & 0 deletions assets/css/_mermaid/dark/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@ $critBkgColor: #E83737;
$taskTextDarkColor: $darkTextColor;
$todayLineColor: #DB5757;

/* state colors */
$labelColor: black;

@import '../mermaid';
3 changes: 3 additions & 0 deletions assets/css/_mermaid/default/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,7 @@ $critBorderColor: #ff8888;
$critBkgColor: red;
$todayLineColor: red;

/* state colors */
$labelColor: black;

@import '../mermaid';
6 changes: 6 additions & 0 deletions assets/css/_mermaid/flowchart.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.label {
font-family: 'trebuchet ms', verdana, arial;
font-family: var(--mermaid-font-family);
color: #333;
}

Expand All @@ -16,6 +17,9 @@
stroke-width: 1px;
}

.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
Expand All @@ -31,6 +35,7 @@

.edgeLabel {
background-color: $edgeLabelBackground;
text-align: center;
}

.cluster rect {
Expand All @@ -49,6 +54,7 @@ div.mermaidTooltip {
max-width: 200px;
padding: 2px;
font-family: 'trebuchet ms', verdana, arial;
font-family: var(--mermaid-font-family);
font-size: 12px;
background: $secondBkg;
border: 1px solid $border2;
Expand Down
3 changes: 3 additions & 0 deletions assets/css/_mermaid/forest/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,7 @@ $critBorderColor: #ff8888;
$critBkgColor: red;
$todayLineColor: red;

/* state colors */
$labelColor: black;

@import '../mermaid';
22 changes: 22 additions & 0 deletions assets/css/_mermaid/gantt.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/** Section styling */

.mermaid-main-font {
font-family: "trebuchet ms", verdana, arial;
font-family: var(--mermaid-font-family);
}

.section {
stroke: none;
opacity: 0.2;
Expand Down Expand Up @@ -39,6 +44,9 @@
text-anchor: start;
font-size: 11px;
text-height: 14px;
font-family: 'trebuchet ms', verdana, arial;
font-family: var(--mermaid-font-family);

}


Expand All @@ -48,6 +56,10 @@
stroke: $gridColor;
opacity: 0.3;
shape-rendering: crispEdges;
text {
font-family: 'trebuchet ms', verdana, arial;
font-family: var(--mermaid-font-family);
}
}

.grid path {
Expand All @@ -74,13 +86,21 @@

.taskText {
text-anchor: middle;
font-family: 'trebuchet ms', verdana, arial;
font-family: var(--mermaid-font-family);
}

.taskText:not([font-size]) {
font-size: 11px;
}

.taskTextOutsideRight {
fill: $taskTextDarkColor;
text-anchor: start;
font-size: 11px;
font-family: 'trebuchet ms', verdana, arial;
font-family: var(--mermaid-font-family);

}

.taskTextOutsideLeft {
Expand Down Expand Up @@ -233,4 +253,6 @@
text-anchor: middle;
font-size: 18px;
fill: $taskTextDarkColor;
font-family: 'trebuchet ms', verdana, arial;
font-family: var(--mermaid-font-family);
}
2 changes: 2 additions & 0 deletions assets/css/_mermaid/git.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
.branch-label {
fill: lightgrey;
color: lightgrey;
font-family: 'trebuchet ms', verdana, arial;
font-family: var(--mermaid-font-family);
}
13 changes: 13 additions & 0 deletions assets/css/_mermaid/mermaid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,16 @@
@import 'class';
@import 'git';
@import 'pie';
@import 'state';

// .composit {
// fill: white;
// border-bottom: 1px
// }

:root {
--mermaid-font-family: '"trebuchet ms", verdana, arial';
--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive;
// --mermaid-alt-font-family: '"Lucida Console", Monaco, monospace';
}

3 changes: 3 additions & 0 deletions assets/css/_mermaid/neutral/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,7 @@ $critBkgColor: $critical;
$critBorderColor: darken($critBkgColor, 10%);
$todayLineColor: $critBkgColor;

/* state colors */
$labelColor: black;

@import '../mermaid';
6 changes: 6 additions & 0 deletions assets/css/_mermaid/pie.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@
text-anchor: middle;
font-size: 25px;
fill: $taskTextDarkColor;
font-family: 'trebuchet ms', verdana, arial;
font-family: var(--mermaid-font-family);
}
.slice {
font-family: 'trebuchet ms', verdana, arial;
font-family: var(--mermaid-font-family);
}
1 change: 1 addition & 0 deletions assets/css/_mermaid/sequence.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ text.actor {
fill: black;
stroke: none;
font-family: 'trebuchet ms', verdana, arial;
font-family: var(--mermaid-font-family);
font-size: 14px;
}

Expand Down
64 changes: 64 additions & 0 deletions assets/css/_mermaid/state.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
g.stateGroup text {
fill: $nodeBorder;
stroke: none;
font-size: 10px;
font-family: 'trebuchet ms', verdana, arial;
font-family: var(--mermaid-font-family);
}
g.stateGroup text {
fill: $nodeBorder;
stroke: none;
font-size: 10px;

}
g.stateGroup .state-title {
font-weight: bolder;
fill: $labelColor;
}

g.stateGroup rect {
fill: $nodeBkg;
stroke: $nodeBorder;
}

g.stateGroup line {
stroke: $nodeBorder;
stroke-width: 1;
}

.transition {
stroke: $nodeBorder;
stroke-width: 1;
fill: none;
}

.stateGroup .composit {
fill: white;
border-bottom: 1px
}

.state-note {
stroke: $noteBorderColor;
fill: $noteBkgColor;

text {
fill: black;
stroke: none;
font-size: 10px;
}
}

.stateLabel .box {
stroke: none;
stroke-width: 0;
fill: $nodeBkg;
opacity: 0.5;
}

.stateLabel text {
fill: $labelColor;
font-size: 10px;
font-weight: bold;
font-family: 'trebuchet ms', verdana, arial;
font-family: var(--mermaid-font-family);
}
8 changes: 4 additions & 4 deletions assets/js/lib/VERSION
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
gittalk@1.5.0
gitalk@1.5.0
[email protected]
[email protected]
[email protected]
[email protected]
mermaid@8.3.1
echarts@4.3.0
typeit@6.0.3
mermaid@8.4.2
echarts@4.5.0
typeit@6.1.1
[email protected]
[email protected]
[email protected]
Expand Down
2 changes: 1 addition & 1 deletion assets/js/lib/echarts/echarts.min.js
100755 → 100644

Large diffs are not rendered by default.

Empty file modified assets/js/lib/echarts/macarons.js
100755 → 100644
Empty file.
40 changes: 35 additions & 5 deletions assets/js/lib/mermaid/mermaid.min.js
100755 → 100644

Large diffs are not rendered by default.

10 changes: 0 additions & 10 deletions assets/js/lib/typeit/typeit.min.js

This file was deleted.

10 changes: 10 additions & 0 deletions assets/js/lib/typeit/typeit.modern.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
{{ if eq (getenv "HUGO_ENV") "production" | and .Site.Params.cdn.typeit_js }}
{{ $typeit = .Site.Params.cdn.typeit_js }}
{{ else }}
{{ $res := resources.Get "js/lib/typeit/typeit.min.js" | resources.Minify }}
{{ $res := resources.Get "js/lib/typeit/typeit.modern.min.js" | resources.Minify }}
{{ $typeit = printf "<script src=\"%s\"></script>" $res.RelPermalink }}
{{ end }}
<!-- jQuery.countdown https://github.com/hilios/jQuery.countdown -->
Expand Down

0 comments on commit d056fd4

Please sign in to comment.