Skip to content

Commit 6117d82

Browse files
committed
Merge pull request matplotlib#2186 from NelleV/doc_styling
DOC modified sphinx's layout.hml
2 parents ff3456e + 1741755 commit 6117d82

File tree

2 files changed

+269
-65
lines changed

2 files changed

+269
-65
lines changed

doc/_static/mpl.css

Lines changed: 43 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
body {
7-
font-family: "Raleway", "Helvetica Neue", Helvetica, 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', sans-serif;
7+
font-family: "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%;
@@ -13,7 +13,7 @@ body {
1313
color: black;
1414
padding: 0;
1515
border: 1px solid #aaa;
16-
16+
color: #333;
1717
margin: 0px 80px 0px 80px;
1818
min-width: 740px;
1919
}
@@ -32,12 +32,17 @@ a:hover {
3232
}
3333

3434
pre {
35-
font-family: 'Consolas', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
36-
font-size: 0.95em;
35+
font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;
36+
font-size: 0.90em;
37+
border-bottom-left-radius: 4px;
38+
border-bottom-right-radius: 4px;
39+
border-top-left-radius: 4px;
40+
border-top-right-radius: 4px;
3741
letter-spacing: 0.015em;
38-
padding: 0.5em;
42+
padding: 1em;
3943
border: 1px solid #ccc;
4044
background-color: #f8f8f8;
45+
line-height: 140%;
4146
}
4247

4348
td.linenos pre {
@@ -125,11 +130,7 @@ dd {
125130

126131
dt:target,
127132
.highlight {
128-
background-color: #fbe54e;
129-
}
130-
131-
dl.class, dl.function {
132-
border-top: 2px solid #888;
133+
background-color: #ffffee;
133134
}
134135

135136
dl.method, dl.attribute {
@@ -141,13 +142,9 @@ dl.glossary dt {
141142
font-size: 1.1em;
142143
}
143144

144-
pre {
145-
line-height: 120%;
146-
}
147-
148145
pre a {
149146
color: inherit;
150-
text-decoration: underline;
147+
text-decoration: none;
151148
}
152149

153150
.first {
@@ -218,10 +215,6 @@ div.bodywrapper {
218215
border-right: 1px solid #ccc;
219216
}
220217

221-
div.body a {
222-
text-decoration: underline;
223-
}
224-
225218
div.sphinxsidebar {
226219
margin: 0;
227220
padding: 0.5em 15px 15px 0;
@@ -262,15 +255,16 @@ p.rubric {
262255
}
263256

264257
h1 {
265-
margin: 0;
266-
padding: 0.7em 0 0.3em 0;
267-
font-size: 1.5em;
258+
margin: 0.5em 0em;
259+
padding-top: 0.5em;
260+
font-size: 2em;
268261
color: #11557C;
269262
}
270263

271264
h2 {
272-
margin: 1.3em 0 0.2em 0;
273-
font-size: 1.35em;
265+
margin: 0.5em 0 0.2em 0;
266+
padding-top: 0.5em;
267+
font-size: 1.7em;
274268
padding: 0;
275269
}
276270

@@ -359,9 +353,6 @@ div.sphinxsidebar ul.toc ul li {
359353

360354
div.admonition, div.warning {
361355
font-size: 0.9em;
362-
margin: 1em 0 0 0;
363-
border: 1px solid #86989B;
364-
background-color: #f7f7f7;
365356
}
366357

367358
div.admonition p, div.warning p {
@@ -376,11 +367,8 @@ div.admonition pre, div.warning pre {
376367
div.admonition p.admonition-title,
377368
div.warning p.admonition-title {
378369
margin: 0;
379-
padding: 0.1em 0 0.1em 0.5em;
380-
color: white;
381-
border-bottom: 1px solid #86989B;
382370
font-weight: bold;
383-
background-color: #AFC1C4;
371+
font-size: 14px;
384372
}
385373

386374
div.warning {
@@ -518,14 +506,6 @@ table.docutils {
518506
border-left-width: 0px;
519507
}
520508

521-
table.docutils tr:nth-child(even) {
522-
background-color: #F3F3FF;
523-
}
524-
525-
table.docutils tr:nth-child(odd) {
526-
background-color: #FFFFEE;
527-
}
528-
529509
/* module summary table */
530510
.longtable.docutils {
531511
font-size: 12px;
@@ -536,20 +516,6 @@ table.docutils tr:nth-child(odd) {
536516
border-color: #ccc;
537517
}
538518

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;
548-
}
549-
.descname {
550-
font-family: monospace;
551-
}
552-
553519
/* module summary table */
554520
.longtable.docutils {
555521
font-size: 12px;
@@ -560,10 +526,6 @@ dl.class, dl.function, dl.method, dl.attribute {
560526
}
561527

562528
/* function and class description */
563-
dl.class, dl.function, dl.method, dl.attribute {
564-
border-top: 1px solid #ccc;
565-
padding-top: 10px;
566-
}
567529
.descclassname {
568530
color: #aaa;
569531
font-weight: normal;
@@ -589,9 +551,33 @@ dl.class em, dl.function em, dl.class big, dl.function big {
589551
font-weight: normal;
590552
font-family: monospace;
591553
}
554+
592555
dl.class dd, dl.function dd {
593556
padding: 10px;
594557
}
558+
559+
/* function and class description */
560+
dl.class, dl.function, dl.method, dl.attribute {
561+
border-top: 1px solid #ccc;
562+
padding-top: 6px;
563+
}
564+
565+
dl.class, dl.function {
566+
border-top: 1px solid #888;
567+
margin-top: 15px;
568+
}
569+
570+
571+
.descclassname {
572+
color: #aaa;
573+
font-weight: normal;
574+
font-family: monospace;
575+
}
576+
.descname {
577+
font-family: monospace;
578+
}
579+
580+
595581
.docutils.field-list th {
596582
background-color: #eee;
597583
padding: 10px;

0 commit comments

Comments
 (0)