/*
 * 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";

div.waltz-tabs {

    input[type=radio] {
        display: none;

        &:checked + .wt-label {
            color: #555;
            background: #fff;
            border-color: #ccc;
            font-weight: bolder;

            cursor:default;
            border-top: 3px solid #e36209;
            margin-top: 0;
            position: relative;
            top: 1px;
            border-bottom: 1px solid white;
        }

        &:disabled + .wt-label {
            color: #999;
            background-color: #eee;
            font-style: italic;
            cursor: not-allowed;
        }
    }

    .wt-label {
        color: desaturate($link-color, 10);
        font-weight: lighter;
        display: inline-block;
        padding: 5px 10px;
        cursor: pointer;
        border-style: solid;
        border-top-width: 1px;
        border-bottom-width: 0;
        border-left-width: 1px;
        border-right-width: 1px;
        border-color: #ddd;
        background-color: #fafafa;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
        margin-bottom: 0;
        margin-top: 2px;
        margin-right: -4px;
    }

    div.wt-tab {
        display: none;
        padding: 0 8px;
        clear: left;

        &.wt-active {
            border-left: 1px solid #ccc;
            border-bottom: 1px solid #ccc;
            padding-top: 6px;
            padding-bottom: 10px;
            border-bottom-left-radius: 3px;
            display: block;
            border-top: 1px solid #ddd;
        }
    }

    .wt-tab-header {
        &.wt-active {
            color: #555;
            background: #fff;
            border-color: #ccc;
            border-bottom: none;
            cursor:default;
            border-top: 3px solid #e36209;
        }

        &:disabled {
            color: #999;
            background-color: #eee;
            font-style: italic;
            cursor: not-allowed;
        }

        display: block;
        float: left;
        padding: 5px 10px;
        cursor: pointer;
        border: 1px solid #ddd;
        background-color: #fafafa;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    border-top: 2px solid #e36209;
}
