/*
 * 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;
}

/*****************************************************************************/
/* 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;
}
