Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4b588a7

Browse filesBrowse files
committed
Merge pull request #2184 from NelleV/doc_styling
ENH improved the css style of the docs
2 parents 1c31b47 + 954eeac commit 4b588a7
Copy full SHA for 4b588a7

File tree

Expand file treeCollapse file tree

2 files changed

+94
-9
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+94
-9
lines changed

‎doc/_static/mpl.css

Copy file name to clipboardExpand all lines: doc/_static/mpl.css
+92-9Lines changed: 92 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
/**
1+
/*
22
* Alternate Sphinx design
33
* Originally created by Armin Ronacher for Werkzeug, adapted by Georg Brandl.
44
*/
55

66
body {
7-
font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', sans-serif;
7+
font-family: "Raleway", "Helvetica Neue", Helvetica, 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', sans-serif;
88
font-size: 14px;
99
letter-spacing: -0.01em;
1010
line-height: 150%;
1111
text-align: center;
12-
/*background-color: #AFC1C4; */
1312
background-color: #BFD1D4;
1413
color: black;
1514
padding: 0;
@@ -24,6 +23,10 @@ a {
2423
text-decoration: none;
2524
}
2625

26+
strong {
27+
font-weight: strong;
28+
}
29+
2730
a:hover {
2831
color: #2491CF;
2932
}
@@ -103,7 +106,7 @@ dl {
103106
}
104107

105108
dd p {
106-
margin-top: 0px;
109+
margin-top: 1px;
107110
}
108111

109112
dd ul, dd table {
@@ -251,7 +254,7 @@ div.sphinxsidebar ul ul {
251254
}
252255

253256
p {
254-
margin: 0.8em 0 0.5em 0;
257+
margin: 0.8em 0 0.8em 0;
255258
}
256259

257260
p.rubric {
@@ -518,24 +521,104 @@ table.docutils {
518521
table.docutils tr:nth-child(even) {
519522
background-color: #F3F3FF;
520523
}
524+
521525
table.docutils tr:nth-child(odd) {
522526
background-color: #FFFFEE;
523527
}
524528

525-
table.docutils tr {
526-
border-style: solid none solid none;
527-
border-width: 1px 0 1px 0;
528-
border-color: #AAAAAA;
529+
/* module summary table */
530+
.longtable.docutils {
531+
font-size: 12px;
532+
margin-bottom: 30px;
533+
background-color: #ccc;
534+
}
535+
.longtable.docutils, .longtable.docutils td {
536+
border-color: #ccc;
537+
}
538+
539+
/* function and class description */
540+
dl.class, dl.function, dl.method, dl.attribute {
541+
border-top: 1px solid #ccc;
542+
padding-top: 10px;
543+
}
544+
.descclassname {
545+
color: #aaa;
546+
font-weight: normal;
547+
font-family: monospace;
529548
}
549+
.descname {
550+
font-family: monospace;
551+
}
552+
553+
/* module summary table */
554+
.longtable.docutils {
555+
font-size: 12px;
556+
margin-bottom: 30px;
557+
}
558+
.longtable.docutils, .longtable.docutils td {
559+
border-color: #ccc;
560+
}
561+
562+
/* function and class description */
563+
dl.class, dl.function, dl.method, dl.attribute {
564+
border-top: 1px solid #ccc;
565+
padding-top: 10px;
566+
}
567+
.descclassname {
568+
color: #aaa;
569+
font-weight: normal;
570+
font-family: monospace;
571+
}
572+
.descname {
573+
font-family: monospace;
574+
}
575+
530576

531577
table.docutils th {
532578
padding: 1px 8px 1px 5px;
579+
background-color: #eee;
580+
width: 100px;
533581
}
534582

535583
table.docutils td {
536584
border-width: 1px 0 1px 0;
537585
}
538586

587+
588+
dl.class em, dl.function em, dl.class big, dl.function big {
589+
font-weight: normal;
590+
font-family: monospace;
591+
}
592+
dl.class dd, dl.function dd {
593+
padding: 10px;
594+
}
595+
.docutils.field-list th {
596+
background-color: #eee;
597+
padding: 10px;
598+
text-align: left;
599+
vertical-align: top;
600+
width: 120px;
601+
}
602+
.docutils.field-list td {
603+
padding: 10px 10px 10px 20px;
604+
text-align: left;
605+
vertical-align: top;
606+
}
607+
.docutils.field-list td blockquote p {
608+
font-size: 13px;
609+
line-height: 18px;
610+
}
611+
p.rubric {
612+
font-weight: bold;
613+
font-size: 19px;
614+
margin: 15px 0 10px 0;
615+
}
616+
p.admonition-title {
617+
font-weight: bold;
618+
text-decoration: underline;
619+
}
620+
621+
539622
#matplotlib-examples ul li{
540623
font-size: large;
541624
}

‎doc/_templates/layout.html

Copy file name to clipboardExpand all lines: doc/_templates/layout.html
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{% extends "!layout.html" %}
22

3+
<link href="http://fonts.googleapis.com/css?family=Raleway" rel="stylesheet" type="text/css">
4+
35
{% block rootrellink %}
46
<li><a href="{{ pathto('index') }}">home</a>|&nbsp;</li>
57
<li><a href="{{ pathto('examples/index') }}">examples</a>|&nbsp;</li>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.