/*
 --------------------------------------------------------------------------
 TabBar Base Style
 --------------------------------------------------------------------------
*/

QTabBar, QTabBar::tab
{
    border: 0px;
    background-color: @background_color;
}

QTabBar::tab {
    color: @primary_text_color;
    border-top: 1px solid @background_in_color;
    border-right: 1px solid @background_in_color;
    border-left: 1px solid @background_in_color;
    /*border-bottom-style: none;*/
    background-color: @background_in_color;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 3px;
    padding-bottom: 2px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    margin-right: -1px;
    margin-bottom: -1px;
}


QTabBar::tab:selected
{
    border-bottom: 3px solid @accent_color;
    color: @primary_text_color;
    background-color: @background_color;
    padding-bottom: 4px;
}

QTabBar::tab:!selected
{
    border-bottom: 1px solid @border_color;
    border-bottom-style: solid;
    margin-top: 4px;
}

QTabBar::tab:disabled
{
    border-top: 1px solid @background_in_color;
    border-right: 1px solid @background_in_color;
    border-left: 1px solid @background_in_color;
    border-bottom-style: none;
    background-color: @disable_color;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 3px;
    padding-bottom: 2px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    margin-right: -1px;
    margin-bottom: -1px;
}

QTabBar::tab:last
{
    margin-right: 0; /* the last selected tab has nothing to overlap with on the right */
}

QTabBar::tab:!selected:hover
{
    border-bottom: 2px solid @accent_color_5;
    padding-bottom: 4px;
    background-color: @background_out_color;
}