mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-27 19:48:43 +08:00
8b2dbd56e5
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
138 lines
2.8 KiB
CSS
138 lines
2.8 KiB
CSS
/*
|
|
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 */
|
|
.sphx-glr-thumbcontainer {
|
|
background: #fff;
|
|
border: solid #fff 1px;
|
|
-moz-border-radius: 5px;
|
|
-webkit-border-radius: 5px;
|
|
border-radius: 5px;
|
|
box-shadow: none;
|
|
float: left;
|
|
margin: 5px;
|
|
min-height: 240px;
|
|
padding-top: 5px;
|
|
position: relative;
|
|
}
|
|
.sphx-glr-thumbcontainer:hover {
|
|
border: solid #b4ddfc 1px;
|
|
box-shadow: 0 0 15px rgba(142, 176, 202, 0.5);
|
|
}
|
|
.sphx-glr-thumbcontainer a.internal {
|
|
bottom: 0;
|
|
display: block;
|
|
left: 0;
|
|
padding: 150px 10px 0;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
}
|
|
/* Next one is to avoid Sphinx traditional theme to cover all the
|
|
thumbnail with its default link Background color */
|
|
.sphx-glr-thumbcontainer a.internal:hover {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.sphx-glr-thumbcontainer p {
|
|
margin: 0 0 .1em 0;
|
|
}
|
|
.sphx-glr-thumbcontainer .figure {
|
|
margin: 10px;
|
|
width: 200px;
|
|
}
|
|
.sphx-glr-thumbcontainer img {
|
|
display: inline;
|
|
max-height: 200px;
|
|
width: 200px;
|
|
}
|
|
.sphx-glr-thumbcontainer[tooltip]:hover:after {
|
|
background: rgba(0, 0, 0, 0.8);
|
|
-webkit-border-radius: 5px;
|
|
-moz-border-radius: 5px;
|
|
border-radius: 5px;
|
|
color: #fff;
|
|
content: attr(tooltip);
|
|
left: 95%;
|
|
padding: 5px 15px;
|
|
position: absolute;
|
|
z-index: 98;
|
|
width: 240px;
|
|
bottom: 52%;
|
|
}
|
|
.sphx-glr-thumbcontainer[tooltip]:hover:before {
|
|
border: solid;
|
|
border-color: #333 transparent;
|
|
border-width: 18px 0 0 20px;
|
|
bottom: 58%;
|
|
content: '';
|
|
left: 85%;
|
|
position: absolute;
|
|
z-index: 99;
|
|
}
|
|
|
|
.highlight-pytb pre {
|
|
background-color: #ffe4e4;
|
|
border: 1px solid #f66;
|
|
margin-top: 10px;
|
|
padding: 7px;
|
|
}
|
|
|
|
.sphx-glr-script-out {
|
|
color: #888;
|
|
margin: 0;
|
|
}
|
|
.sphx-glr-script-out .highlight {
|
|
background-color: transparent;
|
|
margin-left: 2.5em;
|
|
margin-top: -1.4em;
|
|
}
|
|
.sphx-glr-script-out .highlight pre {
|
|
background-color: #fafae2;
|
|
border: 0;
|
|
max-height: 30em;
|
|
overflow: auto;
|
|
padding-left: 1ex;
|
|
margin: 0px;
|
|
word-break: break-word;
|
|
}
|
|
.sphx-glr-script-out + p {
|
|
margin-top: 1.8em;
|
|
}
|
|
blockquote.sphx-glr-script-out {
|
|
margin-left: 0pt;
|
|
}
|
|
.sphx-glr-download {
|
|
background-color: #ffc;
|
|
border: 1px solid #c2c22d;
|
|
border-radius: 4px;
|
|
margin: 1em auto 1ex auto;
|
|
max-width: 45ex;
|
|
padding: 1ex;
|
|
}
|
|
.sphx-glr-download a {
|
|
color: #4b4600;
|
|
}
|
|
|
|
ul.sphx-glr-horizontal {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
ul.sphx-glr-horizontal li {
|
|
display: inline;
|
|
}
|
|
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;
|
|
}
|