2015-04-09 15:46:29 +02:00
|
|
|
/**
|
2017-01-11 16:24:33 +01:00
|
|
|
* Copyright JS Foundation and other contributors, http://js.foundation
|
2015-04-09 15:46:29 +02:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
**/
|
|
|
|
|
2016-09-26 23:56:28 +02:00
|
|
|
.red-ui-tabs {
|
|
|
|
position: relative;
|
2015-07-12 00:43:45 +02:00
|
|
|
background: #fff;
|
2016-09-26 23:56:28 +02:00
|
|
|
overflow: hidden;
|
|
|
|
height: 35px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
.red-ui-tabs-scroll-container {
|
|
|
|
height: 60px;
|
|
|
|
overflow-x: scroll;
|
|
|
|
overflow-y: hidden;
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
& ul {
|
|
|
|
//background: #9999ff;
|
|
|
|
list-style-type: none;
|
|
|
|
padding:0;
|
|
|
|
margin: 0;
|
|
|
|
display: block;
|
|
|
|
height: 35px;
|
|
|
|
box-sizing:border-box;
|
|
|
|
border-bottom: 1px solid $primary-border-color;
|
|
|
|
white-space: nowrap;
|
|
|
|
@include disable-selection;
|
2015-04-09 15:46:29 +02:00
|
|
|
|
2016-09-26 23:56:28 +02:00
|
|
|
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;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
a.red-ui-tab-label {
|
|
|
|
display: block;
|
|
|
|
font-size: 14px;
|
|
|
|
padding-left: 12px;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
color: #666;
|
|
|
|
}
|
|
|
|
a:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
a:focus {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.active) a:hover+a.red-ui-tab-close {
|
|
|
|
background: $tab-background-hover;
|
|
|
|
}
|
|
|
|
&.active {
|
|
|
|
background: $tab-background-active;
|
|
|
|
font-weight: bold;
|
|
|
|
border-bottom: 1px solid #fff;
|
|
|
|
z-index: 2;
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
a.red-ui-tab-close {
|
|
|
|
color: #aaa;
|
|
|
|
background: $tab-background-active;
|
|
|
|
&:hover {
|
|
|
|
background: $workspace-button-background-hover !important;
|
|
|
|
color: $workspace-button-color-hover;
|
|
|
|
}
|
|
|
|
}
|
2018-05-23 11:25:10 +02:00
|
|
|
img.red-ui-tab-icon {
|
2016-09-26 23:56:28 +02:00
|
|
|
opacity: 0.2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:not(.active) a:hover {
|
|
|
|
color: $workspace-button-color-hover;
|
|
|
|
background: $tab-background-hover;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.red-ui-tabs-scrollable {
|
|
|
|
padding-left: 21px;
|
|
|
|
padding-right: 21px;
|
|
|
|
}
|
|
|
|
&.red-ui-tabs-add {
|
|
|
|
padding-right: 35px;
|
|
|
|
}
|
|
|
|
&.red-ui-tabs-add.red-ui-tabs-scrollable {
|
|
|
|
padding-right: 59px;
|
|
|
|
}
|
2018-05-23 11:25:10 +02:00
|
|
|
&.red-ui-tabs-collapsible {
|
|
|
|
li:not(.active) {
|
|
|
|
display: none;
|
|
|
|
&.red-ui-tab-pinned {
|
|
|
|
a {
|
|
|
|
padding-left: 0;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
span {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
width: 32px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-04-28 21:49:01 +02:00
|
|
|
|
|
|
|
&.red-ui-tabs-vertical {
|
|
|
|
box-sizing: border-box;
|
|
|
|
height: 100%;
|
|
|
|
border-right: 1px solid $primary-border-color;
|
|
|
|
margin: 0;
|
|
|
|
background: #f3f3f3;
|
|
|
|
overflow: visible;
|
|
|
|
|
|
|
|
.red-ui-tabs-scroll-container {
|
|
|
|
height: auto;
|
|
|
|
overflow-x:visible;
|
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
|
|
|
|
|
|
|
& ul {
|
|
|
|
padding: 0;
|
|
|
|
height: auto;
|
|
|
|
border: none;
|
|
|
|
width: calc(100% + 1px);
|
|
|
|
li {
|
|
|
|
width: 100%;
|
|
|
|
display: block;
|
|
|
|
margin: 0;
|
|
|
|
border: none;
|
|
|
|
border-right: 1px solid $primary-border-color;
|
|
|
|
height: auto;
|
|
|
|
&:not(:first-child) {
|
|
|
|
border-top: 1px solid $secondary-border-color;
|
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
border-bottom: 1px solid $secondary-border-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
a.red-ui-tab-label {
|
|
|
|
padding: 9px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
border-right: 1px solid #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-05-23 11:25:10 +02:00
|
|
|
.red-ui-tabs-select {
|
|
|
|
position: absolute;
|
|
|
|
top:0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
opacity: 0.4;
|
|
|
|
background: red;
|
|
|
|
}
|
2016-09-26 23:56:28 +02:00
|
|
|
}
|
|
|
|
.red-ui-tab-button {
|
|
|
|
position: absolute;
|
2015-07-13 12:26:29 +02:00
|
|
|
box-sizing: border-box;
|
2016-09-26 23:56:28 +02:00
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
height: 35px;
|
|
|
|
background: #fff;
|
2015-07-13 12:26:29 +02:00
|
|
|
border-bottom: 1px solid $primary-border-color;
|
2016-09-30 00:46:55 +02:00
|
|
|
z-index: 2;
|
2016-09-26 23:56:28 +02:00
|
|
|
|
|
|
|
a {
|
|
|
|
@include workspace-button;
|
|
|
|
line-height: 32px;
|
|
|
|
height: 32px;
|
|
|
|
width: 32px;
|
|
|
|
margin-top: 3px;
|
|
|
|
margin-right:3px;
|
|
|
|
margin-left:3px;
|
|
|
|
border: 1px solid $primary-border-color;
|
2016-09-30 00:46:55 +02:00
|
|
|
z-index: 2;
|
2016-09-26 23:56:28 +02:00
|
|
|
}
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2018-05-23 11:25:10 +02:00
|
|
|
.red-ui-tab-link-buttons {
|
|
|
|
position: absolute;
|
|
|
|
box-sizing: border-box;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
height: 35px;
|
|
|
|
background: #fff;
|
|
|
|
border-bottom: 1px solid $primary-border-color;
|
|
|
|
z-index: 2;
|
|
|
|
a {
|
|
|
|
@include workspace-button;
|
|
|
|
line-height: 26px;
|
|
|
|
height: 28px;
|
|
|
|
width: 28px;
|
|
|
|
margin: 4px 3px 3px;
|
|
|
|
border: 1px solid $primary-border-color;
|
|
|
|
z-index: 2;
|
|
|
|
&.red-ui-tab-link-button {
|
|
|
|
&:not(.active) {
|
|
|
|
background: #eee;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.red-ui-tab-link-button-menu {
|
|
|
|
border-color: white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-09-26 23:56:28 +02:00
|
|
|
.red-ui-tab-scroll {
|
|
|
|
width: 21px;
|
|
|
|
top: 0;
|
|
|
|
a {
|
|
|
|
height: 35px;
|
|
|
|
width: 21px;
|
|
|
|
display: block;
|
|
|
|
color: $link-color;
|
|
|
|
font-size: 22px;
|
|
|
|
text-align: center;
|
|
|
|
margin:0;
|
|
|
|
border-left: none;
|
|
|
|
border-right: none;
|
|
|
|
border-top: none;
|
|
|
|
}
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2016-09-26 23:56:28 +02:00
|
|
|
.red-ui-tab-scroll-left {
|
|
|
|
left:0;
|
|
|
|
a {
|
|
|
|
border-right: 1px solid $primary-border-color;
|
|
|
|
// box-shadow: 8px 0px 5px -2px rgba(0,0,0,0.1);
|
|
|
|
}
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2016-09-26 23:56:28 +02:00
|
|
|
.red-ui-tab-scroll-right {
|
|
|
|
right: 0px;
|
|
|
|
a {
|
|
|
|
border-left: 1px solid $primary-border-color;
|
|
|
|
// box-shadow: -8px 0px 5px -2px rgba(0,0,0,0.1);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
.red-ui-tabs.red-ui-tabs-add .red-ui-tab-scroll-right {
|
|
|
|
right: 38px;
|
|
|
|
}
|
|
|
|
|
2018-05-23 11:25:10 +02:00
|
|
|
img.red-ui-tab-icon {
|
2016-09-26 23:56:28 +02:00
|
|
|
margin-left: -8px;
|
|
|
|
margin-right: 3px;
|
|
|
|
margin-top: -2px;
|
|
|
|
opacity: 0.1;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2018-05-23 11:25:10 +02:00
|
|
|
i.red-ui-tab-icon {
|
|
|
|
opacity: 0.7;
|
|
|
|
width: 18px;
|
|
|
|
height: 20px;
|
|
|
|
}
|
2016-09-26 23:56:28 +02:00
|
|
|
|
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
|
|
|
}
|