/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ @import (reference) "../mixins"; @import (reference) "../variables"; @import (reference) "ui"; @navbarGlobalBackground: #262626; @navbarContextBackground: @barBackgroundColor; @navbarLineHeight: 20px; @navbarTopPadding: (@navbarGlobalHeight - @navbarLineHeight) / 2; .navbar, [class^="navbar-"], [class*=" navbar-"] { box-sizing: border-box; } .navbar { position: fixed; left: 0; right: 0; .clearfix; height: @navbarGlobalHeight; } .navbar-fade { .navbar-nav { opacity: 0; transition: opacity 0.2s ease; } .navbar-favorite { margin-right: -23px; transition: margin 0.2s ease; } &.in { .navbar-nav { opacity: 1; } .navbar-favorite { margin-right: 0; } } } .navbar a { .link-no-underline; transition: none; } .navbar-header { float: left; } .navbar-brand { display: block; img { vertical-align: top; } } .navbar-brand-custom { padding: 0 10px; } .navbar-nav { float: left; } .navbar-nav > li { float: left; } .navbar-nav > li > a { padding: @navbarTopPadding 10px; line-height: @navbarLineHeight; } .navbar-nav > li.navbar-more > a { padding-right: 17px; } .navbar-nav > li.navbar-more + li { margin-left: -17px; } .navbar-nav > li.navbar-more + li > a { padding-left: 5px; padding-right: 5px; } .navbar-icon:before { color: #fff !important; font-size: @iconFontSize; } .navbar-favorite { position: relative; top: -2px; } .navbar-right { float: right; } .navbar-search { position: relative; width: 480px; box-sizing: border-box; transition: width 0.2s ease; } .navbar-search-input { width: 100%; padding: 0 20px 0 40px !important; border: none !important; } .navbar-search-icon { position: absolute; top: 4px; left: 20px; color: @secondFontColor; &:before { font-size: @iconSmallFontSize; } } .navbar-search-extra { display: inline-block; width: 90px; margin-right: 10px; text-align: right; } .navbar-search-subtitle { position: absolute; top: 5px; right: 40px; } .navbar-global { top: 0; z-index: @navbar-global-z-index; background-color: @navbarGlobalBackground; .navbar-nav > li > a { color: #ccc; font-size: 12px; letter-spacing: 0.05em; &:hover, &:focus { color: #fff; } } .navbar-nav > .active > a, .navbar-nav > .dropdown.open > a { color: #fff; } .navbar-brand:hover, .navbar-brand:focus { background-color: darken(@navbarGlobalBackground, 20%); } .navbar-nav > li > a:hover, .navbar-nav > li > a:focus, .navbar-nav > .active > a, .navbar-nav > .dropdown.open > a { background-color: @blue; } .navbar-search-dropdown { background-color: @blue !important; } .navbar-admin-link:hover, .navbar-admin-link:focus, .active > .navbar-admin-link { background-color: @orange !important; } } .navbar-context { top: @navbarGlobalHeight; z-index: @navbar-context-z-index; height: @navbarContextHeight; padding-top: 5px; background-color: @navbarContextBackground; .nav-tabs { width: 100%; } .navbar-nav > li > a { padding-top: 3px; padding-bottom: 3px; } .navbar-admin-link:hover, .navbar-admin-link:focus, .active > .navbar-admin-link { border-color: @orange !important; } } .navbar-context-favorite { float: left; padding: 6px 0 0 10px; } .navbar-context-meta { line-height: @navbarGlobalHeight; padding: 0 10px; color: @secondFontColor; font-size: @smallFontSize; } .navbar-side { padding: 10px; border-bottom: 1px solid @barBorderColor; background-color: #e5f1f9; } .global-navbar-search-dropdown { max-height: 80vh; overflow-y: auto; overflow-x: hidden; }