_navbar.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. .navbar-brand-btn {
  50. display: block;
  51. position: relative;
  52. float: left;
  53. margin: 0;
  54. border-right: 1px solid $tight-form-border;
  55. background-color: $navbarButtonBackground;
  56. padding: 0.6rem 1.0rem 0.5rem 1rem;
  57. .fa-caret-down {
  58. font-size: 70%;
  59. }
  60. &:hover {
  61. background: $navbarButtonBackgroundHighlight;
  62. }
  63. img {
  64. width: 30px;
  65. position: relative;
  66. top: -2px;
  67. }
  68. .navbar-brand-btn-background {
  69. display: inline-block;
  70. border: 1px solid $body-bg;
  71. padding: 4px;
  72. border-radius: 50%;
  73. background: $iconContainerBackground;
  74. width: 40px;
  75. height: 40px;
  76. }
  77. .icon-gf-grafana_wordmark {
  78. font-size: 21px;
  79. position: relative;
  80. top: 4px;
  81. padding-left: 5px;
  82. display: none;
  83. }
  84. }
  85. .navbar-page-btn {
  86. text-overflow: ellipsis;
  87. overflow: hidden;
  88. white-space: nowrap;
  89. float: left;
  90. display: block;
  91. margin: 0;
  92. font-size: 1.4em;
  93. border-right: 1px solid $tight-form-border;
  94. color: darken($link-color, 5%);
  95. background-color: $navbarButtonBackground;
  96. font-size: $font-size-lg;
  97. padding: 1rem 0.8rem;
  98. &:hover {
  99. background: $navbarButtonBackgroundHighlight;
  100. color: $link-color;
  101. }
  102. .fa-caret-down {
  103. font-size: 60%;
  104. padding-left: 0.2rem;
  105. }
  106. .fa-th-large {
  107. position: relative;
  108. top: 2px;
  109. }
  110. .icon-gf {
  111. position: relative;
  112. top: 2px;
  113. font-size: 20px;
  114. line-height: 8px;
  115. }
  116. }