2015-04-09 15:46:29 +02:00
|
|
|
/**
|
|
|
|
* 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;
|
2015-07-12 00:43:45 +02:00
|
|
|
padding:0;
|
2015-04-09 15:46:29 +02:00
|
|
|
margin: 0;
|
|
|
|
display: block;
|
2015-07-12 00:43:45 +02:00
|
|
|
height: 35px;
|
|
|
|
box-sizing:border-box;
|
2015-07-30 12:03:37 +02:00
|
|
|
white-space: nowrap;
|
2015-07-13 12:26:29 +02:00
|
|
|
border-bottom: 1px solid $primary-border-color;
|
2015-07-12 00:43:45 +02:00
|
|
|
background: #fff;
|
2015-07-30 12:03:37 +02:00
|
|
|
@include disable-selection;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ul.red-ui-tabs li {
|
2015-07-13 12:26:29 +02:00
|
|
|
box-sizing: border-box;
|
2015-04-09 15:46:29 +02:00
|
|
|
display: inline-block;
|
2015-07-13 12:26:29 +02:00
|
|
|
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;
|
2015-07-14 00:21:03 +02:00
|
|
|
background: $tab-background-inactive;
|
2015-07-12 00:43:45 +02:00
|
|
|
margin: 3px 3px 0 3px;
|
|
|
|
height: 32px;
|
2015-07-13 12:26:29 +02:00
|
|
|
line-height: 29px;
|
2015-04-09 15:46:29 +02:00
|
|
|
max-width: 200px;
|
|
|
|
width: 14%;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul.red-ui-tabs li a.red-ui-tab-label {
|
|
|
|
display: block;
|
2015-09-23 23:49:48 +02:00
|
|
|
font-size: 14px;
|
2015-07-13 12:26:29 +02:00
|
|
|
padding-left: 12px;
|
2015-07-12 00:43:45 +02:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2015-04-09 15:46:29 +02:00
|
|
|
color: #666;
|
|
|
|
}
|
|
|
|
ul.red-ui-tabs li {
|
|
|
|
position: relative;
|
|
|
|
}
|
2016-05-17 10:16:58 +02:00
|
|
|
.red-ui-tabs-badges {
|
|
|
|
position: absolute;
|
|
|
|
top:2px;
|
|
|
|
right:2px;
|
|
|
|
}
|
|
|
|
.red-ui-tab-closeable .red-ui-tabs-badges {
|
|
|
|
right: 22px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.red-ui-tab.node_changed img.node_changed {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.red-ui-tab.node_error img.node_error {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2015-04-09 15:46:29 +02:00
|
|
|
|
2016-05-17 10:16:58 +02:00
|
|
|
.red-ui-tabs-badges img {
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
margin-right: 2px;
|
|
|
|
vertical-align: top;
|
|
|
|
|
|
|
|
}
|
2015-07-14 16:59:56 +02:00
|
|
|
.red-ui-tab-close {
|
|
|
|
background: $tab-background-inactive;
|
|
|
|
opacity: 0.8;
|
2015-04-09 15:46:29 +02:00
|
|
|
position: absolute;
|
2015-07-14 16:59:56 +02:00
|
|
|
right: 0px;
|
|
|
|
top: 0px;
|
2015-04-09 15:46:29 +02:00
|
|
|
display: block;
|
|
|
|
width: 20px;
|
2015-07-14 16:59:56 +02:00
|
|
|
height: 30px;
|
|
|
|
line-height: 28px;
|
2015-04-09 15:46:29 +02:00
|
|
|
text-align: center;
|
|
|
|
padding: 0px;
|
2015-07-14 16:59:56 +02:00
|
|
|
color: #aaa;
|
|
|
|
&:hover {
|
|
|
|
background: $workspace-button-background-hover !important;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2015-07-14 16:59:56 +02:00
|
|
|
ul.red-ui-tabs li:not(.active) a:hover+a.red-ui-tab-close {
|
|
|
|
background: $tab-background-hover;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2015-07-14 16:59:56 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-09 15:46:29 +02:00
|
|
|
ul.red-ui-tabs li a:hover {
|
|
|
|
text-decoration: none;
|
2015-07-14 16:59:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ul.red-ui-tabs li:not(.active) a:hover {
|
|
|
|
color: $workspace-button-color-hover;
|
2015-07-14 00:21:03 +02:00
|
|
|
background: $tab-background-hover;
|
2015-07-12 00:43:45 +02:00
|
|
|
}
|
2015-07-14 16:59:56 +02:00
|
|
|
|
2015-07-12 00:43:45 +02:00
|
|
|
ul.red-ui-tabs li a:focus {
|
|
|
|
text-decoration: none;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ul.red-ui-tabs li.active {
|
2015-07-14 00:21:03 +02:00
|
|
|
background: $tab-background-active;
|
2015-07-12 00:43:45 +02:00
|
|
|
font-weight: bold;
|
2015-04-09 15:46:29 +02:00
|
|
|
border-bottom: 1px solid #fff;
|
2016-05-04 16:22:30 +02:00
|
|
|
z-index: 2;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
|
|
|
ul.red-ui-tabs li.active a {
|
|
|
|
color: #333;
|
|
|
|
}
|
2015-07-30 12:03:37 +02:00
|
|
|
|
2016-05-17 10:16:58 +02:00
|
|
|
.red-ui-tab-icon {
|
2015-07-30 12:03:37 +02:00
|
|
|
margin-left: -8px;
|
|
|
|
margin-right: 3px;
|
|
|
|
margin-top: -2px;
|
|
|
|
opacity: 0.1;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2016-05-17 10:16:58 +02:00
|
|
|
ul.red-ui-tabs li.active .red-ui-tab-icon {
|
2015-07-30 12:03:37 +02:00
|
|
|
opacity: 0.2;
|
|
|
|
}
|