/*
https://github.com/uclahs-cds/Ligare/blob/2021ffdeac4b92cf726a8fc35866a069119cb788/sphinx-docs/source/_static/custom.css
*/

/* change `..code-block:: shell-session` prompt appearance */
.highlight .gp {
    color: #616161;
    font-style: italic;
}

/* put `literalinclude` captions on the left and closer to coe blocks */
.rst-content .literal-block-wrapper .code-block-caption {
    text-align: left;
    padding-bottom: 0.5em;
    margin-top: -1.5em;
}

.underline {
  text-decoration: underline;
}
.strike {
    text-decoration: line-through;
}

/* overbearing Disqus ads */
#disqus_recommendations,
#disqus_thread > iframe[src*="ads-iframe"]:first-child {
    display: none;
}

/* theme overrides */
#cs-nav > h1 {
    margin-top: -0.5rem;
}
/*
weird quirk in theme that doesn't style this,
but instead relies on javascript to set the
class `active` which then styles it.
*/
.cs-nav-toc li.toctree-l2 a.current,
.cs-nav-toc li.toctree-l2 a.current:visited,
.cs-nav-toc li.toctree-l2 a.current:active,
.cs-nav-toc li.toctree-l2 a.current:hover {
    font-weight: bold;
}
.cs-nav-toc li.toctree-l1.current > a.reference::before,
.cs-nav-toc li.toctree-l1.current > a.reference::before {
    content: "\f282";
}

/* date and tag subheader*/
p:has(.page-date),
p:has(.page-date) + p.tags {
    display: inline;
}
p:has(.page-date) + p.tags a {
    color: #9eabb3;
}
div.document p.tags {
    font-size: 0.9rem;
}
div.document .page-date {
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* format dates before links in page TOCs */
.toc-date:before {
    content:'[';
}
.toc-date:after {
    content:']';
}
.toc-date {
    display: inline-block;
    vertical-align: middle;
    padding-right: 5px;
    font-size: 0.7em;
}
ul:has(.toc-date) {
    list-style: none;
    padding-left: 0.3rem;
}
ul:has(.toc-date) > li > a {
    display: none;
}
ul:has(.toc-date) ul {
    padding-left: 0;
}


/* disqus comments */
#disqus_thread {
    padding: 10px;
    background-color: white;
    border-radius: 4px;
}