Browse Source

Add post "Marked: Overriding Styles"

pull/1/head
Adam Backstrom 6 years ago
parent
commit
b656be9361
1 changed files with 32 additions and 0 deletions
  1. 32
    0
      content/marked-overriding-styles.md

+ 32
- 0
content/marked-overriding-styles.md View File

@@ -0,0 +1,32 @@
1
+Title: Marked: Overriding Styles
2
+Date: 2013-04-19 10:29
3
+Slug: marked-overriding-styles
4
+Summary: The GitHub style bundled with Marked is pretty good, but I prefer to substitute a couple fonts and remove the outer border. Here's how I modify the built-in stylesheet without duplicating the whole CSS file.
5
+
6
+The GitHub style bundled with [Marked](http://markedapp.com/) is pretty good,
7
+but I prefer to substitute a couple fonts and remove the outer border. Here's
8
+how I modify the built-in stylesheet without duplicating the whole CSS file:
9
+
10
+    /*
11
+       Title: GitHub Modified
12
+       Author: Adam Backstrom
13
+       Description: Additional styles for Marked's GitHub style.
14
+
15
+       Save this file to ~/Library/Application Support/Marked/Custom CSS
16
+    */
17
+
18
+    @import url("/Applications/Marked.app/Contents/Resources/github.css");
19
+
20
+    body {
21
+        font-family: Open Sans;
22
+    }
23
+
24
+    tt, code {
25
+        font-family: Inconsolata;
26
+        font-size: 14px;
27
+    }
28
+
29
+    #wrapper {
30
+        box-shadow: none;
31
+        padding: 15px;
32
+    }

Loading…
Cancel
Save