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 1f3c248

Browse filesBrowse files
committed
update CSS of admonitions
1 parent cd1ae80 commit 1f3c248
Copy full SHA for 1f3c248

File tree

Expand file treeCollapse file tree

2 files changed

+70
-61
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+70
-61
lines changed

‎doc/_static/mpl.css

Copy file name to clipboardExpand all lines: doc/_static/mpl.css
+69-61Lines changed: 69 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -395,101 +395,115 @@ div.sphinxsidebar ul.toc ul li {
395395
padding: 0;
396396
}
397397

398-
div.admonition, div.warning {
399-
font-size: 0.9em;
398+
/* admonitions */
399+
400+
div.admonition, div.deprecated {
401+
margin: 10px 0px;
402+
padding: 0.7em 1.4em;
403+
border-left: 5px solid;
404+
}
405+
406+
div.note {
407+
background-color: #eee;
408+
border-color: #ccc;
400409
}
401410

411+
div.seealso {
412+
background-color: #EAF1F7;
413+
border-color: #8EADCC;
414+
color: #3F5E7F;
415+
}
416+
402417
div.warning {
403-
color: #b94a48;
404418
background-color: #F3E5E5;
405-
border: 1px solid #eed3d7;
419+
border-color: #CC8E8E;
420+
color: #7F1919;
406421
}
407422

408423
div.deprecated {
409-
color: #606060;
410424
background-color: #f0f0f0;
411-
border: 1px solid #404040;
425+
border-color: #404040;
426+
color: #606060;
412427
}
413428

414429
div.deprecated span.versionmodified {
415-
color: #606060;
416430
font-weight: bold;
417431
}
418432

419433
div.green, div.hint {
420-
color: #468847;
421-
background-color: #dff0d8;
422-
border: 1px solid #d6e9c6;
423-
}
424-
425-
div.admonition p, div.warning p, div.deprecated p {
426-
margin: 0.5em 1em 0.5em 1em;
427-
padding: 0;
434+
background-color: #E1F2DA;
435+
border-color: #A1CC8E;
436+
color: #3F7F3F;
428437
}
429438

430-
div.admonition pre, div.warning pre {
431-
margin: 0.4em 1em 0.4em 1em;
439+
div.admonition p.admonition-title {
440+
font-size: 1.2em;
441+
font-weight: bold;
432442
}
433443

434-
div.admonition p.admonition-title + p {
435-
display: inline;
444+
div.admonition p, div.deprecated p {
445+
margin: 0.6em 0;
446+
padding: 0;
436447
}
437448

438-
439-
div.admonition p.admonition-title,
440-
div.warning p.admonition-title {
441-
margin: 0;
442-
font-weight: bold;
443-
font-size: 14px;
449+
div.admonition pre {
450+
margin: 0.6em 0;
444451
}
445452

446-
div.admonition, div.deprecated {
447-
margin-bottom: 10px;
448-
margin-top: 10px;
449-
padding: 7px;
450-
border-radius: 4px;
451-
-moz-border-radius: 4px;
452-
}
453-
454-
div.note {
455-
background-color: #eee;
456-
border: 1px solid #ccc;
453+
div.admonition ul, div.admonition ol {
454+
margin: 0.1em 0.5em 0.5em 2em;
455+
padding: 0;
457456
}
458457

459458
div.topic {
460-
background-color: #eee;
461-
border: 1px solid #CCC;
459+
background-color: #f4f4f4;
460+
border: 2px solid #ccc;
461+
border-left: 0px;
462+
border-right: 0px;
462463
margin: 10px 0px;
463-
padding: 7px 7px 0px;
464-
border-radius: 4px;
465-
-moz-border-radius: 4px;
464+
padding: 1em 1.4em;
466465
}
467466

468467
p.topic-title {
469-
font-size: 1.1em;
468+
font-size: 1.2em;
470469
font-weight: bold;
471470
}
472471

473-
div.seealso {
474-
background-color: #FFFBE8;
475-
border: 1px solid #fbeed5;
476-
color: #AF8A4B;
477-
}
472+
.contents ul {
473+
list-style-type: none;
474+
padding-left: 2em;
475+
}
478476

479-
div.warning {
480-
border: 1px solid #940000;
477+
/* first level */
478+
.contents > ul {
479+
padding-left: 0;
481480
}
482481

483-
div.warning p.admonition-title {
484-
border-bottom-color: #940000;
482+
.multicol-toc > ul {
483+
column-width: 250px;
484+
column-gap: 60px;
485+
-webkit-column-width: 250px;
486+
-moz-column-width: 250px;
487+
column-rule: 1px solid #ccc;
485488
}
486489

487-
div.admonition ul, div.admonition ol,
488-
div.warning ul, div.warning ol {
489-
margin: 0.1em 0.5em 0.5em 3em;
490-
padding: 0;
490+
.multicol-toc > li {
491+
/* break inside is not yet broadly supported, but we just try */
492+
break-inside: avoid-column;
493+
-moz-break-inside: avoid-column;
494+
-webkit-break-inside: avoid-column;
495+
}
496+
497+
.contents > ul > li {
498+
padding-top: 0.7em;
491499
}
492500

501+
.contents > ul > li > a {
502+
font-size: 1.0em;
503+
}
504+
505+
506+
493507
div.versioninfo {
494508
margin: 1em 0 0 0;
495509
border: 1px solid #ccc;
@@ -499,7 +513,6 @@ div.versioninfo {
499513
font-size: 0.9em;
500514
}
501515

502-
503516
a.headerlink {
504517
color: #c60f0f!important;
505518
font-size: 1em;
@@ -721,11 +734,6 @@ p.rubric {
721734
font-size: 19px;
722735
margin: 15px 0 10px 0;
723736
}
724-
p.admonition-title {
725-
font-weight: bold;
726-
text-decoration: underline;
727-
}
728-
729737

730738
#matplotlib-examples ul li{
731739
font-size: large;

‎doc/api/axes_api.rst

Copy file name to clipboardExpand all lines: doc/api/axes_api.rst
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
:depth: 2
1212
:local:
1313
:backlinks: entry
14+
:class: multicol-toc
1415

1516

1617
Plotting

0 commit comments

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