@import '@cnbritain/merlin-www-common:wired';

@mixin disabled-selectors(){
    &[disabled],
    &.is-disabled,
    &.btn-disabled {
        @content;
    }
}

@mixin button-reset() {
    border-bottom: none;
    display: inline-block;
    text-decoration: none;

    &:hover {
        border-bottom: none;
    }
}

/* ===SINGLE=== */

@mixin button-single() {
    @include button-reset();
    @include font("BRUTAL", 12px, 400, 12px);
    letter-spacing: 0.5px;
    padding: 10px;
    text-transform: uppercase;
    transition: all 0.1s ease-in-out;
}

@mixin button-single-light() {
    border: 1px solid $black;
    color: $black;
}

@mixin button-single-light-hover() {
    background-color: $black;
    border: 1px solid $black;
    color: $white;
}

@mixin button-single-light-disabled(){
    background-color: none;
    border: 1px solid $isabelline;
    color: $isabelline;
}

@mixin button-single-dark() {
    background-color: $black-olive;
    border: none;
    color: $white;
}

@mixin button-single-dark-hover() {
    background-color: $white;
    color: $black;
}

@mixin button-single-dark-disabled(){
    background-color: $raisin-black;
    color: $black;
}

/* ===GROUP=== */

@mixin button-group() {
    @include button-reset();
    @include font("EXCHANGE WEB", 15px, 400, 15px);
    padding: 10px;
    text-align: center;
    transition: all 0.1s ease-in-out;
}

@mixin button-group-light() {
    background-color: $white;
    color: $black;
}

@mixin button-group-light-hover() {
    background-color: $black;
    color: $white;
}

@mixin button-group-dark() {
    background-color: $black-olive;
    color: $white;
}

@mixin button-group-dark-hover() {
    background-color: $white;
    color: $black;
}

@mixin button-group2() {
    @include button-reset();
    @include font("BRUTAL", 12px, 500, 12px);
    letter-spacing: 0.5px;
    padding: 10px 12px;
    text-align: center;
    transition: all 0.1s ease-in-out;
}

@mixin button-group2-light() {
    background-color: $white;
    color: $black;
}

@mixin button-group2-light-hover() {
    background-color: $black;
    color: $white;
}

@mixin button-group2-dark() {
    background-color: $black-olive;
    color: $white;
}

@mixin button-group2-dark-hover() {
    background-color: $white;
    color: $black;
}

/* ===TOP STORIES=== */

@mixin button-top-stories() {
    @include button-reset();
    background: $white-smoke;
    height: 50%;
    width: 60px;

    svg {
        height: 100%;
        width: 15px;
    }

    path {
        fill: $black;
    }
}

@mixin button-top-stories-hover() {
    background: $black;

    svg, path {
        fill: $white;
    }
}

@mixin button-top-stories-disabled() {
    background: $white-smoke;

    svg, path {
        fill: $isabelline;
    }
}

/* ===SHARE=== */

@mixin button-share {
    @include button-reset();
    border-radius: 50%;
    display: inline-block;
    height: 40px;
    line-height: 40px;
    text-align: center;
    width: 40px;

    svg {
        fill: $white;
        height: 100%;
        width: 50%;
    }
}

@mixin button-share-light($name) {
    background-color: $black;
}

@mixin button-share-light-hover($name) {
    background-color: map-get($COLOUR_SOCIAL, $name);
}

@mixin button-share-dark($name) {
    background-color: $black-olive;
}

@mixin button-share-dark-hover($name) {
    background-color: map-get($COLOUR_SOCIAL_DARK, $name);
}

/* ===RELATED=== */

@mixin button-related() {
    @include button-reset();
    @include font("BRUTAL", 12px, 400, 12px);
    padding: 10px 15px;
    text-transform: uppercase;
}

@mixin button-related-light() {
    background-color: $white-smoke;
    color: $black;
}

@mixin button-related-light-hover() {
    background-color: $black;
    color: $white;
}

@mixin button-related-dark() {
    background-color: $black-olive;
    color: $white;
}

@mixin button-related-dark-hover() {
    background-color: $white;
    color: $black;
}

/* ===GALLERY NAVIGATION=== */

@mixin button-gallery-navigation(){
    @include button-reset();
    background-color: $black;
    border: 1px solid $raisin-black;
    color: $black;
    height: 35px;
    transition: all 0.1s ease-in-out;
    width: 35px;

    svg, path {
        fill: $white;
    }
}

@mixin button-gallery-navigation-hover(){
    background-color: $white;
    border: 1px solid $black;
    color: $black;

    svg, path {
        fill: $black;
    }
}

@mixin button-gallery-navigation-disabled(){
    background-color: $raisin-black;
    border: 1px solid $black;
    color: $black;

    svg, path {
        fill: $black;
    }
}
