From 9a1424f02965f6fbae186ae5b7a99cd1eca92413 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Mon, 1 Sep 2014 14:11:19 -0400 Subject: docs: start using webfonts For now just point to google-hosted font files, until webfonts get installed at rambutan.cc in a stable location. --- docs/source/_static/rambutan-docs.css | 6 +++--- docs/source/_static/rambutan-fonts.css | 27 +++++++++++++++++++++++++++ docs/source/conf.py | 1 + 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 docs/source/_static/rambutan-fonts.css (limited to 'docs/source') diff --git a/docs/source/_static/rambutan-docs.css b/docs/source/_static/rambutan-docs.css index 84cca81..173bd34 100644 --- a/docs/source/_static/rambutan-docs.css +++ b/docs/source/_static/rambutan-docs.css @@ -4,7 +4,7 @@ /* TODO: http://practicaltypography.com/rules-and-borders.html */ body { - font-family: serif; + font-family: "Crimson Text", serif; font-size: 16px; } @@ -31,7 +31,7 @@ body { h1, h2, h3, h4, h5, h6 { color: #000; - font-family: "Helvetica", sans-serif; + font-family: "Open Sans", "Helvetica", sans-serif; } h1 { font-size: 1.6em; font-weight: bold; } @@ -74,7 +74,7 @@ footer#pagefooter, footer#pagefooter a { body > header h1 a, body > header h1 a:visited { color: #000; margin-left: 240px; - font-family: "Helvetica", sans-serif; + font-family: "Open Sans", "Helvetica", sans-serif; font-weight: bold; text-transform: uppercase; font-variant: small-caps; diff --git a/docs/source/_static/rambutan-fonts.css b/docs/source/_static/rambutan-fonts.css new file mode 100644 index 0000000..717f905 --- /dev/null +++ b/docs/source/_static/rambutan-fonts.css @@ -0,0 +1,27 @@ +/* This file is DEPRECATED! Rambutan-local font files should be used instead */ +@font-face { + font-family: 'Crimson Text'; + font-style: normal; + font-weight: 400; + src: local('Crimson Text'), local('CrimsonText-Roman'), url(http://fonts.gstatic.com/s/crimsontext/v6/3IFMwfRa07i-auYR-B-zNYnF5uFdDttMLvmWuJdhhgs.ttf) format('truetype'); +} +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 400; + src: local('Open Sans'), local('OpenSans'), url(http://fonts.gstatic.com/s/opensans/v10/u-WUoqrET9fUeobQW7jkRaCWcynf_cDxXwCLxiixG1c.ttf) format('truetype'); +} +@font-face { + font-family: 'Source Code Pro'; + font-style: normal; + font-weight: 400; + src: local('Source Code Pro'), local('SourceCodePro-Regular'), url(http://fonts.gstatic.com/s/sourcecodepro/v6/mrl8jkM18OlOQN8JLgasD1zCdIATDt8zXO3QNtzVeJ8.ttf) format('truetype'); +} +/* +@font-face { + font-family: 'Source Sans Pro'; + font-style: normal; + font-weight: 400; + src: local('Source Sans Pro'), local('SourceSansPro-Regular'), url(http://fonts.gstatic.com/s/sourcesanspro/v9/ODelI1aHBYDBqgeIAH2zlFzCdIATDt8zXO3QNtzVeJ8.ttf) format('truetype'); +} +*/ diff --git a/docs/source/conf.py b/docs/source/conf.py index e87e745..c4d4559 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -125,6 +125,7 @@ html_theme_options = { 'showrelbartop': False, 'showrelbarbottom': True, 'cssfiles': ['_static/rambutan-docs.css', + '_static/rambutan-fonts.css', '_static/pygments-solarized-dark.css'], } -- cgit v1.2.3