@use "mixins"; /** * Copyright JS Foundation and other contributors, http://js.foundation * * 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. **/ .button { @include mixins.disable-selection; } #red-ui-header { position: absolute; top: 0; left: 0; width: 100%; height: var(--red-ui-header-height); background: var(--red-ui-header-background); box-sizing: border-box; padding: 0px; color: var(--red-ui-header-menu-color); font-size: 14px; display: flex; justify-content: space-between; align-items: center; #red-ui-header-logo { flex: 0 0 auto; display: flex; align-items: center; margin-left: 8px; min-width: 170px; } span.red-ui-header-logo { text-decoration: none; white-space: nowrap; span { vertical-align: middle; font-size: 14px !important; &:not(:first-child) { margin-left: 8px; } } img { height: 26px; } a { color: inherit; &:hover { text-decoration: none; } } } .red-ui-header-toolbar { display: flex; flex:1 0 auto; align-items: stretch; padding: 0; margin: 0 10px 0 20px; list-style: none; gap: 10px; > li { display: inline-flex; align-items: stretch; padding: 0; margin: 0; position: relative; } } .button { height: 30px; display: inline-flex; align-items: center; justify-content: center; min-width: 32px; text-align: center; font-size: 16px; padding: 0px; text-decoration: none; color: var(--red-ui-header-menu-color); vertical-align: middle; mask-size: contain; border-radius: 4px; box-sizing: border-box; &:active, &.active { background: var(--red-ui-header-button-background-active); } &:hover { background: var(--red-ui-header-button-background-hover); } } .button-group { display: inline-block; vertical-align: middle; clear: both; & > a { display: inline-block; position: relative; line-height: 22px; font-size: 14px; text-decoration: none; padding: 4px 8px; margin: 0; } } .red-ui-deploy-button { background: var(--red-ui-deploy-button-background); color: var(--red-ui-deploy-button-color); border: 1px solid var(--red-ui-deploy-button-border-color); &:hover { background: var(--red-ui-deploy-button-background-hover); } &:focus { outline: none; } &:active { background: var(--red-ui-deploy-button-background-active); color: var(--red-ui-deploy-button-color-active); } } .red-ui-deploy-button-spinner { position: absolute; left: 0; top: 0; right: 0; bottom: 0; text-align: center; img { opacity: 0.8; height: 100%; } } #red-ui-header-button-deploy { padding: 3px 8px; border-top-left-radius: 4px; border-bottom-left-radius: 4px; border-right: none; border-color: var(--red-ui-deploy-button-background); &:last-child { border-right: 1px solid var(--red-ui-deploy-button-border-color); border-top-right-radius: 4px; border-bottom-right-radius: 4px; } &.disabled { cursor: default; background: var(--red-ui-deploy-button-background-disabled); color: var(--red-ui-deploy-button-color-disabled); border-color: var(--red-ui-deploy-button-border-color); .red-ui-deploy-button-content>img { opacity: 0.7; } &+ #red-ui-header-button-deploy-options { background: var(--red-ui-deploy-button-background-disabled); color: var(--red-ui-deploy-button-color-active); border-color: var(--red-ui-deploy-button-border-color); } &+ #red-ui-header-button-deploy-options:hover { background: var(--red-ui-deploy-button-background-disabled-hover); } &+ #red-ui-header-button-deploy-options:active { background: var(--red-ui-deploy-button-background-disabled); } } &+ #red-ui-header-button-deploy-options { padding: 3px 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-color: var(--red-ui-deploy-button-background); border-left: none; } .red-ui-deploy-button-content>img { margin-right: 8px; height: 16px; } } .red-ui-deploy-button-group.open { #red-ui-header-button-deploy-options { background: var(--red-ui-header-button-background-active) !important; } } .red-ui-deploy-button-group.readOnly { .fa-caret-down { display: none; } .fa-lock { display: inline-block; } } .red-ui-deploy-button-group:not(.readOnly) { .fa-caret-down { display: inline-block; } .fa-lock { display: none; } } .red-ui-deploy-button-group.readOnly { a { pointer-events: none; } } li.open .button { background: var(--red-ui-header-button-background-active); border-color: var(--red-ui-header-button-background-active); } ul.red-ui-menu-dropdown { background: var(--red-ui-header-menu-background); border: 1px solid var(--red-ui-header-menu-background); width: 260px !important; margin-top: 5px; li a { color: var(--red-ui-header-menu-color); padding: 3px 10px 3px 30px; img { max-width: 100%; margin-right: 10px; padding: 4px; border: 3px solid transparent; } .red-ui-popover-key { color: var(--red-ui-header-menu-color-disabled) !important; border-color: var(--red-ui-header-menu-color-disabled) !important; } &.active img { border: 3px solid var(--red-ui-header-menu-item-border-active); } 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; text-indent: 0px; } span.red-ui-menu-sublabel { color: var(--red-ui-header-menu-sublabel-color); font-size: 13px; display: block; text-indent: 0px; } } > li > a:hover, > li.open > a, > li > a:focus, > li:hover > a, > li:focus > a { background: var(--red-ui-header-menu-item-hover) !important; } li.red-ui-menu-divider { background: var(--red-ui-headerMenuItemDivider); } li.disabled a { color: var(--red-ui-header-menu-color-disabled); } > li.disabled > a:hover, > li.disabled > a:focus { background: none !important; } } .red-ui-menu-dropdown-submenu>a:before { border-right-color: var(--red-ui-headerMenuCaret); margin-left: -25px !important; } /* Deploy menu customisations */ ul#red-ui-header-button-deploy-options-submenu { width: 312px !important; li a { padding: 10px 30px; color: var(--red-ui-header-menu-heading-color); span.red-ui-menu-label { font-size: 16px; display: inline-block; text-indent: 0px; } > i.fa { display: none; } } } /* User menu customisations */ #usermenu-item-username > .red-ui-menu-label { color: var(--red-ui-header-menu-heading-color); } } #red-ui-header-toolbar { display: flex; position: relative; align-items: center; flex: 1 0 auto; &:not(.hide) { display: flex; } } #red-ui-header-button-user { background-color: var(--red-ui-header-background); border: 1px solid var(--red-ui-header-button-border); border-radius: 4px; } .red-ui-user-profile { overflow: hidden; padding: 3px; background-position: center center; background-repeat: no-repeat; background-size: contain; display: inline-flex; justify-content: center; align-items: center; vertical-align: middle; width: 22px; height: 22px; font-size: 14px; &.red-ui-user-profile-color-1 { color: var(--red-ui-user-profile-text-color); background-color: var(--red-ui-user-profile-colors-1); } &.red-ui-user-profile-color-2 { color: var(--red-ui-user-profile-text-color); background-color: var(--red-ui-user-profile-colors-2); } &.red-ui-user-profile-color-3 { color: var(--red-ui-user-profile-text-color); background-color: var(--red-ui-user-profile-colors-3); } &.red-ui-user-profile-color-4 { color: var(--red-ui-user-profile-text-color); background-color: var(--red-ui-user-profile-colors-4); } &.red-ui-user-profile-color-5 { color: var(--red-ui-user-profile-text-color); background-color: var(--red-ui-user-profile-colors-5); } } @media only screen and (max-width: 450px) { span.red-ui-header-logo > span { display: none; } }