@hdeng-button-bg: @hdeng-key-color;
@hdeng-button-bg-hover-color: @hdeng-body-bg-default-color;
@hdeng-button-active-font-color: @hdeng-color-white;
@hdeng-button-light-font-color: @hdeng-color-white;
@hdeng-button-light-bg: @hdeng-body-bg-default-color;
@hdeng-button-light-border-color: #3a3a3a;
@hdeng-button-light-hover-bg-color: @hdeng-color-dark;
@hdeng-button-light-hover-font-color: @hdeng-color-white;

.hdeng-button() {
    border: 1px solid @hdeng-key-color;
    border-radius: @hdeng-border-radius;
    background: @hdeng-button-bg;
    color: #fff !important;
    cursor: pointer;
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    transition: width 0.3s ease 0s;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    // Unifiy <a> and <button> elements
    vertical-align: middle;
    line-height: @hdeng-base-line-height;

    // <button> reset
    -webkit-appearance: none;
    outline: none;
    text-shadow: none;
    box-shadow: none;

    &::-moz-focus-inner {
        border: 0;
        padding: 0;
    }

    ~ .button {
        margin-left: floor(@hdeng-spacing / 4);
    }

    &:visited {
        text-decoration: none;
        background-color: @hdeng-key-color;
        color: #fff;
    }

    &:hover,
    &:active{
        text-decoration: none;
        border-color: @hdeng-footer-font-default-color;
        background-color: @hdeng-button-bg-hover-color;
        color: @hdeng-button-active-font-color;
    }
}

//== Generates
.hdeng-button-critical-generate() {
    // Silence
}

.hdeng-button-generate() {

    .button {
        .hdeng-button();
    }

    .button--secondary {
        border-color: @hdeng-body-font-contrast-color !important;
        background-color: @hdeng-body-font-contrast-color !important;

        &:hover,
        &:active {
            background: @hdeng-key-color !important;
            border: 1px solid @hdeng-key-color !important;
            color: #ffffff !important;
        }
    }

    .button--light {
        border-color: @hdeng-button-light-border-color !important;
        background-color: @hdeng-button-light-bg !important;
        color: @hdeng-button-light-font-color !important;

        &:hover,
        &:active {
            background-color: @hdeng-button-light-hover-bg-color !important;
            color: @hdeng-button-light-hover-font-color !important;
            border-color: @hdeng-body-font-contrast-color !important;

        }
    }

    .button--small {
        padding: 3px 9px;

        font-size: 11px;
        font-weight: 400;

        i {
            height: 14px;
        }
    }

    .button--large {
        font-size: 14px;
        font-weight: 500;
        padding: 6px 18px;
    }

    .button--huge {
        font-size: 17px;
        font-weight: 500;
        padding: 9px 27px;
    }
}
