Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ENH Improving the contribution guidelines #7236

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 13 commits into from
Nov 2, 2016
Merged
Prev Previous commit
Next Next commit
ENH better styling for notes, warnings and see also section
  • Loading branch information
NelleV committed Oct 29, 2016
commit 9547bc79e765ebb6e9a0da92a48dd7c7dead3357
39 changes: 38 additions & 1 deletion doc/_static/mpl.css
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,19 @@ div.admonition, div.warning {
font-size: 0.9em;
}

div.warning {
color: #b94a48;
background-color: #F3E5E5;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The added colours are in varying case.

border: 1px solid #eed3d7;
}

div.green {
color: #468847;
background-color: #dff0d8;
border: 1px solid #d6e9c6;
}


div.admonition p, div.warning p {
margin: 0.5em 1em 0.5em 1em;
padding: 0;
Expand All @@ -366,19 +379,43 @@ div.admonition pre, div.warning pre {
margin: 0.4em 1em 0.4em 1em;
}

div.admonition p.admonition-title + p {
display: inline;
}


div.admonition p.admonition-title,
div.warning p.admonition-title {
margin: 0;
font-weight: bold;
font-size: 14px;
}

div.admonition {
margin-bottom: 10px;
margin-top: 10px;
padding: 7px;
border-radius: 4px;
-moz-border-radius: 4px;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you write this yourself, or is it generated somehow? Why only add the -moz prefix? It seems like border-radius was standardized a long long time ago.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's from the nature stylesheet of sphinx.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see. I guess they just haven't updated them in a while.

}


div.note {
background-color: #eee;
border: 1px solid #ccc;
}

div.seealso {
background-color: #FFFBE8;
border: 1px solid #fbeed5;
color: #AF8A4B;
}

div.warning {
border: 1px solid #940000;
}

div.warning p.admonition-title {
background-color: #CF0000;
border-bottom-color: #940000;
}

Expand Down