10000 Fix API contents display for sphinx 2 by dstansby · Pull Request #14105 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Fix API contents display for sphinx 2 #14105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 20 additions & 10 deletions doc/_static/mpl.css
Original file line number Diff line number Diff line change
Expand Up @@ -505,12 +505,13 @@ p.topic-title {
padding-right: .3em;
}

.contents > ul > li > a {
.contents > ul > li p {
font-size: 1.0em;
margin: unset;
display: inline;
}



div.versioninfo {
margin: 1em 0 0 0;
border: 1px solid #ccc;
Expand Down Expand Up @@ -631,7 +632,10 @@ table.docutils {
border: 0px;
}

table.docutils th {
table.docutils p{
margin: inherit;
}
dl.field-list dt.field-odd {
border-width: 1px 0px;
border-color: #888;
background-color: #f0f0f0;
Expand Down Expand Up @@ -699,27 +703,27 @@ dl.class table.property-table {
}

/* tables inside parameter descriptions */
td.field-body table.property-table {
dd.field-odd table.property-table {
width: 100%;
border-spacing: 2px;
border-collapse: collapse;
border: 0px;
}

td.field-body table.property-table th {
dd.field-odd table.property-table th {
padding: 2px 10px;
border-width: 1px 0px;
border-color: #888;
background-color: #f0f0f0;
}

td.field-body table.property-table td {
dd.field-odd table.property-table td {
padding: 2px 10px;
border-width: 1px 0px;
border-color: #ccc;
}

td.field-body table.property-table tr:last-of-type td {
dd.field-odd table.property-table tr:last-of-type td {
border-bottom-color: #888;
}

Expand Down Expand Up @@ -810,16 +814,16 @@ table.docutils.field-list {
vertical-align: top;
width: 125px;
}
.docutils.field-list td.field-body {
.docutils.field-list dd.field-odd {
padding: 10px 10px 10px 20px;
text-align: left;
vertical-align: top;
}
.docutils.field-list td.field-body blockquote p {
.docutils.field-list dd.field-odd blockquote p {
font-size: 13px;
line-height: 18px;
}
.docutils.field-list td.field-body blockquote p ul li{
.docutils.field-list dd.field-odd blockquote p ul li{
font-size: 13px;
}

Expand Down Expand Up @@ -1113,3 +1117,9 @@ div.viewcode-block:target {
.sidebar-announcement p {
margin: 0.4em 0.4em 0.6em 0.4em;
}

.classifier:before {
font-style: normal;
margin: 0.2em;
content: ":";
}
Loading
0