_search.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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 {
  108. color: $text-color-weak;
  109. .search-section__header__toggle {
  110. background: $tight-form-func-bg;
  111. color: $link-hover-color;
  112. }
  113. }
  114. }
  115. .search-section__header__with-checkbox {
  116. display: flex;
  117. }
  118. .search-section__header__icon {
  119. padding: 5px 10px;
  120. }
  121. .search-section__header__toggle {
  122. padding: 5px;
  123. }
  124. .search-section__header__text {
  125. flex-grow: 1;
  126. }
  127. .search-item__with-checkbox {
  128. display: flex;
  129. .search-item {
  130. margin: 1px 3px;
  131. }
  132. }
  133. .search-item {
  134. @include list-item();
  135. @include left-brand-border();
  136. display: flex;
  137. flex-grow: 1;
  138. height: 37px;
  139. white-space: nowrap;
  140. padding: 0px;
  141. &:hover {
  142. @include left-brand-border-gradient();
  143. }
  144. &.selected {
  145. background: $list-item-hover-bg;
  146. }
  147. }
  148. .search-item__body {
  149. flex: 1 1 auto;
  150. overflow: hidden;
  151. display: flex;
  152. flex-direction: column;
  153. justify-content: center;
  154. padding: 0 10px;
  155. }
  156. .search-item__body-title {
  157. color: $list-item-link-color;
  158. }
  159. .search-item__body-sub-title {
  160. color: $text-muted;
  161. font-size: $font-size-sm;
  162. line-height: 9pt;
  163. }
  164. .search-item__icon {
  165. padding: 5px;
  166. flex: 0 0 auto;
  167. font-size: 19px;
  168. padding: 5px 2px 5px 10px;
  169. }
  170. .search-item__tags {
  171. padding: 10px;
  172. }
  173. .search-item__actions {
  174. flex: 0 0 auto;
  175. padding: 0 10px 0 0;
  176. }
  177. .search-item__actions__item {
  178. display: inline-block;
  179. opacity: 0;
  180. width: 0;
  181. transition: all 0.2s ease-in-out;
  182. .fa-star, .fa-star-o {
  183. color: $orange;
  184. line-height: 37px;
  185. }
  186. }
  187. .search-item:hover {
  188. .search-item__actions__item {
  189. width: 15px;
  190. opacity: 1;
  191. }
  192. }
  193. .search-button-row {
  194. text-align: center;
  195. padding: $spacer*2 $spacer;
  196. background: $panel-bg;
  197. }