mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 02:46:16 +01:00
Merge branch 'refs/heads/dev'
This commit is contained in:
commit
b4e2751398
23 changed files with 195 additions and 26 deletions
|
@ -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 {
|
||||
|
|
|
@ -56,4 +56,7 @@ $critBkgColor: #E83737;
|
|||
$taskTextDarkColor: $darkTextColor;
|
||||
$todayLineColor: #DB5757;
|
||||
|
||||
/* state colors */
|
||||
$labelColor: black;
|
||||
|
||||
@import '../mermaid';
|
||||
|
|
|
@ -54,4 +54,7 @@ $critBorderColor: #ff8888;
|
|||
$critBkgColor: red;
|
||||
$todayLineColor: red;
|
||||
|
||||
/* state colors */
|
||||
$labelColor: black;
|
||||
|
||||
@import '../mermaid';
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
.label {
|
||||
font-family: 'trebuchet ms', verdana, arial;
|
||||
font-family: var(--mermaid-font-family);
|
||||
color: #333;
|
||||
}
|
||||
|
||||
|
@ -16,6 +17,9 @@
|
|||
stroke-width: 1px;
|
||||
}
|
||||
|
||||
.node .label {
|
||||
text-align: center;
|
||||
}
|
||||
.node.clickable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
@ -31,6 +35,7 @@
|
|||
|
||||
.edgeLabel {
|
||||
background-color: $edgeLabelBackground;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cluster rect {
|
||||
|
@ -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;
|
||||
|
|
|
@ -55,4 +55,7 @@ $critBorderColor: #ff8888;
|
|||
$critBkgColor: red;
|
||||
$todayLineColor: red;
|
||||
|
||||
/* state colors */
|
||||
$labelColor: black;
|
||||
|
||||
@import '../mermaid';
|
||||
|
|
|
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -74,6 +86,11 @@
|
|||
|
||||
.taskText {
|
||||
text-anchor: middle;
|
||||
font-family: 'trebuchet ms', verdana, arial;
|
||||
font-family: var(--mermaid-font-family);
|
||||
}
|
||||
|
||||
.taskText:not([font-size]) {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
|
@ -81,6 +98,9 @@
|
|||
fill: $taskTextDarkColor;
|
||||
text-anchor: start;
|
||||
font-size: 11px;
|
||||
font-family: 'trebuchet ms', verdana, arial;
|
||||
font-family: var(--mermaid-font-family);
|
||||
|
||||
}
|
||||
|
||||
.taskTextOutsideLeft {
|
||||
|
@ -233,4 +253,6 @@
|
|||
text-anchor: middle;
|
||||
font-size: 18px;
|
||||
fill: $taskTextDarkColor;
|
||||
font-family: 'trebuchet ms', verdana, arial;
|
||||
font-family: var(--mermaid-font-family);
|
||||
}
|
||||
|
|
|
@ -3,4 +3,6 @@
|
|||
.branch-label {
|
||||
fill: lightgrey;
|
||||
color: lightgrey;
|
||||
font-family: 'trebuchet ms', verdana, arial;
|
||||
font-family: var(--mermaid-font-family);
|
||||
}
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
|
@ -59,4 +59,7 @@ $critBkgColor: $critical;
|
|||
$critBorderColor: darken($critBkgColor, 10%);
|
||||
$todayLineColor: $critBkgColor;
|
||||
|
||||
/* state colors */
|
||||
$labelColor: black;
|
||||
|
||||
@import '../mermaid';
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
64
assets/css/_mermaid/state.scss
Normal file
64
assets/css/_mermaid/state.scss
Normal file
|
@ -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);
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
/** Post **/
|
||||
.post-title {
|
||||
margin: 0 !important;
|
||||
font-size: 2rem;
|
||||
font-size: 1.8rem;
|
||||
line-height: 3rem;
|
||||
}
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
.navbar-header a {
|
||||
padding: 0 8px;
|
||||
font-size: 20px;
|
||||
|
||||
i {
|
||||
line-height: 2em;
|
||||
|
@ -65,6 +66,10 @@
|
|||
padding-left: 1em;
|
||||
box-sizing: border-box;
|
||||
|
||||
.navbar-header-title {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.menu-toggle {
|
||||
cursor: pointer;
|
||||
line-height: 4.5em;
|
||||
|
@ -72,7 +77,7 @@
|
|||
span {
|
||||
display: block;
|
||||
background: #000;
|
||||
width: 36px;
|
||||
width: 24px;
|
||||
height: 2px;
|
||||
-webkit-border-radius: 3px;
|
||||
-moz-border-radius: 3px;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
gittalk@1.5.0
|
||||
gitalk@1.5.0
|
||||
valine@1.3.10
|
||||
jquery@3.4.1
|
||||
lazysizes@5.1.2
|
||||
katex@0.11.1
|
||||
mermaid@8.3.1
|
||||
echarts@4.3.0
|
||||
typeit@6.0.3
|
||||
mermaid@8.4.2
|
||||
echarts@4.5.0
|
||||
typeit@6.1.1
|
||||
jquery-countdown@2.2.0
|
||||
aplayer@1.10.1
|
||||
meting@2.0.1
|
||||
|
|
2
assets/js/lib/echarts/echarts.min.js
vendored
Executable file → Normal file
2
assets/js/lib/echarts/echarts.min.js
vendored
Executable file → Normal file
File diff suppressed because one or more lines are too long
0
assets/js/lib/echarts/macarons.js
Executable file → Normal file
0
assets/js/lib/echarts/macarons.js
Executable file → Normal file
40
assets/js/lib/mermaid/mermaid.min.js
vendored
Executable file → Normal file
40
assets/js/lib/mermaid/mermaid.min.js
vendored
Executable file → Normal file
File diff suppressed because one or more lines are too long
10
assets/js/lib/typeit/typeit.min.js
vendored
10
assets/js/lib/typeit/typeit.min.js
vendored
File diff suppressed because one or more lines are too long
10
assets/js/lib/typeit/typeit.modern.min.js
vendored
Normal file
10
assets/js/lib/typeit/typeit.modern.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
<nav class="navbar">
|
||||
<div class="navbar-container">
|
||||
<div class="navbar-header">
|
||||
<div class="navbar-header animated bounceIn">
|
||||
<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
|
||||
</div>
|
||||
<div class="navbar-menu">
|
||||
|
@ -15,7 +15,9 @@
|
|||
<nav class="navbar-mobile">
|
||||
<div class="navbar-container">
|
||||
<div class="navbar-header">
|
||||
<div><a href="javascript:void(0);" class="theme-switch"><i class="fas fa-adjust fa-rotate-180 fa-fw"></i></a><a href="{{.Site.BaseURL}}">{{ .Site.Title }}</a></div>
|
||||
<div class="navbar-header-title animated bounceIn">
|
||||
<a href="{{.Site.BaseURL}}">{{ .Site.Title }}</a>
|
||||
</div>
|
||||
<div class="menu-toggle" id="menu-toggle">
|
||||
<span></span><span></span><span></span>
|
||||
</div>
|
||||
|
@ -25,6 +27,7 @@
|
|||
{{ range .Site.Menus.main }}
|
||||
<a class="menu-item" href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name | safeHTML }}</a>
|
||||
{{ end }}
|
||||
<a href="javascript:void(0);" class="theme-switch"><i class="fas fa-adjust fa-rotate-180 fa-fw"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
|
@ -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 -->
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue