Skip to content

Commit

Permalink
customize fonts and colors
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmac committed Jan 27, 2017
1 parent 67c1839 commit 261df14
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
Binary file added docs/_static/img/flatpak.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions docs/_static/theme_overrides.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/* Original Stylesheet */
@import url("https://media.readthedocs.org/css/sphinx_rtd_theme.css");

/* GNOME Overrides */

/* Overpass for headings */
@import url("http://overpass-30e2.kxcdn.com/overpass.css");

/* Source Sans for text */
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:700,700i,400,400i&subset=latin-ext");

body {
font-family: "Source Sans Pro", sans-serif;
}

h1,h2,h3,h4,h5,h6 {
font-family: "Overpass", sans-serif;
font-weight: 200;
}

a.icon-home, a.icon-home:hover {
display: inline-block;
padding: 2px 2px 2px 20px;
background: transparent url(img/flatpak.png) center left no-repeat;
}
.fa-home::before, .icon-home::before {
content: "";
}

.wy-side-nav-search {
background-color: #4a90d9;
}

a, a:visited { color: #4a90d9; }
.wy-menu a { color: #919191; }
.wy-side-nav-search a { color: #fff; }
6 changes: 6 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@
#
html_theme = 'default'

html_context = {
'css_files': [
'_static/theme_overrides.css', #GNOME specific overrides
],
}

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
Expand Down

0 comments on commit 261df14

Please sign in to comment.