_navbar.scss 2.9 KB

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