Minor fixes and improvements: PEP8, appearance, etc.

Removed a clumsy workaround (about paths)

Fixed links to image files to fix sphinx warning.

Removed non-ascii character

Another non ascii character

And another non-ascii character... (to be squashed later on)

Corrected some typos in the docstrings of sphinx-gallery files

These corrections have also been submitted as a patch to the original
sphinx-gallery project (#121)

Corrected the appearance of two examples of the gallery

Tweaked CSS for larger images

Added sphinx-gallery's license and a README.txt about the origin of
this directory.

Edited gabor_from_astronaut example for nicer popup

PEP 8 + minor fixes

Removed commented lines of code
This commit is contained in:
emmanuelle
2016-06-06 17:30:44 +02:00
parent d998e7e534
commit 8b2dbd56e5
15 changed files with 101 additions and 72 deletions
+17 -7
View File
@@ -1,8 +1,8 @@
/*
Sphinx-Gallery is has compatible CSS to fix default sphinx themes
Sphinx-Gallery has compatible CSS to fix default sphinx themes
Tested for Sphinx 1.3.1 for all themes: default, alabaster, sphinxdoc,
scrolls, agogo, traditional, nature, haiku, pyramid
Tested for Read the docs theme 0.1.7 */
Tested for Read the Docs theme 0.1.7 */
.sphx-glr-thumbcontainer {
background: #fff;
border: solid #fff 1px;
@@ -12,7 +12,7 @@ Tested for Read the docs theme 0.1.7 */
box-shadow: none;
float: left;
margin: 5px;
min-height: 230px;
min-height: 240px;
padding-top: 5px;
position: relative;
}
@@ -40,12 +40,12 @@ thumbnail with its default link Background color */
}
.sphx-glr-thumbcontainer .figure {
margin: 10px;
width: 160px;
width: 200px;
}
.sphx-glr-thumbcontainer img {
display: inline;
max-height: 160px;
width: 160px;
max-height: 200px;
width: 200px;
}
.sphx-glr-thumbcontainer[tooltip]:hover:after {
background: rgba(0, 0, 0, 0.8);
@@ -58,7 +58,7 @@ thumbnail with its default link Background color */
padding: 5px 15px;
position: absolute;
z-index: 98;
width: 220px;
width: 240px;
bottom: 52%;
}
.sphx-glr-thumbcontainer[tooltip]:hover:before {
@@ -125,3 +125,13 @@ ul.sphx-glr-horizontal li {
ul.sphx-glr-horizontal img {
height: auto !important;
}
p.sphx-glr-signature a.reference.external {
background-color: #EBECED;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
padding: 3px;
position: absolute;
right: 15px;
}