Skip to content

Commit 2c0c8f0

Browse files
committed
Update styles so that rouge is considered.
1 parent 66365a6 commit 2c0c8f0

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

css/main.css

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,29 @@ ul li {
5353
margin-left: 1.55em;
5454
}
5555

56-
blockquote {
57-
background-color: #e9e9e9;
58-
padding: 0.15em 2em;
56+
pre {
57+
margin: 0.5em 0;
5958
}
6059

61-
div.highlight {
62-
background-color: #eee;
60+
/* code blocks */
61+
div.highlighter-rouge, blockquote {
62+
background-color: #f9f9f9;
6363
border: 1px solid #ccc;
64-
padding: 1em;
64+
padding: 0.5em 1.5em;
6565
border-radius: 3px;
66-
margin-bottom: 10px;
66+
margin: 0.5em 0em 1.5em;
6767
}
6868

69-
div.highlight pre {
69+
/* inline code highlights */
70+
code.highlighter-rouge {
71+
color: #666;
72+
background-color: #f9f9f9;
73+
border: 1px solid #ccc;
74+
padding: 0.5em;
75+
border-radius: 3px;
76+
}
77+
78+
.highlight {
7079
overflow: auto
7180
}
7281

css/syntax.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.highlight { background: #ffffff; }
21
.highlight .c { color: #999988; font-style: italic } /* Comment */
32
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
43
.highlight .k { font-weight: bold } /* Keyword */

0 commit comments

Comments
 (0)