Skip to content

Commit e09f199

Browse files
committed
优化文档UI [no ci]
1 parent 3e93b0e commit e09f199

File tree

2 files changed

+42
-7
lines changed

2 files changed

+42
-7
lines changed

mddoc/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ if [ -d './output' ]; then
1212
rm -r ./output
1313
fi
1414

15-
php ./vendor/bin/build.php -markdownPath ../doc -htmlPath ./output
15+
php ./vendor/bin/build.php -markdownPath ../doc -htmlPath ./output -templatePath ./template
1616

1717
echo "open file ($PWD/output/index.html) preview"

mddoc/template/statics/css/docView.css

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ span.tmpzTreeMove_arrow {
317317
}
318318

319319
.markdown-body code, .markdown-body kbd {
320-
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, "Liberation Mono", Menlo, Courier;
320+
font-family: inherit;
321321
font-size: 1em;
322322
}
323323

@@ -579,12 +579,10 @@ span.tmpzTreeMove_arrow {
579579
}
580580

581581
.markdown-body code {
582-
padding: 0;
583-
padding-top: 0.2em;
584-
padding-bottom: 0.2em;
582+
padding: 0.2em;
585583
margin: 0;
586584
font-size: 85%;
587-
background-color: rgba(0, 0, 0, 0.04);
585+
background-color: #fafafa;
588586
border-radius: 3px;
589587
color: #FF5722;
590588
}
@@ -753,15 +751,52 @@ span.tmpzTreeMove_arrow {
753751

754752
.syntaxhighlighter{
755753
margin: 1.625em 0 !important;
754+
background-color: #fafafa !important;
756755
}
757756

758757
.syntaxhighlighter textarea{
759758
height:100%;
760759
}
761760
.layui-elem-quote{
762761
border-color: #5FB878;
762+
background-color: #fafafa;
763+
}
764+
.layui-elem-quote > p:last-child{
765+
margin-bottom: 0;
763766
}
764767
li{
765768
list-style: inherit;
766769
margin-bottom: 12px;
767-
}
770+
}
771+
772+
.syntaxhighlighter .gutter {
773+
color: #237893!important;
774+
}
775+
776+
.syntaxhighlighter .plain, .syntaxhighlighter .plain a {
777+
color: #333!important
778+
}
779+
780+
.syntaxhighlighter .comments, .syntaxhighlighter .comments a {
781+
color:gray!important;
782+
}
783+
784+
.syntaxhighlighter .string, .syntaxhighlighter .string a {
785+
color: #10893E!important
786+
}
787+
788+
.syntaxhighlighter .keyword {
789+
color: #ff7800!important
790+
}
791+
792+
.syntaxhighlighter .variable {
793+
color: #1E9FFF!important
794+
}
795+
796+
.syntaxhighlighter .functions {
797+
color: #FF5722!important
798+
}
799+
800+
.syntaxhighlighter .constants {
801+
color: #5200FF!important
802+
}

0 commit comments

Comments
 (0)