summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Nathanson <github@bigriver.xyz>2020-09-27 13:01:42 -0400
committerBen Nathanson <github@bigriver.xyz>2020-09-27 13:01:42 -0400
commit30a904198cd57251e46e6a60f3a6878cc4d0f531 (patch)
tree3332202b1a23afac1808c71ebee7a04309570d30
parentce40769276729d7bde07eb556398a5f47b8ecacf (diff)
downloadnumpy-30a904198cd57251e46e6a60f3a6878cc4d0f531.tar.gz
DOC: NumPy restyling for pydata theme
-rw-r--r--doc/source/_static/numpy.css40
-rw-r--r--doc/source/_templates/layout.html14
2 files changed, 44 insertions, 10 deletions
diff --git a/doc/source/_static/numpy.css b/doc/source/_static/numpy.css
new file mode 100644
index 000000000..22d08cc0d
--- /dev/null
+++ b/doc/source/_static/numpy.css
@@ -0,0 +1,40 @@
+@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,400;0,600;1,400;1,600&display=swap');
+
+.navbar-brand img {
+ height: 75px;
+}
+.navbar-brand {
+ height: 75px;
+}
+
+body {
+ font-family: 'Open Sans', sans-serif;
+ color:#4A4A4A; /* numpy.org body color */
+}
+
+pre, code {
+ font-size: 100%;
+ line-height: 155%;
+}
+
+h1 {
+ font-style: "Lato", sans-serif;
+ color: #013243; /* warm black */
+ font-weight: 700;
+ letter-spacing: -.04em;
+ text-align: right;
+ margin-top: 3rem;
+ margin-bottom: 4rem;
+ font-size: 3rem;
+}
+
+
+h2 {
+ color: #4d77cf; /* han blue */
+ letter-spacing: -.03em;
+}
+
+h3 {
+ color: #013243; /* warm black */
+ letter-spacing: -.03em;
+}
diff --git a/doc/source/_templates/layout.html b/doc/source/_templates/layout.html
index 0b0ba6271..e2812fdd5 100644
--- a/doc/source/_templates/layout.html
+++ b/doc/source/_templates/layout.html
@@ -1,16 +1,10 @@
{% extends "!layout.html" %}
{%- block extrahead %}
- <!-- this is added via javascript in versionwarning.js -->
+{{ super() }}
+<link rel="stylesheet" href="{{ pathto('_static/numpy.css', 1) }}" type="text/css" />
+
+ <!-- PR #17220: This is added via javascript in versionwarning.js -->
<!-- link rel="canonical" href="http://numpy.org/doc/stable/{{ pagename }}{{ file_suffix }}" / -->
-<style>
-.navbar-brand img {
- height: 75px;
-}
-.navbar-brand {
- height: 75px;
-}
-</style>
-{{ super() }}
{% endblock %}