/*
 * This file contains the tweaks specific for this Jekyll Read the Docs port.
 * This is so that the original theme.css and theme_extra.css files can be
 * easily compared with the upstream ones from MkDocs:
 * https://github.com/mkdocs/mkdocs/commits/master/mkdocs/themes/readthedocs
 */

/* Footer revision string. */
.commit code {
    font-size: 0.9em !important;
}

/* Reduce padding between <pre> and <code> */
.rst-content div[class^=highlight] pre {
    padding: 6px !important;
}

/* Add an external link icon to external links in the navigation menu. */
.wy-menu.wy-menu-vertical a.reference.external::after {
  /* \00a0 = no break space */
  content: "\00a0\f08e";
  font-family: FontAwesome;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  padding-left: 0.2em;
}

/* Custom AnchorJS class */
.title-anchor {
  color: #2980b9 !important;
  margin-top: 2px !important;
}

/*****************************************************************************/
/* Copy code to clipboard button                                             */
/*****************************************************************************/
.copy-code-wrapper {
    position: relative;
}

.copy-code-btn {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 0px;
    right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.9em;
    height: 1.9em;
    padding: 0;
    background: rgb(43 135 195 / 10%);
    color: #2980b9e0;
    border: 1px solid #2980b9e0;
    border-radius: 0px 0px 0px 6px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
    user-select: none;
}

.copy-code-wrapper:hover .copy-code-btn {
    opacity: 1;
}

.copy-code-btn.copied {
    color: #3c7a2b;
    border-color: #3c7a2b;
}

/*****************************************************************************/
/* Labels                                                                    */
/*****************************************************************************/
.rst-content .label {
    display: inline-block;
    padding: 0.15em 0.5em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1.4;
    border-radius: 4px;
    vertical-align: middle;
    white-space: nowrap;
    background: #2980b9;
    color: #fff;
    margin: 0 0.2em;
}

/* Allow inline labels via *text*{: .label } without italic/bold side-effects */
.rst-content em.label    { font-style: normal; }
.rst-content strong.label { font-weight: 700; }

.rst-content .label-blue   { background: #2980b9; color: #fff; }
.rst-content .label-green  { background: #27ae60; color: #fff; }
.rst-content .label-fuchsia { background: #a0165b; color: #fff; }
.rst-content .label-yellow { background: #f1c40f; color: #333; }
.rst-content .label-red    { background: #e74c3c; color: #fff; }
.rst-content .label-gray   { background: #7f8c8d; color: #fff; }
