|
|
@@ -1,205 +0,0 @@
|
|
|
-//
|
|
|
-// Navbars (Redux)
|
|
|
-// --------------------------------------------------
|
|
|
-
|
|
|
-
|
|
|
-// COMMON STYLES
|
|
|
-// -------------
|
|
|
-
|
|
|
-// Base class and wrapper
|
|
|
-.navbar {
|
|
|
- overflow: visible;
|
|
|
- margin-bottom: @baseLineHeight;
|
|
|
-
|
|
|
- // Fix for IE7's bad z-indexing so dropdowns don't appear below content that follows the navbar
|
|
|
- *position: relative;
|
|
|
- *z-index: 2;
|
|
|
-}
|
|
|
-
|
|
|
-// Inner for background effects
|
|
|
-// Gradient is applied to its own element because overflow visible is not honored by IE when filter is present
|
|
|
-.navbar-inner {
|
|
|
- min-height: @navbarHeight;
|
|
|
- padding-left: 20px;
|
|
|
- padding-right: 20px;
|
|
|
- background-color: @navbarBackground;
|
|
|
- border: 1px solid @navbarBorder;
|
|
|
-
|
|
|
- // Prevent floats from breaking the navbar
|
|
|
- .clearfix();
|
|
|
-}
|
|
|
-
|
|
|
-// Set width to auto for default container
|
|
|
-// We then reset it for fixed navbars in the #gridSystem mixin
|
|
|
-.navbar .container {
|
|
|
- width: auto;
|
|
|
-}
|
|
|
-
|
|
|
-// NAVIGATION
|
|
|
-// ----------
|
|
|
-
|
|
|
-.navbar .nav {
|
|
|
- position: relative;
|
|
|
- left: 0;
|
|
|
- float: left;
|
|
|
- margin: 0 10px 0 0;
|
|
|
-}
|
|
|
-
|
|
|
-.nav {
|
|
|
- display: block;
|
|
|
-}
|
|
|
-
|
|
|
-.navbar .nav.pull-right {
|
|
|
- float: right; // redeclare due to specificity
|
|
|
- margin-right: 0; // remove margin on float right nav
|
|
|
-}
|
|
|
-.navbar .nav > li {
|
|
|
- float: left;
|
|
|
-}
|
|
|
-
|
|
|
-// Links
|
|
|
-.navbar .nav > li > a {
|
|
|
- float: none;
|
|
|
- // Vertically center the text given @navbarHeight
|
|
|
- padding: ((@navbarHeight - @baseLineHeight) / 2) 15px ((@navbarHeight - @baseLineHeight) / 2);
|
|
|
- color: @navbarLinkColor;
|
|
|
- text-decoration: none;
|
|
|
- text-shadow: 0 1px 0 @navbarBackgroundHighlight;
|
|
|
-}
|
|
|
-.navbar .nav .dropdown-toggle .caret {
|
|
|
- margin-top: 8px;
|
|
|
-}
|
|
|
-
|
|
|
-// Hover/focus
|
|
|
-.navbar .nav > li > a:focus,
|
|
|
-.navbar .nav > li > a:hover {
|
|
|
- background-color: @navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover/:focus from .active
|
|
|
- color: @navbarLinkColorHover;
|
|
|
- text-decoration: none;
|
|
|
-}
|
|
|
-
|
|
|
-// Active nav items
|
|
|
-.navbar .nav > .active > a,
|
|
|
-.navbar .nav > .active > a:hover,
|
|
|
-.navbar .nav > .active > a:focus {
|
|
|
- color: @navbarLinkColorActive;
|
|
|
- text-decoration: none;
|
|
|
- background-color: @navbarLinkBackgroundActive;
|
|
|
- .box-shadow(inset 0 3px 8px rgba(0,0,0,.125));
|
|
|
-}
|
|
|
-
|
|
|
-// Navbar button for toggling navbar items in responsive layouts
|
|
|
-// These definitions need to come after '.navbar .btn'
|
|
|
-.navbar .btn-navbar {
|
|
|
- display: none;
|
|
|
- float: right;
|
|
|
- padding: 7px 10px;
|
|
|
- margin-left: 5px;
|
|
|
- margin-right: 5px;
|
|
|
- .buttonBackground(darken(@navbarBackgroundHighlight, 5%), darken(@navbarBackground, 5%));
|
|
|
- .box-shadow(~"inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075)");
|
|
|
-}
|
|
|
-.navbar .btn-navbar .icon-bar {
|
|
|
- display: block;
|
|
|
- width: 18px;
|
|
|
- height: 2px;
|
|
|
- background-color: #f5f5f5;
|
|
|
- .border-radius(1px);
|
|
|
- .box-shadow(0 1px 0 rgba(0,0,0,.25));
|
|
|
-}
|
|
|
-.btn-navbar .icon-bar + .icon-bar {
|
|
|
- margin-top: 3px;
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-// Dropdown menus
|
|
|
-// --------------
|
|
|
-
|
|
|
-// Menu position and menu carets
|
|
|
-.navbar .nav > li > .dropdown-menu {
|
|
|
- &:before {
|
|
|
- content: '';
|
|
|
- display: inline-block;
|
|
|
- border-left: 7px solid transparent;
|
|
|
- border-right: 7px solid transparent;
|
|
|
- border-bottom: 7px solid #ccc;
|
|
|
- border-bottom-color: @dropdownBorder;
|
|
|
- position: absolute;
|
|
|
- top: -7px;
|
|
|
- left: 9px;
|
|
|
- }
|
|
|
- &:after {
|
|
|
- content: '';
|
|
|
- display: inline-block;
|
|
|
- border-left: 6px solid transparent;
|
|
|
- border-right: 6px solid transparent;
|
|
|
- border-bottom: 6px solid @dropdownBackground;
|
|
|
- position: absolute;
|
|
|
- top: -6px;
|
|
|
- left: 10px;
|
|
|
- }
|
|
|
-}
|
|
|
-// Menu position and menu caret support for dropups via extra dropup class
|
|
|
-.navbar-fixed-bottom .nav > li > .dropdown-menu {
|
|
|
- &:before {
|
|
|
- border-top: 7px solid #ccc;
|
|
|
- border-top-color: @dropdownBorder;
|
|
|
- border-bottom: 0;
|
|
|
- bottom: -7px;
|
|
|
- top: auto;
|
|
|
- }
|
|
|
- &:after {
|
|
|
- border-top: 6px solid @dropdownBackground;
|
|
|
- border-bottom: 0;
|
|
|
- bottom: -6px;
|
|
|
- top: auto;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-// Caret should match text color on hover/focus
|
|
|
-.navbar .nav li.dropdown > a:hover .caret,
|
|
|
-.navbar .nav li.dropdown > a:focus .caret {
|
|
|
- border-top-color: @navbarLinkColorHover;
|
|
|
- border-bottom-color: @navbarLinkColorHover;
|
|
|
-}
|
|
|
-
|
|
|
-// Remove background color from open dropdown
|
|
|
-.navbar .nav li.dropdown.open > .dropdown-toggle,
|
|
|
-.navbar .nav li.dropdown.active > .dropdown-toggle,
|
|
|
-.navbar .nav li.dropdown.open.active > .dropdown-toggle {
|
|
|
- background-color: @navbarLinkBackgroundActive;
|
|
|
- color: @navbarLinkColorActive;
|
|
|
-}
|
|
|
-.navbar .nav li.dropdown > .dropdown-toggle .caret {
|
|
|
- border-top-color: @navbarLinkColor;
|
|
|
- border-bottom-color: @navbarLinkColor;
|
|
|
-}
|
|
|
-.navbar .nav li.dropdown.open > .dropdown-toggle .caret,
|
|
|
-.navbar .nav li.dropdown.active > .dropdown-toggle .caret,
|
|
|
-.navbar .nav li.dropdown.open.active > .dropdown-toggle .caret {
|
|
|
- border-top-color: @navbarLinkColorActive;
|
|
|
- border-bottom-color: @navbarLinkColorActive;
|
|
|
-}
|
|
|
-
|
|
|
-// Right aligned menus need alt position
|
|
|
-.navbar .pull-right > li > .dropdown-menu,
|
|
|
-.navbar .nav > li > .dropdown-menu.pull-right {
|
|
|
- left: auto;
|
|
|
- right: 0;
|
|
|
- &:before {
|
|
|
- left: auto;
|
|
|
- right: 12px;
|
|
|
- }
|
|
|
- &:after {
|
|
|
- left: auto;
|
|
|
- right: 13px;
|
|
|
- }
|
|
|
- .dropdown-menu {
|
|
|
- left: auto;
|
|
|
- right: 100%;
|
|
|
- margin-left: 0;
|
|
|
- margin-right: -1px;
|
|
|
- .border-radius(6px 0 6px 6px);
|
|
|
- }
|
|
|
-}
|