node-red/editor/sass/tabs.scss

107 lines
2.4 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-04-09 15:46:29 +02:00
border-bottom: 1px solid #999;
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-12 00:43:45 +02:00
box-sizing:border-box;
2015-04-09 15:46:29 +02:00
display: inline-block;
border-left: 1px solid #999;
border-top: 1px solid #999;
border-right: 1px solid #999;
border-bottom: 1px solid #999;
2015-07-12 00:43:45 +02:00
background: #f3f3f3;
margin: 3px 3px 0 3px;
height: 32px;
line-height: 24px;
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-12 00:43:45 +02:00
padding: 3px 12px;
width: 100%;
height: 100%;
2015-04-09 15:46:29 +02:00
color: #666;
}
ul.red-ui-tabs li {
position: relative;
}
ul.red-ui-tabs li a.red-ui-tab-close {
background: rgba(227,227,227,0.8);
position: absolute;
right: 2px;
top: 2px;
display: block;
width: 20px;
height: 20px;
line-height: 20px;
text-align: center;
padding: 0px;
border-radius: 5px;
color: #666;
}
ul.red-ui-tabs li a.red-ui-tab-close:hover {
background: #bbb !important;
}
ul.red-ui-tabs li a:hover {
text-decoration: none;
2015-07-12 00:43:45 +02:00
background: #ddd;
}
ul.red-ui-tabs li a:focus {
text-decoration: none;
2015-04-09 15:46:29 +02:00
}
ul.red-ui-tabs li.active {
background: #fff;
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;
}
ul.red-ui-tabs li.active a.red-ui-tab-close {
background: rgba(255,255,255,0.8);
}
ul.red-ui-tabs li.active a.red-ui-tab-label:hover {
background: #fff;
}
ul.red-ui-tabs li.red-ui-add-tab {
width: 25px;
line-height: 22px;
}
ul.red-ui-tabs li.red-ui-add-tab a {
padding: 2px 4px;
}