@function button-default-border-color-over($border-color) {
    @if $border-color == transparent or is-null($border-color) {
        @return transparent;
    } @else {
        @return mix(#000, $border-color, 8%);
    }
}

@function button-default-border-color-focus($border-color) {
    @if $border-color == transparent or is-null($border-color) {
        @return transparent;
    } @else {
        @return $border-color;
    }
}

@function button-default-border-color-pressed($border-color) {
    @if $border-color == transparent or is-null($border-color) {
        @return transparent;
    } @else {
        @return mix(#000, $border-color, 25%);
    }
}

@function button-default-border-color-disabled($border-color) {
    @if $border-color == transparent or is-null($border-color) {
        @return transparent;
    } @else {
        @return $border-color;
    }
}

@function button-default-background-color-over($background-color) {
    @if $background-color == transparent or is-null($background-color) {
        @return transparent;
    } @else {
        @return mix(#000, $background-color, 8%);
    }
}

@function button-default-background-color-focus($background-color) {
    @if $background-color == transparent or is-null($background-color) {
        @return transparent;
    } @else {
        @return $background-color;
    }
}

@function button-default-inner-border-color-focus($background-color, $border-color) {
    @if $background-color == transparent or is-null($background-color) {
        @return transparent;
    } @else {
        @return mix($background-color, $border-color, 20%)
    }
}

@function button-default-inner-border-color-focus-over($background-color, $border-color) {
    @if $background-color == transparent or is-null($background-color) {
        @return transparent;
    } @else {
        @return mix($background-color, $border-color, 20%)
    }
}

@function button-default-inner-border-color-focus-pressed($background-color, $border-color) {
    @if $background-color == transparent or is-null($background-color) {
        @return transparent;
    } @else {
        @return mix($background-color, $border-color, 20%)
    }
}

@function button-default-background-color-pressed($background-color) {
    @if $background-color == transparent or is-null($background-color) {
        @return transparent;
    } @else {
        @return mix(#000, $background-color, 25%);
    }
}

@function button-default-background-color-disabled($background-color) {
    @if $background-color == transparent or is-null($background-color) {
        @return transparent;
    } @else {
        @return $background-color;
    }
}

@function button-toolbar-inner-border-color-focus($background-color, $border-color) {
    @if $background-color == transparent or is-null($background-color) {
        @return transparent;
    } @else {
        @return mix($background-color, $border-color, 20%)
    }
}

@function button-toolbar-inner-border-color-focus-over($background-color, $border-color) {
    @if $background-color == transparent or is-null($background-color) {
        @return transparent;
    } @else {
        @return mix($background-color, $border-color, 20%)
    }
}

@function button-toolbar-inner-border-color-focus-pressed($background-color, $border-color) {
    @if $background-color == transparent or is-null($background-color) {
        @return transparent;
    } @else {
        @return mix($background-color, $border-color, 20%)
    }
}

@function button-toolbar-border-color-over($border-color) {
    @if $border-color == transparent or is-null($border-color) {
        @return transparent;
    } @else {
        @return mix(#000, $border-color, 4%);
    }
}

@function button-toolbar-border-color-focus($border-color) {
    @if $border-color == transparent or is-null($border-color) {
        @return transparent;
    } @else {
        @return $border-color;
    }
}

@function button-toolbar-border-color-pressed($border-color) {
    @if $border-color == transparent or is-null($border-color) {
        @return transparent;
    } @else {
        @return mix(#000, $border-color, 8%);
    }
}

@function button-toolbar-border-color-disabled($border-color) {
    @if $border-color == transparent or is-null($border-color) {
        @return transparent;
    } @else {
        @return $border-color;
    }
}

@function button-toolbar-background-color-over($background-color) {
    @if $background-color == transparent or is-null($background-color) {
        @return transparent;
    } @else {
        @return mix(#000, $background-color, 4%);
    }
}

@function button-toolbar-background-color-focus($background-color) {
    @if $background-color == transparent or is-null($background-color) {
        @return transparent;
    } @else {
        @return $background-color;
    }
}

@function button-toolbar-background-color-pressed($background-color) {
    @if $background-color == transparent or is-null($background-color) {
        @return transparent;
    } @else {
        @return mix(#000, $background-color, 8%);
    }
}

@function button-toolbar-background-color-disabled($background-color) {
    @if $background-color == transparent or is-null($background-color) {
        @return transparent;
    } @else {
        @return $background-color;
    }
}

@function tab-inner-border-color-focus($background-color, $border-color) {
    @if $background-color == transparent or is-null($background-color) {
        @return transparent;
    } @else {
        @return mix($background-color, $border-color, 20%)
    }
}

@function tab-inner-border-color-focus-over($background-color, $border-color) {
    @if $background-color == transparent or is-null($background-color) {
        @return transparent;
    } @else {
        @return mix($background-color, $border-color, 20%)
    }
}

@function tab-inner-border-color-focus-active($background-color, $border-color) {
    @if $background-color == transparent or is-null($background-color) {
        @return transparent;
    } @else {
        @return mix($background-color, $border-color, 20%)
    }
}
