_navbar.scss 2.4 KB

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