_search.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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-filter-box-link {
  76. display: block;
  77. margin-bottom: 16px;
  78. &:last-child {
  79. margin-bottom: 0;
  80. }
  81. i,
  82. img {
  83. font-size: 20px;
  84. margin-right: 5px;
  85. }
  86. }
  87. .search-results-container {
  88. height: 100%;
  89. display: block;
  90. padding: $spacer;
  91. position: relative;
  92. flex-grow: 10;
  93. margin-bottom: 1rem;
  94. .label-tag {
  95. margin-left: 6px;
  96. font-size: 11px;
  97. padding: 2px 6px;
  98. }
  99. .selected {
  100. .search-result-tag {
  101. opacity: 0.7;
  102. color: white;
  103. }
  104. }
  105. }
  106. .search-section {
  107. background: $panel-bg;
  108. border: $panel-border;
  109. padding: 0px 4px 4px 4px;
  110. margin-bottom: 3px;
  111. border-radius: 5px;
  112. }
  113. .search-section__header {
  114. font-size: $font-size-h6;
  115. padding: 7px 4px 3px 0;
  116. color: $text-color-weak;
  117. display: flex;
  118. flex-grow: 1;
  119. &:hover,
  120. &.selected {
  121. color: $text-color;
  122. }
  123. &:hover {
  124. .search-section__header__link {
  125. opacity: 1;
  126. }
  127. }
  128. }
  129. .search-section__header__icon {
  130. padding: 5px 0px;
  131. width: 43px;
  132. text-align: center;
  133. }
  134. .search-section__header__toggle {
  135. padding: 5px;
  136. }
  137. .search-section__header__text {
  138. flex-grow: 1;
  139. line-height: 24px;
  140. }
  141. .search-section__header__link {
  142. padding: 2px 10px 0;
  143. color: $text-muted;
  144. opacity: 0;
  145. transition: opacity 150ms ease-in-out;
  146. }
  147. .search-item {
  148. @include list-item();
  149. display: flex;
  150. flex-grow: 1;
  151. height: 37px;
  152. white-space: nowrap;
  153. padding: 0px;
  154. &:hover,
  155. &.selected {
  156. background: $list-item-hover-bg;
  157. }
  158. }
  159. .search-item__body {
  160. flex: 1 1 auto;
  161. overflow: hidden;
  162. display: flex;
  163. flex-direction: column;
  164. justify-content: center;
  165. padding: 0 10px;
  166. }
  167. .search-item__body-title {
  168. color: $list-item-link-color;
  169. }
  170. .search-item__icon {
  171. padding: 5px;
  172. flex: 0 0 auto;
  173. font-size: 19px;
  174. padding: 5px 2px 5px 10px;
  175. }
  176. .search-item__tags {
  177. padding: 10px;
  178. }
  179. .search-item__actions {
  180. flex: 0 0 auto;
  181. padding: 0 10px 0 0;
  182. }
  183. .search-item__actions__item {
  184. display: inline-block;
  185. opacity: 0;
  186. width: 0;
  187. transition: all 0.2s ease-in-out;
  188. .fa-star,
  189. .fa-star-o {
  190. color: $orange;
  191. line-height: 37px;
  192. }
  193. }
  194. .search-item:hover {
  195. .search-item__actions__item {
  196. width: 15px;
  197. opacity: 1;
  198. }
  199. }
  200. .search-button-row {
  201. text-align: center;
  202. padding: $spacer*2 $spacer;
  203. background: $panel-bg;
  204. }
  205. @include media-breakpoint-down(xs) {
  206. .search-container {
  207. left: 0;
  208. }
  209. .search-dropdown__col_2 {
  210. display: none;
  211. }
  212. .search-item__tags {
  213. display: none;
  214. }
  215. }