/*!
 * Waltz - Enterprise Architecture
 * Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project
 * See README.md for more information
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific
 *
 */

@import "./_variables.scss";

//
// Dropdowns - used for the dropdown menu on top right.
// --------------------------------------------------
.dropdown-menu > li a {
    display: block;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-left: 10px;
    padding-right: 10px;
    clear: both;
    font-weight: normal;
    line-height: 1.42857;
    color: #333333;
    white-space: nowrap;
    text-decoration: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}


.dropdown-menu-items {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    width: 300px;
}

.dropdown-menu > li {
    margin: 4px;
    @extend .no-overflow
}

.dropdown-menu > li waltz-icon {
    @extend .text-muted;
    @extend .small;
}


.dropdown-menu > li span a:hover,
.dropdown-menu > li span a:focus {
    background-color: #f5f5f5;
}

.navbar-selected {

    waltz-icon {
        color: $waltz-yellow;
    }

    .navbar-title {
        color: white;
    }
}

.navbar .nav .open > a {

    background-color: transparent !important; //prevents light blue background
    @extend .navbar-selected;

}

.navbar-title {
    @extend .hidden-xs, .hidden-sm, .hidden-md;
}

.tab-pane {
    border-left: 1px solid #ddd;
    padding-left: 12px;
}

.nav-item {
    cursor: pointer;
}

.input-xs, select.input-xs {
    height: 20px;
    line-height: 20px;
}

.btn-plain {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;

    &:focus {
        outline: none !important;
        box-shadow: none !important;
    }
}

.btn-skinny {
    background-color: transparent;
    margin: 0;
    padding: 0 0.2em 0 0.2em;
    color: #337ab7;
    vertical-align: baseline;
    box-sizing: border-box;
    border: 0;

    &:focus {
        outline: none !important;
        border-color: #999;
        box-shadow: none !important;
        color: #23527c;
    }
}


.btn-link {
    background-color: transparent;
    font: inherit;
    color: #337ab7;
    border: 0;
    cursor: pointer;
    outline: inherit;

    &:focus {
        outline: none !important;
        border-color: #999;
        box-shadow: none !important;
        color: #23527c;
    }
}


.btn-split {
    padding-right: 0.2em !important;
    display: inline-block !important;
    margin-right: 0 !important;
}


.btn-split-toggle {
    background: none;
    border-left: 1px solid #ddd;
    border-right: none;
    border-top: none;
    border-bottom: none;
    outline: none;
    color: #ddd;
    transition: color 0.3s;
    margin-left: 0 !important;

    &:hover {
        color: white;
    }
}


.split-toggle-dropdown {
    right: 0; //align with the right hand side of the toggle button
}


.row-mini-gutters {
    margin-right: 2px;
    margin-left: 0px;
}

.row-mini-gutters [class*="col-"] {
    padding-right: 6px;
    padding-left: 6px;
}