浏览代码

Add mdvimb styles to configuration

'darkzen' color profile for HTMLs generated by mdvimb
Alois Mahdal 5 年前
父节点
当前提交
762a84bf50
共有 3 个文件被更改,包括 62 次插入0 次删除
  1. 1
    0
      dotfiles/bash/main.bashrc
  2. 31
    0
      dotfiles/config/mdvimb/css/darkzen.css
  3. 30
    0
      dotfiles/config/mdvimb/css/pergamen.css

+ 1
- 0
dotfiles/bash/main.bashrc 查看文件

@@ -496,6 +496,7 @@ export PRETTY=color
496 496
 export PRETTY_DEBUG_EXCLUDE=inigrep
497 497
 
498 498
 export MDVIMB__CONVERTER=commonmark
499
+export MDVIMB__STYLE=darkzen    # pergamen
499 500
 
500 501
 #shellcheck disable=SC2034
501 502
 {

+ 31
- 0
dotfiles/config/mdvimb/css/darkzen.css 查看文件

@@ -0,0 +1,31 @@
1
+body {
2
+    background-color: #111;
3
+    font-family: sans-serif;
4
+    padding: 2em 4em 2em 4em;
5
+    color: #ddd;
6
+}
7
+
8
+code {
9
+    color: #977;
10
+    background-color: #100;
11
+}
12
+
13
+pre {
14
+    padding: 1em ;
15
+    background-color: #100;
16
+}
17
+
18
+blockquote {
19
+    padding: 0.5em 1em 0.5em 1em;
20
+    border-left: solid 0.2em #8ae;
21
+    background-color: #112;
22
+}
23
+
24
+a:hover {
25
+    color: #cf8;
26
+}
27
+
28
+a {
29
+    color: #da8;
30
+}
31
+

+ 30
- 0
dotfiles/config/mdvimb/css/pergamen.css 查看文件

@@ -0,0 +1,30 @@
1
+body {
2
+    background-color: #ffc;
3
+    font-family: sans-serif;
4
+    padding: 2em 4em 2em 4em;
5
+}
6
+
7
+code {
8
+    color: #900;
9
+    background-color: #fec;
10
+}
11
+
12
+pre {
13
+    padding: 1em ;
14
+    background-color: #fec;
15
+}
16
+
17
+blockquote {
18
+    padding: 0.5em 1em 0.5em 1em;
19
+    border-left: solid 0.2em #99e;
20
+    background-color: #eef;
21
+}
22
+
23
+a {
24
+    color: #99e;
25
+}
26
+
27
+a:hover {
28
+    color: #77c;
29
+}
30
+