/*
 * Based on github-fork-ribbon-css
 * https://github.com/simonwhitaker/github-fork-ribbon-css
 */

.github-fork-ribbon {
    width: 12.1em;
    height: 12.1em;
    position: absolute;
    top: 0;
    right: 0;
    overflow: hidden;
    z-index: 9999;
    pointer-events: none;
    font-size: 13px;
    text-decoration: none;
    text-indent: -999999px;
}

.github-fork-ribbon.fixed {
    position: fixed;
}

.github-fork-ribbon:before,
.github-fork-ribbon:after {
    position: absolute;
    display: block;
    width: 15.38em;
    height: 1.54em;
    top: 3.23em;
    right: -3.23em;
    box-sizing: content-box;
    transform: rotate(45deg);
}

.github-fork-ribbon:before {
    content: "";
    padding: 0.38em 0;
    background-color: #24292f;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.18));
    box-shadow: 0 0.15em 0.23em 0 rgba(0, 0, 0, 0.45);
    pointer-events: auto;
}

.github-fork-ribbon:after {
    content: attr(data-ribbon);
    color: #fff;
    font: 700 1em "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.54em;
    text-align: center;
    text-indent: 0;
    text-decoration: none;
    text-shadow: 0 -0.08em rgba(0, 0, 0, 0.5);
    padding: 0.15em 0;
    margin: 0.15em 0;
    border-width: 0.08em 0;
    border-style: dotted;
    border-color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

.github-fork-ribbon:hover,
.github-fork-ribbon:active {
    background-color: transparent;
}
