Skip to content

Commit 7b0a5e4

Browse files
committed
customize fonts and colors
1 parent bd7500f commit 7b0a5e4

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

Diff for: docs/_static/img/flatpak.png

952 Bytes
Loading

Diff for: docs/_static/theme_overrides.css

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/* Original Stylesheet */
2+
@import url("https://media.readthedocs.org/css/sphinx_rtd_theme.css");
3+
4+
/* GNOME Overrides */
5+
6+
/* Overpass for headings */
7+
@import url("http://overpass-30e2.kxcdn.com/overpass.css");
8+
9+
/* Source Sans for text */
10+
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:700,700i,400,400i&subset=latin-ext");
11+
12+
body {
13+
font-family: "Source Sans Pro", sans-serif;
14+
}
15+
16+
h1,h2,h3,h4,h5,h6 {
17+
font-family: "Overpass", sans-serif;
18+
font-weight: 200;
19+
}
20+
21+
a.icon-home, a.icon-home:hover {
22+
display: inline-block;
23+
padding: 2px 2px 2px 20px;
24+
background: transparent url(img/flatpak.png) center left no-repeat;
25+
}
26+
.fa-home::before, .icon-home::before {
27+
content: "";
28+
}
29+
30+
.wy-side-nav-search {
31+
background-color: #4a90d9;
32+
}
33+
34+
a, a:visited { color: #4a90d9; }
35+
.wy-menu a { color: #919191; }
36+
.wy-side-nav-search a { color: #fff; }

Diff for: docs/conf.py

+6
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@
8585
#
8686
html_theme = 'default'
8787

88+
html_context = {
89+
'css_files': [
90+
'_static/theme_overrides.css', #GNOME specific overrides
91+
],
92+
}
93+
8894
# Theme options are theme-specific and customize the look and feel of a theme
8995
# further. For a list of options available for each theme, see the
9096
# documentation.

0 commit comments

Comments
 (0)