_navbar.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. .navbar {
  2. position: relative;
  3. padding-left: $side-menu-width;
  4. // box-shadow: $navbarShadow;
  5. z-index: $zindex-navbar-fixed;
  6. // background: $navbarBackground;
  7. height: $navbarHeight;
  8. padding-right: $spacer;
  9. display: flex;
  10. flex-grow: 1;
  11. border-bottom: 1px solid transparent;
  12. transition: all 300ms ease-in-out;
  13. }
  14. .dashboard-page--settings-open {
  15. .navbar {
  16. background: $page-header-bg;
  17. box-shadow: $search-shadow;
  18. border-bottom: $navbarBorder;
  19. }
  20. .navbar-buttons--actions,
  21. .navbar-page-btn .fa-caret-down,
  22. .gf-timepicker-nav {
  23. display: none;
  24. }
  25. .navbar-buttons--close {
  26. display: flex;
  27. }
  28. }
  29. .sidemenu-open {
  30. .navbar {
  31. padding-left: 15px;
  32. }
  33. }
  34. .navbar-page-btn {
  35. text-overflow: ellipsis;
  36. overflow: hidden;
  37. white-space: nowrap;
  38. display: block;
  39. margin: 0;
  40. color: darken($link-color, 5%);
  41. font-size: $font-size-lg;
  42. padding-left: 1rem;
  43. min-height: $navbarHeight;
  44. line-height: $navbarHeight;
  45. .fa-caret-down {
  46. font-size: 60%;
  47. padding-left: 0.2rem;
  48. }
  49. &--search {
  50. padding: 1rem 1.5rem 0.75rem 1.5rem;
  51. }
  52. .gicon {
  53. position: relative;
  54. top: -1px;
  55. font-size: 19px;
  56. line-height: 8px;
  57. opacity: 0.75;
  58. margin-right: 8px;
  59. }
  60. }
  61. .navbar-page-btn-wrapper {
  62. display: inline-block;
  63. position: relative;
  64. }
  65. .navbar-section-wrapper {
  66. position: relative;
  67. float: left;
  68. }
  69. .navbar-mini-btn-wrapper {
  70. padding: 15px;
  71. }
  72. .navbar-buttons {
  73. height: $navbarHeight;
  74. display: flex;
  75. align-items: center;
  76. justify-content: flex-end;
  77. margin-right: $spacer;
  78. &--close {
  79. display: none;
  80. }
  81. }
  82. .navbar__spacer {
  83. flex-grow: 1;
  84. }
  85. .navbar-button {
  86. @include buttonBackground($btn-inverse-bg, $btn-inverse-bg-hl, $btn-inverse-text-color, $btn-inverse-text-shadow);
  87. display: inline-block;
  88. font-weight: $btn-font-weight;
  89. padding: 6px 11px;
  90. line-height: 16px;
  91. color: $text-muted;
  92. border: 1px solid $navbar-button-border;
  93. margin-right: 3px;
  94. white-space: nowrap;
  95. .gicon {
  96. font-size: 16px;
  97. }
  98. .fa {
  99. font-size: 16px;
  100. }
  101. &--add-panel {
  102. padding: 3px 10px;
  103. .gicon {
  104. font-size: 22px;
  105. }
  106. }
  107. &--tight {
  108. padding: 7px 4px;
  109. .fa {
  110. font-size: 14px;
  111. position: relative;
  112. top: 2px;
  113. }
  114. }
  115. &--primary {
  116. @include buttonBackground($btn-secondary-bg, $btn-secondary-bg-hl);
  117. }
  118. }