Skip to content

Commit 058af75

Browse files
authored
Merge pull request numpy#17382 from bjnath/new-pydata-css
DOC: NumPy restyling for pydata theme
2 parents d92693b + 30a9041 commit 058af75

File tree

2 files changed

+44
-10
lines changed

2 files changed

+44
-10
lines changed

doc/source/_static/numpy.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
@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');
2+
3+
.navbar-brand img {
4+
height: 75px;
5+
}
6+
.navbar-brand {
7+
height: 75px;
8+
}
9+
10+
body {
11+
font-family: 'Open Sans', sans-serif;
12+
color:#4A4A4A; /* numpy.org body color */
13+
}
14+
15+
pre, code {
16+
font-size: 100%;
17+
line-height: 155%;
18+
}
19+
20+
h1 {
21+
font-style: "Lato", sans-serif;
22+
color: #013243; /* warm black */
23+
font-weight: 700;
24+
letter-spacing: -.04em;
25+
text-align: right;
26+
margin-top: 3rem;
27+
margin-bottom: 4rem;
28+
font-size: 3rem;
29+
}
30+
31+
32+
h2 {
33+
color: #4d77cf; /* han blue */
34+
letter-spacing: -.03em;
35+
}
36+
37+
h3 {
38+
color: #013243; /* warm black */
39+
letter-spacing: -.03em;
40+
}

doc/source/_templates/layout.html

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
{% extends "!layout.html" %}
22

33
{%- block extrahead %}
4-
<!-- this is added via javascript in versionwarning.js -->
4+
{{ super() }}
5+
<link rel="stylesheet" href="{{ pathto('_static/numpy.css', 1) }}" type="text/css" />
6+
7+
<!-- PR #17220: This is added via javascript in versionwarning.js -->
58
<!-- link rel="canonical" href="http://numpy.org/doc/stable/{{ pagename }}{{ file_suffix }}" / -->
69

7-
<style>
8-
.navbar-brand img {
9-
height: 75px;
10-
}
11-
.navbar-brand {
12-
height: 75px;
13-
}
14-
</style>
15-
{{ super() }}
1610
{% endblock %}

0 commit comments

Comments
 (0)