_search.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. .search-backdrop {
  2. position: fixed;
  3. right: 0;
  4. left: 0;
  5. bottom: 0;
  6. top: $navbarHeight;
  7. z-index: $zindex-modal-backdrop;
  8. background-color: $black;
  9. @include opacity(70);
  10. }
  11. .search-container {
  12. left: $side-menu-width;
  13. top: 0;
  14. right: 0;
  15. bottom: 0;
  16. z-index: ($zindex-modal-backdrop + 10);
  17. position: fixed;
  18. .label-tag {
  19. margin-left: 6px;
  20. font-size: 11px;
  21. padding: 2px 6px;
  22. }
  23. }
  24. // Search
  25. .search-field-wrapper {
  26. width: 100%;
  27. display: flex;
  28. background-color: $navbarButtonBackground;
  29. input {
  30. max-width: 653px;
  31. //padding: 0.5rem 1.5rem 0.5rem 0;
  32. padding: 1rem 1rem 0.75rem 1rem;
  33. height: 51px;
  34. line-height: 51px;
  35. box-sizing: border-box;
  36. outline: none;
  37. background: $side-menu-bg;
  38. background-color: $navbarButtonBackground;
  39. flex-grow: 10;
  40. }
  41. }
  42. .search-field-spacer {
  43. flex-grow: 1;
  44. }
  45. .search-switches {
  46. flex-grow: 1;
  47. padding: 1rem 1rem 0.75rem 1rem;
  48. white-space: nowrap;
  49. }
  50. .search-field-icon {
  51. font-size: $font-size-lg;
  52. padding: 1rem 1rem 0.75rem 1.5rem;
  53. }
  54. .search-dropdown {
  55. display: flex;
  56. flex-direction: column;
  57. max-width: 800px;
  58. visibility: none;
  59. opacity: 0;
  60. background: $panel-bg;
  61. height: calc(100% - #{$navbarHeight});
  62. &--fade-in {
  63. visibility: visible;
  64. opacity: 1;
  65. transition: opacity 0.3s;
  66. }
  67. }
  68. .search-results-container {
  69. height: 100%;
  70. display: block;
  71. padding: $spacer;
  72. flex-grow: 10;
  73. .selected {
  74. .search-result-tag {
  75. opacity: 0.70;
  76. color: white;
  77. }
  78. }
  79. }
  80. .search-section__header {
  81. font-size: $font-size-h6;
  82. padding: 0.6rem 0;
  83. color: $text-color-weak;
  84. display: flex;
  85. &:hover {
  86. color: $text-color-weak;
  87. .search-section__header__toggle {
  88. background: $tight-form-func-bg;
  89. color: $link-hover-color;
  90. }
  91. }
  92. }
  93. .search-section__header__icon {
  94. padding: 3px 10px;
  95. }
  96. .search-section__header__toggle {
  97. padding: 5px;
  98. }
  99. .search-section__header__text {
  100. flex-grow: 1;
  101. }
  102. .search-item {
  103. display: flex;
  104. height: 37px;
  105. padding: 0px;
  106. white-space: nowrap;
  107. background-color: $tight-form-bg;
  108. margin-bottom: 4px;
  109. @include left-brand-border();
  110. &:hover {
  111. @include left-brand-border-gradient();
  112. background-color: $tight-form-func-bg;
  113. }
  114. &.selected {
  115. background-color: $tight-form-func-bg;
  116. }
  117. // .fa-star, .fa-star-o {
  118. // padding-left: 13px;
  119. // }
  120. //
  121. // .fa-star {
  122. // color: $orange;
  123. // }
  124. }
  125. .search-item__body {
  126. flex: 1 1 auto;
  127. overflow: hidden;
  128. display: flex;
  129. flex-direction: column;
  130. justify-content: center;
  131. padding: 0 10px;
  132. }
  133. .search-item__body-title {
  134. color: $grafanaListMainLinkColor;
  135. }
  136. .search-item__body-sub-title {
  137. color: $grafanaListMainLinkColor;
  138. color: $text-muted;
  139. font-size: $font-size-sm;
  140. line-height: 9pt;
  141. }
  142. .search-item__icon {
  143. padding: 5px;
  144. flex: 0 0 auto;
  145. font-size: 19px;
  146. padding: 5px 2px 5px 10px;
  147. }
  148. .search-item__tags {
  149. padding: 8px;
  150. }
  151. .search-item__actions {
  152. visibility: hidden;
  153. }
  154. .search-button-row {
  155. text-align: center;
  156. padding: $spacer*2 $spacer;
  157. }