Skip to content

Commit 1531a70

Browse files
committed
TL: added a bit of custom css for documentation website
1 parent b26c7d0 commit 1531a70

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

docs/source/_static/custom.css

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
blockquote {
2+
padding: 0 0 0 15px;
3+
margin: 0 0 19px;
4+
border-left: 5px solid #eeeeee;
5+
}
6+
blockquote p {
7+
margin-bottom: 0;
8+
}
9+
blockquote small {
10+
display: block;
11+
line-height: 19px;
12+
color: #999999;
13+
}
14+
blockquote small:before {
15+
content: '\2014 \00A0';
16+
}
17+
blockquote.pull-right {
18+
float: right;
19+
padding-right: 15px;
20+
padding-left: 0;
21+
border-right: 5px solid #eeeeee;
22+
border-left: 0;
23+
}
24+
blockquote.pull-right p,
25+
blockquote.pull-right small {
26+
text-align: right;
27+
}
28+
blockquote.pull-right small:before {
29+
content: '';
30+
}
31+
blockquote.pull-right small:after {
32+
content: '\00A0 \2014';
33+
}
34+
q:before,
35+
q:after,
36+
blockquote:before,
37+
blockquote:after {
38+
content: "";
39+
}

docs/source/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,11 @@
173173
# Add any paths that contain custom static files (such as style sheets) here,
174174
# relative to this directory. They are copied after the builtin static files,
175175
# so a file named "default.css" will overwrite the builtin "default.css".
176-
html_static_path = []
176+
html_static_path = ['_static']
177+
178+
html_css_files = [
179+
'custom.css',
180+
]
177181

178182
# Add any extra paths that contain custom files (such as robots.txt or
179183
# .htaccess) here, relative to this directory. These files are copied

0 commit comments

Comments
 (0)