_navbar.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. .navbar {
  2. position: relative;
  3. z-index: $zindex-navbar-fixed;
  4. height: $navbarHeight;
  5. padding: 0 20px 0 50px;
  6. display: flex;
  7. flex-grow: 1;
  8. border-bottom: 1px solid transparent;
  9. transition-duration: 350ms;
  10. transition-timing-function: ease-in-out;
  11. transition-property: box-shadow, border-bottom;
  12. }
  13. @mixin navbar-alt-look() {
  14. background: $page-header-bg;
  15. box-shadow: $search-shadow;
  16. border-bottom: $navbarBorder;
  17. }
  18. .dashboard-page--settings-open {
  19. .navbar {
  20. @include navbar-alt-look();
  21. }
  22. .navbar-buttons--tv,
  23. .navbar-button--add-panel,
  24. .navbar-button--star,
  25. .navbar-button--save,
  26. .navbar-button--share,
  27. .navbar-button--settings,
  28. .navbar-page-btn .fa-caret-down,
  29. .refresh-picker,
  30. .gf-timepicker-nav {
  31. display: none;
  32. }
  33. .navbar-buttons--close {
  34. display: flex;
  35. }
  36. }
  37. .panel-in-fullscreen {
  38. .navbar {
  39. padding-left: 20px;
  40. }
  41. .navbar-button--add-panel,
  42. .navbar-button--star,
  43. .navbar-button--tv {
  44. display: none;
  45. }
  46. }
  47. .navbar-page-btn {
  48. text-overflow: ellipsis;
  49. overflow: hidden;
  50. white-space: nowrap;
  51. display: block;
  52. margin: 0;
  53. color: $headings-color;
  54. font-size: $font-size-lg;
  55. min-height: $navbarHeight;
  56. line-height: $navbarHeight;
  57. .fa-caret-down {
  58. font-size: 60%;
  59. padding-left: 6px;
  60. }
  61. .gicon {
  62. top: -2px;
  63. position: relative;
  64. font-size: 17px;
  65. line-height: 8px;
  66. opacity: 0.75;
  67. margin-right: 10px;
  68. display: none;
  69. }
  70. &--folder {
  71. color: $text-color-weak;
  72. @include media-breakpoint-down(md) {
  73. display: none;
  74. }
  75. }
  76. }
  77. .navbar-buttons {
  78. // height: $navbarHeight;
  79. display: flex;
  80. align-items: center;
  81. justify-content: flex-end;
  82. margin-left: 10px;
  83. &--close {
  84. display: none;
  85. margin-right: 0;
  86. }
  87. &--zoom {
  88. margin-right: 0;
  89. }
  90. }
  91. .navbar__spacer {
  92. flex-grow: 1;
  93. }
  94. .navbar-button {
  95. @include buttonBackground($btn-inverse-bg, $btn-inverse-bg-hl, $btn-inverse-text-color, $btn-inverse-text-shadow);
  96. display: flex;
  97. align-items: center;
  98. font-weight: $btn-font-weight;
  99. padding: 6px $space-sm;
  100. line-height: 16px;
  101. color: $text-muted;
  102. border: 1px solid $navbar-button-border;
  103. margin-left: $space-xs;
  104. white-space: nowrap;
  105. .gicon {
  106. font-size: 16px;
  107. }
  108. .fa {
  109. font-size: 16px;
  110. }
  111. &--add-panel {
  112. padding: 2px 10px;
  113. .gicon {
  114. font-size: 22px;
  115. }
  116. }
  117. &--refresh {
  118. padding-left: 8px;
  119. padding-right: 8px;
  120. }
  121. &--attached {
  122. margin-left: 0;
  123. border-radius: 0 2px 2px 0;
  124. }
  125. &--settings {
  126. .gicon {
  127. filter: $navbar-btn-gicon-brightness;
  128. }
  129. &:hover {
  130. .gicon {
  131. filter: brightness(0.8);
  132. }
  133. }
  134. }
  135. &--tight {
  136. padding: 7px 4px;
  137. .fa {
  138. font-size: 14px;
  139. position: relative;
  140. top: 1px;
  141. }
  142. }
  143. &--secondary {
  144. @include buttonBackground($btn-secondary-bg, $btn-secondary-bg-hl);
  145. }
  146. }
  147. @include media-breakpoint-up(sm) {
  148. .navbar {
  149. padding-left: 20px;
  150. margin-left: 0;
  151. }
  152. .navbar-page-btn {
  153. .gicon {
  154. display: inline-block;
  155. }
  156. }
  157. }
  158. .navbar-edit {
  159. display: flex;
  160. height: $navbarHeight;
  161. align-items: center;
  162. padding-right: 13px;
  163. }
  164. .navbar-edit__back-btn {
  165. background: transparent;
  166. border: 2px solid $text-color;
  167. border-radius: 50%;
  168. width: 34px;
  169. height: 34px;
  170. transition: transform 0.1s ease 0.1s;
  171. color: $text-color;
  172. i {
  173. font-size: $font-size-lg;
  174. position: relative;
  175. top: 2px;
  176. }
  177. &:hover {
  178. color: $text-color-strong;
  179. border-color: $text-color-strong;
  180. }
  181. }
  182. .navbar-settings-title {
  183. display: block;
  184. margin: 0;
  185. color: $headings-color;
  186. font-size: $font-size-lg;
  187. min-height: $navbarHeight;
  188. line-height: $navbarHeight;
  189. }