/* ----------------------------------------------------------------------------
 * THIS FILE IS PART OF THE CYLC SUITE ENGINE.
 * Copyright (C) NIWA & British Crown (Met Office) & Contributors.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * ------------------------------------------------------------------------- */

/* (1)
 * Correct the behaviour of nested admonitions. Sometimes the admonition-header
 * inherits its parents styling. */
.rst-content .error .admonition-title, .rst-content .danger .admonition-title {
    background: red
}
.rst-content .warning .admonition-title,
.rst-content .caution .admonition-title,
.rst-content .attention .admonition-title {
    background: orange
}


/* (2)
 * Enable theme handling of pilcrow symbols for code-block captions and
 * admonitions. */
.rst-content p.admonition-title .pull-left.headerlink,
.rst-content div.code-block-caption .pull-left.headerlink {
    margin-right:.3em
}
.rst-content p.admonition-title .pull-right.headerlink,
.rst-content div.code-block-caption .pull-right.headerlink {
    margin-left:.3em
}
.rst-content p.admonition-title .headerlink:before,
.rst-content div.code-block-caption .headerlink:before {
    font-family:"FontAwesome";
    display:inline-block;
    font-style:normal;
    font-weight:normal;
    line-height:1;
    text-decoration:inherit;
    font-size:14px;
    vertical-align:-15%;
    -webkit-font-smoothing:antialiased
}
.rst-content p.admonition-title .headerlink:after,
.rst-content div.code-block-caption .headerlink:after {
    visibility:visible;
    content:"";
    font-family:FontAwesome;
    display:inline-block;
    color:#2980B9
}
.rst-content p.admonition-title:hover .headerlink,
.rst-content div.code-block-caption:hover .headerlink {
    display:inline-block
}
.rst-content p.admonition-title .headerlink,
.rst-content div.code-block-caption .headerlink {
    font:normal normal normal 14px/1 FontAwesome;
    text-rendering:auto;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    display:none;
    visibility:hidden;
    color:#fcfcfc;
    text-decoration:inherit
}


/* (3)
 * Add warning symbol before deprecated items. */
.deprecated p:before {
    font-family:FontAwesome;
    content:"\f071  ";
    color: rgb(200, 90, 70);
}
.deprecated p {
    font-weight: bold;
}



/* (4)
 * Make version-modified more prominent. */
span.versionmodified{
    font-weight: bold;
}


/* (5)
 * Place code-block captions in italics. */
.code-block-caption {
    font-style: italic;
    color: #808080;
}


/* (6)
 * Fix the lack of space underneath lists inside admonitions. */
.rst-content div.admonition ul,
.rst-content div.admonition ol > li {
    padding-bottom: 0.5em;
}


/* (7)
 * Improve sidebar scrolling */
.wy-nav-size {
    overflow-x: hidden!important;
    overflow-y: hidden!important;
}
