/**
   This file is part of the slides-and-book Sphinx theme
   by Pierre-Antoine Champin <http://champin.net/>
**/

/** This is the file to be used in the html book.
    It is automatically included by the theme.
**/


@import url("nature.css");
@import url("sab-common.css");

/* list-table used to layout 2 columns */

table.docutils.columns td {
    border-bottom-width: 0px;
}


/* floating images */

/* COMMENTED OUT as the result is ugly
.float-right {
    float: right;
    padding-left: 1em;
}
*/


/* Limit size of %-sized figures (and graphviz) in html book */

.figure, p.graphviz {
    max-width: 35em; /* more consistent with slide-width for figure size */
}

p.graphviz > img {
    width: 100%;
}


/* Handle slide-animations correctly in HTML book */

/* NB1: this works for HTML only; LaTeX forces us to put animations in an
   ifnonslides directive...
   NB2: we only stack images; figure may have captions, so they are not stacked.
 */

.build.animation.stacked > img:first-child {
    position: relative; /* ensures that the parent reserves enough space */
}

.build.animation.stacked > img {
    position: absolute;
    top: 0px;
    left: 0px;
    border: none;
}

.build.animation > * {
    border: 1px solid #AAA;
    padding: 1ex;
    margin: 1ex;
}
