// oa-quicksearch.scss

@import 'setup';

$brand-primary: #f26522;

* {
    @include box-sizing(initial);
}

.container,
.container-fluid,
.row,
[class*="col-"] {
    @include box-sizing(border-box);
}

html {
    font-size: initial;
}

a {
    color: $brand-primary;
}

#quickSearchNotes {
    @include transition(opacity 0.1s);
    opacity: 0;
}

a#whatsnew:hover {
    cursor: default;

    &+ div#quickSearchNotes {
        opacity: 1;
    }

}

ul {margin-top:0;}

.results-facets {

    li {
        display: inline-block;
        margin-right: 6px;

        .active {
            background: $brand-primary;
            color: #fff;
            padding: 4px 6px 4px 4px;

            &:hover {
                text-decoration: none;
            }

            em {
                font-size: 14px;
                vertical-align: top;
            }

        }

    }

}

.releases-by-search {
    align-items: stretch;
    -webkit-align-items: stretch;
    display: -webkit-box;
    display: flex;
    display: -ms-flexbox;
    display: -webkit-flex;
    flex-flow: wrap;
    -webkit-flex-flow: wrap;
}

.releaseResult {
    margin-bottom: 36px;
    max-width: 300px;

    li::not(.release-name) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;

    }

    .releaseImageLink {
        display: block;
        width: 80%;
    }

    .release-name {
        @include box-sizing(border-box);

        background-position: 0 -7px;
        background-repeat: no-repeat;
        display: block;
        font-size: $font-size-base;
        margin-bottom: 4px;
        padding-left: 15px;

    }

    .release-track-player-img {
        height: 16px;
        margin-bottom: 0px;
    }

    em {
        background-color: $brand-primary;
        color: #fff;
        font-style: normal;
        padding: 0 3px;
    }

    img {
        height: auto;
        margin-bottom: 12px;
    }

}

.results-facets,
.releaseResult {

    ul {
        list-style: none;
        margin-top: 0;
        padding: 0;
    }

    li {
        line-height: 18px;
    }

}

@media (min-width: $screen-sm-min) {

    .results-facets {

        .content-box {
            margin-bottom: 12px;
            padding: 10px 0;
        }

        span {
            display: block;
            margin-bottom: 6px;
        }

        li {
            display: block;
            margin-right: 0;
        }

    }

}

.msg-alert {
    background: #ffc0cb;
    padding: 4px 6px;
}

.msg-qs-app {
    font-size: 12px;

    li {
        line-height: 18px;
    }

}

.release-meta {
    max-width: 90%;
}

@media (max-width: $screen-xs-max) {
    .releases-by-search.row {
        margin-left: 0;
        margin-right: 0;
    }
}

table.label-search-results.data td {
    vertical-align: middle;
}

.sub-label-name a {
    margin-left: 13px;
    position: relative;

    &::before {
        transform: rotateY(180deg);
        -moz-transform: rotateY(180deg);
        -ms-transform: rotateY(180deg);
        -webkit-transform: rotateY(180deg);

        color: #333;
        content: "\21b5";
        left: -14px;
        position: absolute;
    }

}

ul.content-box {
    list-style: outside none;
    padding-left: 0;
}
