1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
node-red/packages/node_modules/@node-red/editor-client/src/sass/header.scss

274 lines
7.0 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.
**/
2019-05-01 00:38:54 +02:00
.button {
@include disable-selection;
}
#red-ui-header {
2015-04-09 15:46:29 +02:00
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 40px;
2019-05-15 14:54:29 +02:00
background: $header-background;
2015-04-09 15:46:29 +02:00
box-sizing: border-box;
padding: 0px 0px 0px 20px;
2019-05-15 14:54:29 +02:00
color: $header-menu-color;
2015-04-09 15:46:29 +02:00
font-size: 14px;
2019-05-01 00:38:54 +02:00
span.red-ui-header-logo {
float: left;
margin-top: 5px;
font-size: 30px;
line-height: 30px;
text-decoration: none;
2019-05-01 00:38:54 +02:00
span {
vertical-align: middle;
font-size: 16px !important;
&:not(:first-child) {
margin-left: 5px;
}
2019-05-01 00:38:54 +02:00
}
img {
height: 18px;
}
2019-05-01 00:38:54 +02:00
a {
color: inherit;
&:hover {
text-decoration: none;
}
}
2015-04-13 22:50:40 +02:00
2019-05-01 00:38:54 +02:00
}
2019-05-01 00:38:54 +02:00
.red-ui-header-toolbar {
2015-04-13 22:50:40 +02:00
padding: 0;
margin: 0;
2019-05-01 00:38:54 +02:00
list-style: none;
float: right;
2015-04-09 15:46:29 +02:00
2019-05-01 00:38:54 +02:00
> li {
display: inline-block;
padding: 0;
margin: 0;
position: relative;
2015-04-09 15:46:29 +02:00
2019-05-01 00:38:54 +02:00
}
2015-04-13 22:50:40 +02:00
}
2015-04-09 15:46:29 +02:00
2019-05-01 00:38:54 +02:00
.button {
min-width: 20px;
text-align: center;
line-height: 40px;
display: inline-block;
font-size: 20px;
padding: 0px 12px;
text-decoration: none;
2019-05-15 14:54:29 +02:00
color: $header-menu-color;
2019-05-01 00:38:54 +02:00
margin: auto 5px;
vertical-align: middle;
2019-05-15 14:54:29 +02:00
border-left: 2px solid $header-background;
border-right: 2px solid $header-background;
2019-05-01 00:38:54 +02:00
&:hover {
2019-05-15 14:54:29 +02:00
border-color: $header-menu-item-hover;
2019-05-01 00:38:54 +02:00
}
&:active, &.active {
2019-05-15 14:54:29 +02:00
background: $header-button-background-active;
2019-05-01 00:38:54 +02:00
}
&:focus {
outline: none;
}
2015-04-13 22:50:40 +02:00
}
2016-10-20 14:11:12 +02:00
2019-05-01 00:38:54 +02:00
.button-group {
display: inline-block;
margin: auto 15px;
vertical-align: middle;
clear: both;
& > a {
display: inline-block;
position: relative;
float: left;
line-height: 22px;
font-size: 14px;
text-decoration: none;
padding: 4px 8px;
margin: 0;
}
2016-10-20 14:11:12 +02:00
}
2019-05-07 15:46:44 +02:00
.red-ui-deploy-button {
2019-05-15 14:54:29 +02:00
background: $deploy-button-background;
color: $deploy-button-color;
2019-05-01 00:38:54 +02:00
&:hover {
2019-05-15 14:54:29 +02:00
background: $deploy-button-background-hover;
}
&:focus {
outline: none;
2015-04-13 22:50:40 +02:00
}
2019-05-01 00:38:54 +02:00
&:active {
2019-05-15 14:54:29 +02:00
background: $deploy-button-background-active;
color: $deploy-button-color-active;
2015-04-13 22:50:40 +02:00
}
2019-05-01 00:38:54 +02:00
}
2019-05-07 15:46:44 +02:00
.red-ui-deploy-button-spinner {
2019-05-01 00:38:54 +02:00
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
}
2019-05-01 00:38:54 +02:00
}
2019-05-07 15:46:44 +02:00
#red-ui-header-button-deploy {
2019-05-01 00:38:54 +02:00
padding: 4px 12px;
&.disabled {
cursor: default;
2019-05-15 14:54:29 +02:00
background: $deploy-button-background-disabled;
color: $deploy-button-color-disabled;
2019-05-01 00:38:54 +02:00
2019-05-07 15:46:44 +02:00
.red-ui-deploy-button-content>img {
2019-05-01 00:38:54 +02:00
opacity: 0.3;
}
2019-05-07 15:46:44 +02:00
&+ #red-ui-header-button-deploy-options {
2019-05-15 14:54:29 +02:00
background: $deploy-button-background-disabled;
color: $deploy-button-color-active;
2019-05-01 00:38:54 +02:00
}
2019-05-07 15:46:44 +02:00
&+ #red-ui-header-button-deploy-options:hover {
2019-05-15 14:54:29 +02:00
background: $deploy-button-background-disabled-hover;
2019-05-01 00:38:54 +02:00
}
2019-05-07 15:46:44 +02:00
&+ #red-ui-header-button-deploy-options:active {
2019-05-15 14:54:29 +02:00
background: $deploy-button-background-disabled;
2019-05-01 00:38:54 +02:00
}
2015-04-13 22:50:40 +02:00
}
2019-05-07 15:46:44 +02:00
.red-ui-deploy-button-content>img {
2019-05-01 00:38:54 +02:00
margin-right: 8px;
}
2015-04-13 22:50:40 +02:00
}
2019-05-07 15:46:44 +02:00
.red-ui-deploy-button-group.open {
#red-ui-header-button-deploy-options {
2019-05-15 14:54:29 +02:00
background: $header-button-background-active !important;
2019-05-01 00:38:54 +02:00
}
2015-04-13 22:50:40 +02:00
}
2019-05-01 00:38:54 +02:00
li.open .button {
2019-05-15 14:54:29 +02:00
background: $header-button-background-active;
border-color: $header-button-background-active;
2015-04-13 22:50:40 +02:00
}
2015-04-09 15:46:29 +02:00
2015-04-09 18:26:11 +02:00
2019-05-07 15:46:44 +02:00
ul.red-ui-menu-dropdown {
2019-05-15 14:54:29 +02:00
background: $header-menu-background;
border: 1px solid $header-menu-background;
2019-05-01 00:38:54 +02:00
width: 250px !important;
margin-top: 0;
2019-05-07 15:46:44 +02:00
li a {
2019-05-15 14:54:29 +02:00
color: $header-menu-color;
2019-05-07 15:46:44 +02:00
padding: 3px 40px;
img {
margin-right: 10px;
padding: 4px;
2019-05-15 14:54:29 +02:00
border: 3px solid transparent;
2019-05-07 15:46:44 +02:00
}
2015-04-09 18:26:11 +02:00
2019-05-07 15:46:44 +02:00
&.active img {
2019-05-15 14:54:29 +02:00
border: 3px solid $header-menu-item-border-active;
2019-05-07 15:46:44 +02:00
}
2015-04-09 18:26:11 +02:00
2019-05-07 15:46:44 +02:00
span.red-ui-menu-label-container {
width: 180px;
vertical-align: top;
display: inline-block;
text-indent: 0px;
}
span.red-ui-menu-label {
font-size: 14px;
display: inline-block;
text-indent: 0px;
}
span.red-ui-menu-sublabel {
2019-05-15 14:54:29 +02:00
color: $header-menu-sublabel-color;
2019-05-07 15:46:44 +02:00
font-size: 13px;
display: inline-block;
text-indent: 0px;
}
}
2019-05-21 16:26:15 +02:00
> li > a:hover,
> li > a:focus,
2019-05-07 15:46:44 +02:00
> li:hover > a,
> li:focus > a {
2019-05-15 14:54:29 +02:00
background: $header-menu-item-hover !important;
2019-05-07 15:46:44 +02:00
}
li.red-ui-menu-divider {
2019-05-07 15:46:44 +02:00
background: $headerMenuItemDivider;
}
li.disabled a {
2019-05-15 14:54:29 +02:00
color: $header-menu-color-disabled;
2019-05-07 15:46:44 +02:00
}
2019-05-21 16:26:15 +02:00
> li.disabled > a:hover,
> li.disabled > a:focus {
2019-05-07 15:46:44 +02:00
background: none !important;
}
2019-05-01 00:38:54 +02:00
}
2019-05-15 14:54:29 +02:00
.red-ui-menu-dropdown-submenu>a:before {
border-right-color: $headerMenuCaret;
}
2015-04-09 18:26:11 +02:00
2019-05-01 00:38:54 +02:00
/* Deploy menu customisations */
2019-05-07 15:46:44 +02:00
ul#red-ui-header-button-deploy-options-submenu {
2019-05-01 00:38:54 +02:00
width: 300px !important;
2019-05-07 15:46:44 +02:00
li a {
padding: 10px 30px;
2019-05-15 14:54:29 +02:00
color: $header-menu-heading-color;
2019-05-07 15:46:44 +02:00
span.red-ui-menu-label {
font-size: 16px;
display: inline-block;
text-indent: 0px;
}
> i.fa {
2019-05-15 14:54:29 +02:00
display: none;
2019-05-07 15:46:44 +02:00
}
}
2019-05-01 00:38:54 +02:00
}
/* User menu customisations */
2019-05-07 15:46:44 +02:00
#usermenu-item-username > .red-ui-menu-label {
2019-05-15 14:54:29 +02:00
color: $header-menu-heading-color;
2019-05-01 00:38:54 +02:00
}
2019-05-07 15:46:44 +02:00
#red-ui-header-button-user .user-profile {
2019-05-01 00:38:54 +02:00
background-position: center center;
background-repeat: no-repeat;
background-size: contain;
display: inline-block;
width: 40px;
height: 35px;
vertical-align: middle;
}
}