1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
node-red/editor/sass/tabs.scss

113 lines
2.7 KiB
SCSS
Raw Normal View History

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-13 12:26:29 +02:00
border-bottom: 1px solid $primary-border-color;
2015-07-12 00:43:45 +02:00
background: #fff;
2015-04-09 15:46:29 +02:00
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
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-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;
}
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;
}
ul.red-ui-tabs li.active a {
color: #333;
}