_navbar.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. .navbar {
  2. display: block;
  3. overflow: visible;
  4. position: relative;
  5. z-index: 110;
  6. }
  7. .navbar-inner {
  8. min-height: $navbarHeight;
  9. padding-right: $spacer;
  10. background-color: $navbarBackground;
  11. border-bottom: $navbarBorder;
  12. @include clearfix();
  13. }
  14. .navbar .nav {
  15. position: relative;
  16. left: 0;
  17. float: left;
  18. }
  19. .navbar .nav.pull-right {
  20. float: right; // redeclare due to specificity
  21. margin-right: 0; // remove margin on float right nav
  22. }
  23. .navbar .nav > li {
  24. float: left;
  25. }
  26. // Links
  27. .navbar .nav > li > a {
  28. float: none;
  29. padding: 17px 13px 13px;
  30. color: $navbarLinkColor;
  31. text-decoration: none;
  32. .fa { font-size: 115%; }
  33. }
  34. // Hover/focus
  35. .navbar .nav > li > a:focus,
  36. .navbar .nav > li > a:hover {
  37. color: $navbarLinkColorHover;
  38. text-decoration: none;
  39. }
  40. // Active nav items
  41. .navbar .nav > .active > a,
  42. .navbar .nav > .active > a:hover,
  43. .navbar .nav > .active > a:focus {
  44. color: $navbarLinkColorActive;
  45. text-decoration: none;
  46. background-color: $navbarLinkBackgroundActive;
  47. }
  48. .navbar-brand-btn {
  49. display: block;
  50. position: relative;
  51. float: left;
  52. margin: 0;
  53. border-right: 1px solid $tight-form-border;
  54. background-color: $navbarButtonBackground;
  55. padding: 0.4rem 1.0rem 0.4rem 1rem;
  56. min-height: $navbarHeight;
  57. .fa-caret-down {
  58. font-size: 70%;
  59. }
  60. .fa-chevron-left{
  61. display: none;
  62. }
  63. &:hover {
  64. background: $navbarButtonBackgroundHighlight;
  65. }
  66. img {
  67. width: 30px;
  68. position: relative;
  69. top: -1px;
  70. }
  71. .navbar-brand-btn-background {
  72. display: inline-block;
  73. border: 1px solid $body-bg;
  74. padding: 4px;
  75. border-radius: 50%;
  76. background: $iconContainerBackground;
  77. width: 40px;
  78. height: 40px;
  79. }
  80. .icon-gf-grafana_wordmark {
  81. font-size: 21px;
  82. position: relative;
  83. top: 6px;
  84. padding-left: 5px;
  85. display: none;
  86. }
  87. }
  88. .navbar-page-btn {
  89. text-overflow: ellipsis;
  90. overflow: hidden;
  91. white-space: nowrap;
  92. float: left;
  93. display: block;
  94. margin: 0;
  95. font-size: 1.4rem;
  96. border-right: 1px solid $tight-form-border;
  97. color: darken($link-color, 5%);
  98. background-color: $navbarButtonBackground;
  99. font-size: $font-size-lg;
  100. padding: 1rem 1rem 0.75rem 1rem;
  101. min-height: $navbarHeight;
  102. &:hover, &.active {
  103. background: $navbarButtonBackgroundHighlight;
  104. }
  105. .fa-caret-down {
  106. font-size: 60%;
  107. padding-left: 0.2rem;
  108. }
  109. .icon-gf {
  110. position: relative;
  111. top: 2px;
  112. font-size: 20px;
  113. line-height: 8px;
  114. }
  115. > img {
  116. max-width: 27px;
  117. max-height: 27px;
  118. }
  119. &--search {
  120. padding: 1rem 1.5rem 0.75rem 1.5rem;
  121. }
  122. }
  123. .navbar-page-btn-wrapper {
  124. display: inline-block;
  125. position: relative;
  126. }
  127. .dropdown-menu.dropdown-menu--navbar {
  128. top: 100%;
  129. min-width: 100%;
  130. margin-top: 0px;
  131. li a {
  132. padding: $spacer/2 $spacer;
  133. border-left: 2px solid $side-menu-bg;
  134. background: $side-menu-bg;
  135. i {
  136. display: inline-block;
  137. padding-right: 21px;
  138. }
  139. &:hover {
  140. @include left-brand-border-gradient();
  141. color: $link-hover-color;
  142. background: $input-label-bg;
  143. }
  144. }
  145. }
  146. .sidemenu-pinned {
  147. .navbar-brand-btn {
  148. width: $side-menu-width;
  149. .icon-gf-grafana_wordmark {
  150. display: inline-block;
  151. }
  152. .fa-caret-down {
  153. display: none;
  154. }
  155. &:hover .fa-chevron-left {
  156. display: inline-block;
  157. color: $text-color-weak;
  158. position: relative;
  159. left: 1.3rem;
  160. }
  161. }
  162. }
  163. .navbar-section-wrapper {
  164. position: relative;
  165. float: left;
  166. }