_search.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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(75);
  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. }
  19. // Search
  20. .search-field-wrapper {
  21. width: 100%;
  22. display: flex;
  23. background-color: $navbarBackground;
  24. box-shadow: $navbarShadow;
  25. position: relative;
  26. input {
  27. max-width: 653px;
  28. //padding: 0.5rem 1.5rem 0.5rem 0;
  29. padding: 1rem 1rem 0.75rem 1rem;
  30. height: 51px;
  31. line-height: 51px;
  32. box-sizing: border-box;
  33. outline: none;
  34. background: $side-menu-bg;
  35. background-color: $navbarButtonBackground;
  36. flex-grow: 10;
  37. }
  38. }
  39. .search-field-spacer {
  40. flex-grow: 1;
  41. }
  42. .search-field-icon {
  43. font-size: $font-size-lg;
  44. padding: 1rem 1rem 0.75rem 1.5rem;
  45. }
  46. .search-dropdown {
  47. display: flex;
  48. flex-direction: row;
  49. height: calc(100% - #{$navbarHeight});
  50. }
  51. .search-dropdown__col_1 {
  52. background: $page-bg;
  53. max-width: 700px;
  54. display: flex;
  55. flex-direction: column;
  56. flex-grow: 1;
  57. }
  58. .search-dropdown__col_2 {
  59. flex-grow: 1;
  60. height: 100%;
  61. padding-top: 16px;
  62. }
  63. .search-filter-box {
  64. background: $search-filter-box-bg;
  65. border-radius: 2px;
  66. padding: $spacer*1.5;
  67. max-width: 340px;
  68. margin-bottom: $spacer * 1.5;
  69. margin-left: $spacer * 1.5;
  70. }
  71. .search-filter-box__header {
  72. border-bottom: 1px solid $dark-5;
  73. margin-bottom: $spacer * 1.5;
  74. }
  75. .search-results-container {
  76. height: 100%;
  77. display: block;
  78. padding: $spacer;
  79. position: relative;
  80. flex-grow: 10;
  81. margin-bottom: 1rem;
  82. .label-tag {
  83. margin-left: 6px;
  84. font-size: 11px;
  85. padding: 2px 6px;
  86. }
  87. .selected {
  88. .search-result-tag {
  89. opacity: 0.70;
  90. color: white;
  91. }
  92. }
  93. }
  94. .search-section {
  95. background: $panel-bg;
  96. border: $panel-border;
  97. padding: $panel-padding;
  98. margin-bottom: 3px;
  99. border-radius: 5px;
  100. }
  101. .search-section__header {
  102. font-size: $font-size-h6;
  103. padding: 8px 0 2px 0;
  104. color: $text-color-weak;
  105. display: flex;
  106. flex-grow: 1;
  107. &:hover, &.selected {
  108. color: $link-hover-color;
  109. .search-section__header__toggle {
  110. background: $tight-form-func-bg;
  111. color: $link-hover-color;
  112. }
  113. }
  114. }
  115. .search-section__header__icon {
  116. padding: 2px 10px;
  117. width: 35px;
  118. }
  119. .search-section__header__toggle {
  120. padding: 5px;
  121. }
  122. .search-section__header__text {
  123. flex-grow: 1;
  124. }
  125. .search-item {
  126. @include list-item();
  127. @include left-brand-border();
  128. display: flex;
  129. flex-grow: 1;
  130. height: 37px;
  131. white-space: nowrap;
  132. padding: 0px;
  133. &:hover, &.selected {
  134. @include left-brand-border-gradient();
  135. background: $list-item-hover-bg;
  136. }
  137. }
  138. .search-item__body {
  139. flex: 1 1 auto;
  140. overflow: hidden;
  141. display: flex;
  142. flex-direction: column;
  143. justify-content: center;
  144. padding: 0 10px;
  145. }
  146. .search-item__body-title {
  147. color: $list-item-link-color;
  148. }
  149. .search-item__body-sub-title {
  150. color: $text-muted;
  151. font-size: $font-size-sm;
  152. line-height: 9pt;
  153. }
  154. .search-item__icon {
  155. padding: 5px;
  156. flex: 0 0 auto;
  157. font-size: 19px;
  158. padding: 5px 2px 5px 10px;
  159. }
  160. .search-item__tags {
  161. padding: 10px;
  162. }
  163. .search-item__actions {
  164. flex: 0 0 auto;
  165. padding: 0 10px 0 0;
  166. }
  167. .search-item__actions__item {
  168. display: inline-block;
  169. opacity: 0;
  170. width: 0;
  171. transition: all 0.2s ease-in-out;
  172. .fa-star, .fa-star-o {
  173. color: $orange;
  174. line-height: 37px;
  175. }
  176. }
  177. .search-item:hover {
  178. .search-item__actions__item {
  179. width: 15px;
  180. opacity: 1;
  181. }
  182. }
  183. .search-button-row {
  184. text-align: center;
  185. padding: $spacer*2 $spacer;
  186. background: $panel-bg;
  187. }