@import "../vars";
@import "../modules/mixins";

[bs-controls] {
    width: auto;
    flex: 1;
}

[bs-controls~="top"] {
//    width: 100%;
//    position: fixed;
//    bottom: 0;
//    z-index: 200;
//    @include media-query(min, $lap-start) {
//    }
}

[bs-flex~="top"] {

    display: flex;
    background: lighten($header, 4%);
    border-bottom: 1px solid lighten($grey, 6%);

    @include media-query(min, $lap-start) {
        justify-content: flex-end;
        height: $header-height - 1px;
    }
}

[bs-control] {

    @include font-size(12px);

    flex: 1;

    @include media-query(min, $lap-start) {
        flex: none;
        height: 100%;
        padding-top: $half-spacing/2 + 3px;
        padding-left: $half-spacing;
        padding-right: $half-spacing;
    }

    padding-left: $half-spacing/2;
    padding-right: $half-spacing/2;
    border-left: 1px solid $grey;
    border-top:  1px solid $grey;
    position: relative;
    color: $grey-text;
    text-transform: uppercase;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 6px;

    &:first-child {
        border-left-width: 0;
        @include media-query(min, $lap-start) {
            border-left-width: 1px;
        }
    }

    [bs-svg-icon] {
        transition: all .3s;
        width: 14px;
        height: 14px;
        top: 0;
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 5px;

        @include media-query(min, $lap-start) {
            width: 19px;
            height: 19px;
        }
    }

//    &:before {
//        width: 1px;
//        height: 100%;
//        top: 0;
//        position: absolute;
//        left: -2px;
//        content: " ";
//        background: lighten($grey, 10%);
//    }

    &:focus {
        text-decoration: none;
        color: $grey-text;
    }

    &:hover {

        background: $sidebar;
        text-decoration: none;
        color: $white;

        [bs-svg-icon] {
            transform: rotate(360deg) scale(1.1);
            color: $white;
        }
    }
}