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/header.scss

292 lines
5.8 KiB
SCSS
Raw Normal View History

2015-04-09 15:46:29 +02: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.
**/
2015-04-13 01:11:32 +02:00
$activeButton: #121212;
$deployButton: #8C101C;
$deployButtonHover: #6E0A1E;
$deployButtonActive: #4C0A17;
$deployDisabledButton: #444;
$deployDisabledButtonHover: #555;
$deployDisabledButtonActive: #444;
$headerMenuBackground: #121212;
$headerMenuItemHover: #323232;
$headerMenuItemDivider: #464646;
2015-04-09 15:46:29 +02:00
#header {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 40px;
background: #000;
box-sizing: border-box;
padding: 0px 0px 0px 20px;
color: #C7C7C7;
font-size: 14px;
}
span.logo {
float: left;
margin-top: 5px;
font-size: 30px;
line-height: 30px;
text-decoration: none;
2015-04-13 22:50:40 +02:00
span {
vertical-align: middle;
font-size: 16px !important;
}
img {
height: 18px;
}
a {
color: inherit;
&:hover {
text-decoration: none;
}
}
2015-04-09 15:46:29 +02:00
}
2015-04-13 22:50:40 +02:00
.header-toolbar {
2015-04-09 15:46:29 +02:00
padding: 0;
margin: 0;
list-style: none;
float: right;
2015-04-13 22:50:40 +02:00
> li {
display: inline-block;
padding: 0;
margin: 0;
position: relative;
2015-04-13 22:50:40 +02:00
}
2015-04-09 15:46:29 +02:00
}
.button {
@include disable-selection;
}
#header .button {
min-width: 20px;
text-align: center;
line-height: 40px;
display: inline-block;
2015-04-13 01:11:32 +02:00
font-size: 20px;
2015-04-09 15:46:29 +02:00
padding: 0px 12px;
text-decoration: none;
color: #C7C7C7;
margin: auto 5px;
vertical-align: middle;
border-left: 2px solid #000;
border-right: 2px solid #000;
2015-04-13 22:50:40 +02:00
&:hover {
border-color: $headerMenuItemHover;
}
2015-04-09 15:46:29 +02:00
}
#header .button-group {
2015-04-09 15:46:29 +02:00
display: inline-block;
margin: auto 15px;
vertical-align: middle;
clear: both;
}
#header .button-group > a {
2015-04-13 22:50:40 +02:00
display: inline-block;
2016-10-20 14:11:12 +02:00
position: relative;
2015-04-09 15:46:29 +02:00
float: left;
line-height: 22px;
font-size: 14px;
text-decoration: none;
padding: 4px 8px;
margin: 0;
}
2015-04-13 22:50:40 +02:00
.deploy-button {
background: $deployButton;
color: #eee !important;
2015-04-13 22:50:40 +02:00
&:hover {
background: $deployButtonHover;
}
2015-04-13 22:50:40 +02:00
&:active {
background: $deployButtonActive;
color: #ccc !important;
}
}
2016-10-20 14:11:12 +02:00
.deploy-button-spinner {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
text-align: center;
img {
opacity: 0.8;
height: 100%;
}
}
2015-04-13 22:50:40 +02:00
#btn-deploy {
2015-04-13 22:50:40 +02:00
padding: 4px 12px;
2015-04-13 22:50:40 +02:00
&.disabled {
cursor: default;
background: $deployDisabledButton;
color: #999 !important;
2016-10-20 14:11:12 +02:00
.deploy-button-content>img {
2015-04-13 22:50:40 +02:00
opacity: 0.3;
}
2015-04-13 22:50:40 +02:00
&+ #btn-deploy-options {
background: $deployDisabledButton;
color: #ddd;
}
&+ #btn-deploy-options:hover {
background: $deployDisabledButtonHover;
}
&+ #btn-deploy-options:active {
background: $deployDisabledButton;
}
}
2016-10-20 14:11:12 +02:00
.deploy-button-content>img {
2015-04-13 22:50:40 +02:00
margin-right: 8px;
}
}
.deploy-button-group.open {
#btn-deploy-options {
background: $activeButton !important;
}
2015-04-09 15:46:29 +02:00
}
2015-04-13 22:50:40 +02:00
#header .button {
&:active, &.active {
background: $activeButton;
}
&:focus {
outline: none;
}
2015-04-09 15:46:29 +02:00
}
2015-04-13 22:50:40 +02:00
2015-04-09 15:46:29 +02:00
#header li.open .button {
2015-04-13 01:11:32 +02:00
background: $activeButton;
border-color: $activeButton;
2015-04-09 15:46:29 +02:00
}
2015-04-09 18:26:11 +02:00
#header ul.dropdown-menu {
2015-04-13 01:11:32 +02:00
background: $headerMenuBackground;
2015-04-09 18:26:11 +02:00
width: 250px !important;
margin-top: 0;
}
#header ul.dropdown-menu li a {
color: #C7C7C7;
padding: 3px 40px;
}
#header ul.dropdown-menu li a img {
margin-right: 10px;
padding: 4px;
border: 3px solid rgba(0,0,0,0);
}
#header ul.dropdown-menu li a.active img {
border: 3px solid #777677;
}
#header ul.dropdown-menu li a span.menu-label-container {
width: 180px;
vertical-align: top;
display: inline-block;
text-indent: 0px;
}
#header ul.dropdown-menu li a span.menu-label {
font-size: 14px;
display: inline-block;
text-indent: 0px;
}
#header ul.dropdown-menu li a span.menu-sublabel {
color: #aeaeae;
font-size: 13px;
display: inline-block;
text-indent: 0px;
}
#header ul.dropdown-menu > li:hover > a,
#header ul.dropdown-menu > li:focus > a {
2015-04-13 01:11:32 +02:00
background: $headerMenuItemHover !important;
2015-04-09 18:26:11 +02:00
}
#header ul.dropdown-menu li.divider {
2015-04-13 01:11:32 +02:00
background: $headerMenuItemDivider;
border-bottom-color: $headerMenuItemHover;
2015-04-09 18:26:11 +02:00
}
#header ul.dropdown-menu li.disabled a {
color: #666;
}
#header ul.dropdown-menu > li.disabled:hover > a,
#header ul.dropdown-menu > li.disabled:focus > a {
background: none !important;
}
/* Deploy menu customisations */
#header ul#btn-deploy-options-submenu {
width: 300px !important;
}
#header ul#btn-deploy-options-submenu li a span.menu-label {
font-size: 16px;
display: inline-block;
text-indent: 0px;
}
#header ul#btn-deploy-options-submenu li a {
padding: 10px 30px;
color: #fff;
}
#header ul#btn-deploy-options-submenu li a > i.fa {
display: none !important;
}
/* User menu customisations */
#header ul#btn-usermenu-submenu li a#btn-username > .menu-label {
font-size: 16px;
color: #fff;
}
#btn-usermenu .user-profile {
background-position: center center;
background-repeat: no-repeat;
background-size: contain;
display: inline-block;
width: 40px;
height: 35px;
vertical-align: middle;
}