_navbar.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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: 20px;
  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. margin: 0 10px 0 0;
  19. }
  20. .nav {
  21. display: block;
  22. }
  23. .navbar .nav.pull-right {
  24. float: right; // redeclare due to specificity
  25. margin-right: 0; // remove margin on float right nav
  26. }
  27. .navbar .nav > li {
  28. float: left;
  29. }
  30. // Links
  31. .navbar .nav > li > a {
  32. float: none;
  33. padding: 17px 13px 13px;
  34. color: $navbarLinkColor;
  35. text-decoration: none;
  36. .fa { font-size: 115%; }
  37. }
  38. // Hover/focus
  39. .navbar .nav > li > a:focus,
  40. .navbar .nav > li > a:hover {
  41. background-color: $navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover/:focus from .active
  42. color: $navbarLinkColorHover;
  43. text-decoration: none;
  44. }
  45. // Active nav items
  46. .navbar .nav > .active > a,
  47. .navbar .nav > .active > a:hover,
  48. .navbar .nav > .active > a:focus {
  49. color: $navbarLinkColorActive;
  50. text-decoration: none;
  51. background-color: $navbarLinkBackgroundActive;
  52. }
  53. .fa.top-nav-breadcrumb-icon {
  54. margin: 18px 0 6px 5px;
  55. float: left;
  56. font-size: 120%;
  57. color: $text-color;
  58. }
  59. .top-nav-btn {
  60. display: block;
  61. position: relative;
  62. float: left;
  63. margin: 0;
  64. font-size: 1.4em;
  65. border-right: 1px solid $tight-form-border;
  66. .fa-caret-down {
  67. font-size: 55%;
  68. position: absolute;
  69. right: 8px;
  70. top: 23px;
  71. margin-right: 2px;
  72. }
  73. a {
  74. color: darken($link-color, 5%);
  75. background-color: $navbarButtonBackground;
  76. display: inline-block;
  77. &:hover {
  78. background: $navbarButtonBackgroundHighlight;
  79. color: $link-color;
  80. // border-bottom: 1px solid $blue;
  81. }
  82. }
  83. }
  84. .top-nav-menu-btn {
  85. a {
  86. padding: 7px 20px 6px 13px;
  87. }
  88. img {
  89. width: 30px;
  90. position: relative;
  91. top: -2px;
  92. }
  93. .top-nav-logo-background {
  94. display: inline-block;
  95. border: 1px solid $body-bg;
  96. padding: 4px;
  97. border-radius: 50%;
  98. background: $iconContainerBackground;
  99. width: 40px;
  100. height: 40px;
  101. }
  102. .icon-gf-grafana_wordmark {
  103. font-size: 21px;
  104. position: relative;
  105. top: 4px;
  106. padding-left: 5px;
  107. display: none;
  108. }
  109. }
  110. .dashnav-dashboards-btn {
  111. a {
  112. text-overflow: ellipsis;
  113. overflow: hidden;
  114. white-space: nowrap;
  115. display: block;
  116. padding: 11px 17px 12px 13px;
  117. }
  118. .fa-th-large {
  119. position: relative;
  120. top: 2px;
  121. }
  122. .icon-gf {
  123. position: relative;
  124. top: 2px;
  125. font-size: 20px;
  126. line-height: 8px;
  127. }
  128. }
  129. .dashboard-title {
  130. padding: 0px 6px 5px 5px;
  131. font-size: 17px;
  132. }
  133. .top-nav-icon {
  134. margin: 5px 0px 0 11px;
  135. line-height: 41px;
  136. float: left;
  137. }
  138. .top-nav-section {
  139. display: block;
  140. float: left;
  141. padding: 19px 9px 8px 0;
  142. font-weight: bold;
  143. i {
  144. padding-left: 8px;
  145. }
  146. }
  147. .top-nav-title {
  148. display: block;
  149. float: left;
  150. font-size: 17px;
  151. padding: 18px 10px 10px 13px;
  152. color: $link-color;
  153. }