Skip to content

Commit 89d6f5b

Browse files
committed
Update website style
1 parent 81151a5 commit 89d6f5b

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
lines changed

docs/_static/custom.css

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,48 @@
7777
--accent-bg-color: #505050;
7878
}
7979

80+
/* Font families from modern pydata theme */
81+
/* Github fonts: */
82+
/* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; */
83+
/* Pandas fonts: */
84+
/* -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; */
85+
/* SFMono-Regular, Menlo, Consolas, Monaco, "Liberation Mono", "Lucida Console", monospace; */
86+
body, h1, h2, h3, h4, h5, h6, .rst-content .toctree-wrapper p.caption{
87+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
88+
}
89+
90+
91+
/* Keep bold headers but slightly larger than RTD and smaller than pydata */
92+
.rst-content div[class^='highlight'] pre,
93+
.rst-content pre.literal-block,
94+
.rst-content .linenodiv pre{
95+
font-size: 13px;
96+
}
97+
body, p, .rst-content{
98+
font-size: 15px;
99+
}
100+
h1{
101+
font-size: 200%;
102+
}
103+
h2{
104+
font-size: 180%;
105+
}
106+
h3{
107+
font-size: 160%;
108+
}
109+
h4, .rst-content p.rubric{
110+
font-size: 140%;
111+
}
112+
h5{
113+
font-size: 120%;
114+
}
115+
h6{
116+
font-size: 100%;
117+
}
118+
.wy-menu-vertical header, .wy-menu-vertical p.caption {
119+
font-size: 90%; /* default is 85% */
120+
}
121+
80122
/* RST content background color */
81123
body.scroll-up,
82124
body.scroll-down,
@@ -260,12 +302,11 @@ code,
260302
/* Parameters and Returns header colors */
261303
.rst-content dl:not(.docutils) .field-list>dt {
262304
font-weight: bold;
263-
font-size: 16px; /* todo make relative */
264305
color: var(--main-color);
265306
background: var(--block-bg-color);
266307
border-left-color: var(--accent-bg-color);
267308
/* padding: 0; */ /* remove accents, decided against this */
268-
/* border: 0; */
309+
/* border: 0; */ /* remove accents, decided against this */
269310
}
270311

271312
/* Parameter table colors */

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
# Set up mapping for other projects' docs
138138
intersphinx_mapping = {
139139
'cycler': ('https://matplotlib.org/cycler/', None),
140-
'matplotlib': ('https://matplotlib.org', None),
140+
'matplotlib': ('https://matplotlib.org/stable', None),
141141
'sphinx': ('http://www.sphinx-doc.org/en/stable', None),
142142
'python': ('https://docs.python.org/3', None),
143143
'numpy': ('https://docs.scipy.org/doc/numpy', None),

0 commit comments

Comments
 (0)