Skip to content

DOC: some stylistic improvements to docstring rendering in documentation #4775

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

Merged
merged 1 commit into from
Sep 20, 2013
Merged
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
54 changes: 52 additions & 2 deletions doc/source/themes/nature_with_gtoc/static/nature.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ div.body h4 { font-size: 110%; background-color: #D8DEE3; }
div.body h5 { font-size: 100%; background-color: #D8DEE3; }
div.body h6 { font-size: 100%; background-color: #D8DEE3; }

p.rubric {
border-bottom: 1px solid rgb(201, 201, 201);
}

a.headerlink {
color: #c60f0f;
font-size: 0.8em;
Expand Down Expand Up @@ -231,10 +235,10 @@ p.admonition-title:after {

pre {
padding: 10px;
background-color: White;
background-color: rgb(250,250,250);
color: #222;
line-height: 1.2em;
border: 1px solid #C6C9CB;
border: 1px solid rgb(201,201,201);
font-size: 1.1em;
margin: 1.5em 0 1.5em 0;
-webkit-box-shadow: 1px 1px 1px #d8d8d8;
Expand All @@ -258,3 +262,49 @@ div.viewcode-block:target {
border-top: 1px solid #ac9;
border-bottom: 1px solid #ac9;
}


/**
* Styling for field lists
*/

/* grey highlighting of 'parameter' and 'returns' field */
table.field-list {
border-collapse: separate;
border-spacing: 10px;
margin-left: 1px;
/* border-left: 5px solid rgb(238, 238, 238) !important; */
}

table.field-list th.field-name {
/* display: inline-block; */
padding: 1px 8px 1px 5px;
white-space: nowrap;
background-color: rgb(238, 238, 238);
}

/* italic font for parameter types */
table.field-list td.field-body > p {
font-style: italic;
}

table.field-list td.field-body > p > strong {
font-style: normal;
}

/* reduced space around parameter description */
td.field-body blockquote {
border-left: none;
margin: 0em 0em 0.3em;
padding-left: 30px;
}


/**
* See also
*/

div.seealso dd {
margin-top: 0;
margin-bottom: 0;
}