aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2014-09-01 18:51:56 -0400
committerbnewbold <bnewbold@robocracy.org>2014-09-01 20:01:26 -0400
commit7dee64e16c34278eb4c2a214d63ae1509e7b15a4 (patch)
tree5c64d63e07b788e3727c608180434cc2bf7eab28
parent98dc0886df0e79012cd2fd70e98da7109ec4386e (diff)
downloadlibrambutan-7dee64e16c34278eb4c2a214d63ae1509e7b15a4.tar.gz
librambutan-7dee64e16c34278eb4c2a214d63ae1509e7b15a4.zip
docs: get webfonts from rambutan.cc instead of google
-rw-r--r--docs/source/_static/rambutan-docs.css40
-rw-r--r--docs/source/_static/rambutan-fonts.css27
-rw-r--r--docs/source/conf.py1
3 files changed, 39 insertions, 29 deletions
diff --git a/docs/source/_static/rambutan-docs.css b/docs/source/_static/rambutan-docs.css
index 7f7e0f2..deadbcc 100644
--- a/docs/source/_static/rambutan-docs.css
+++ b/docs/source/_static/rambutan-docs.css
@@ -3,7 +3,30 @@
/* TODO: http://practicaltypography.com/rules-and-borders.html */
-/* General page styling */
+/* Fonts first */
+@font-face {
+ font-family: 'SourceCodePro-Regular';
+ src: url('//rambutan.cc/theme/source-code-pro/SourceCodePro-Regular.eot?#iefix') format('embedded-opentype'), url('//rambutan.cc/theme/source-code-pro/SourceCodePro-Regular.otf') format('opentype'),
+ url('//rambutan.cc/theme/source-code-pro/SourceCodePro-Regular.woff') format('woff'), url('//rambutan.cc/theme/source-code-pro/SourceCodePro-Regular.ttf') format('truetype'), url('//rambutan.cc/theme/source-code-pro/SourceCodePro-Regular.svg#SourceCodePro-Regular') format('svg');
+ font-weight: normal;
+ font-style: normal;
+}
+
+@font-face {
+ font-family: 'CrimsonText-Roman';
+ src: url('//rambutan.cc/theme/crimson/CrimsonText-Roman.eot?#iefix') format('embedded-opentype'), url('//rambutan.cc/theme/crimson/CrimsonText-Roman.woff') format('woff'), url('//rambutan.cc/theme/crimson/CrimsonText-Roman.ttf') format('truetype'), url('//rambutan.cc/theme/crimson/CrimsonText-Roman.svg#CrimsonText-Roman') format('svg');
+ font-weight: normal;
+ font-style: normal;
+}
+
+@font-face {
+ font-family: 'OpenSans';
+ src: url('//rambutan.cc/theme/open-sans/OpenSans.eot?#iefix') format('embedded-opentype'), url('//rambutan.cc/theme/OpenSans.woff') format('woff'), url('//rambutan.cc/theme/open-sans/OpenSans.ttf') format('truetype'), url('//rambutan.cc/theme/open-sans/OpenSans.svg#OpenSans') format('svg');
+ font-weight: normal;
+ font-style: normal;
+}
+/* End of fonts */
+
body {
font-family: "Crimson Text", serif;
font-size: 16px;
@@ -66,6 +89,21 @@ footer#pagefooter, footer#pagefooter a {
.contents .topic-title {
font-weight: normal;
}
+
+body > header h1 a, body > header h1 a:visited {
+ color: #000;
+ margin-left: 240px;
+ font-family: "Open Sans", "Helvetica", sans-serif;
+ font-weight: bold;
+ text-transform: uppercase;
+ font-variant: small-caps;
+ font-weight: normal;
+}
+
+.sphinxsidebar h3 a {
+ color: #222;
+}
+
pre, tt {
font-family: "Source Code Pro", "Monaco", "Consolas", "Lucida Console", monospace;
}
diff --git a/docs/source/_static/rambutan-fonts.css b/docs/source/_static/rambutan-fonts.css
deleted file mode 100644
index 717f905..0000000
--- a/docs/source/_static/rambutan-fonts.css
+++ /dev/null
@@ -1,27 +0,0 @@
-/* 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 f3af983..f4d4b6f 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -125,7 +125,6 @@ html_theme_options = {
'showrelbartop': False,
'showrelbarbottom': True,
'cssfiles': ['_static/rambutan-docs.css',
- '_static/rambutan-fonts.css',
'_static/pygments-solarized-dark.css'],
}