/**
 * max-width
 * @include screen-mw(#{theme('screens.md')})
 */
@mixin screen-mw($px) {
    @media screen and (max-width: #{calc(#{$px} - 1px)}) {
        @content;
    }
}

@mixin maxwidth($size:md) {
    @media screen and (max-width: calc(theme('screens.#{$size}') - 1px)){
        @content;
    }
}

@mixin scrollbars($size, $foreground-color, $background-color: mix($foreground-color, white,  50%)) {
    // For Google Chrome
    &::-webkit-scrollbar {
        width:  $size;
        height: $size;
    }

    &::-webkit-scrollbar-thumb {
        background: $foreground-color;
    }

    &::-webkit-scrollbar-track {
        background: $background-color;
    }

    // For Internet Explorer
    & {
        scrollbar-face-color: $foreground-color;
        scrollbar-track-color: $background-color;
    }
}
