/**
 * Copyright 2015 IBM Corp.
 *
 * 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 language governing permissions and
 * limitations under the License.
 **/

ul.red-ui-tabs {
    list-style-type: none;
    padding:0;
    margin: 0;
    display: block;
    height: 35px;
    box-sizing:border-box;
    white-space: nowrap;
    border-bottom: 1px solid $primary-border-color;
    background: #fff;
    @include disable-selection;
}

ul.red-ui-tabs li {
    box-sizing: border-box;
    display: inline-block;
    border-left: 1px solid  $primary-border-color;
    border-top: 1px solid  $primary-border-color;
    border-right: 1px solid $primary-border-color;
    border-bottom: 1px solid $primary-border-color;
    background: $tab-background-inactive;
    margin: 3px 3px 0 3px;
    height: 32px;
    line-height: 29px;
    max-width: 200px;
    width: 14%;
    overflow: hidden;
    white-space: nowrap;
}

ul.red-ui-tabs li a.red-ui-tab-label {
    display: block;
    font-size: 14px;
    padding-left: 12px;
    width: 100%;
    height: 100%;
    color: #666;
}
ul.red-ui-tabs li {
    position: relative;
}

.red-ui-tab-close {
    background: $tab-background-inactive;
    opacity: 0.8;
    position: absolute;
    right: 0px;
    top: 0px;
    display: block;
    width: 20px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    padding: 0px;
    color: #aaa;
    &:hover {
        background: $workspace-button-background-hover !important;
        opacity: 1;
    }
}
ul.red-ui-tabs li:not(.active) a:hover+a.red-ui-tab-close {
    background: $tab-background-hover;
}

ul.red-ui-tabs li.active a.red-ui-tab-close {
    color: #aaa;
    background: $tab-background-active;
    &:hover {
        background: $workspace-button-background-hover !important;
        color: $workspace-button-color-hover;
    }
}

ul.red-ui-tabs li a:hover {
    text-decoration: none;
}

ul.red-ui-tabs li:not(.active) a:hover {
    color: $workspace-button-color-hover;
    background: $tab-background-hover;
}

ul.red-ui-tabs li a:focus {
    text-decoration: none;
}

ul.red-ui-tabs li.active {
    background: $tab-background-active;
    font-weight: bold;
    border-bottom: 1px solid #fff;
}
ul.red-ui-tabs li.active a {
    color: #333;
}

ul.red-ui-tabs li img {
    margin-left: -8px;
    margin-right: 3px;
    margin-top: -2px;
    opacity: 0.1;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}
ul.red-ui-tabs li.active img {
    opacity: 0.2;
}
