_search.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  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. // .tag-filter {
  39. // .Select-control {
  40. // width: 300px;
  41. // background-color: $navbarBackground;
  42. // }
  43. // }
  44. }
  45. .search-field-spacer {
  46. flex-grow: 1;
  47. }
  48. .search-field-icon {
  49. font-size: $font-size-lg;
  50. padding: 1rem 1rem 0.75rem 1.5rem;
  51. }
  52. .search-dropdown {
  53. display: flex;
  54. flex-direction: row;
  55. height: calc(100% - #{$navbarHeight});
  56. }
  57. .search-dropdown__col_1 {
  58. background: $page-bg;
  59. max-width: 700px;
  60. display: flex;
  61. flex-direction: column;
  62. flex-grow: 1;
  63. }
  64. .search-dropdown__col_2 {
  65. flex-grow: 1;
  66. height: 100%;
  67. padding-top: 16px;
  68. display: flex;
  69. flex-direction: column;
  70. align-items: flex-start;
  71. }
  72. .search-filter-box {
  73. background: $search-filter-box-bg;
  74. border-radius: 2px;
  75. padding: $spacer*1.5;
  76. min-width: 340px;
  77. margin-bottom: $spacer * 1.5;
  78. margin-left: $spacer * 1.5;
  79. }
  80. .search-filter-box__header {
  81. border-bottom: 1px solid $dark-5;
  82. margin-bottom: $spacer * 1.5;
  83. }
  84. .search-filter-box-link {
  85. display: block;
  86. margin-bottom: 16px;
  87. &:last-child {
  88. margin-bottom: 0;
  89. }
  90. i,
  91. img {
  92. font-size: 20px;
  93. margin-right: 5px;
  94. }
  95. }
  96. .search-results-container {
  97. height: 100%;
  98. display: block;
  99. padding: $spacer;
  100. position: relative;
  101. flex-grow: 10;
  102. margin-bottom: 1rem;
  103. .label-tag {
  104. margin-left: 6px;
  105. font-size: 11px;
  106. padding: 2px 6px;
  107. }
  108. .selected {
  109. .search-result-tag {
  110. opacity: 0.7;
  111. color: white;
  112. }
  113. }
  114. }
  115. .search-section {
  116. background: $panel-bg;
  117. border: $panel-border;
  118. padding: 0px 4px 4px 4px;
  119. margin-bottom: 3px;
  120. border-radius: 5px;
  121. }
  122. .search-section__header {
  123. font-size: $font-size-h6;
  124. padding: 7px 4px 3px 0;
  125. color: $text-color-weak;
  126. display: flex;
  127. flex-grow: 1;
  128. &:hover,
  129. &.selected {
  130. color: $text-color;
  131. }
  132. &:hover {
  133. .search-section__header__link {
  134. opacity: 1;
  135. }
  136. }
  137. }
  138. .search-section__header__icon {
  139. padding: 5px 0px;
  140. width: 43px;
  141. text-align: center;
  142. }
  143. .search-section__header__toggle {
  144. padding: 5px;
  145. }
  146. .search-section__header__text {
  147. flex-grow: 1;
  148. line-height: 24px;
  149. }
  150. .search-section__header__link {
  151. padding: 2px 10px 0;
  152. color: $text-muted;
  153. opacity: 0;
  154. transition: opacity 150ms ease-in-out;
  155. }
  156. .search-item {
  157. @include list-item();
  158. display: flex;
  159. flex-grow: 1;
  160. height: 37px;
  161. white-space: nowrap;
  162. padding: 0px;
  163. &:hover,
  164. &.selected {
  165. background: $list-item-hover-bg;
  166. }
  167. }
  168. .search-item__body {
  169. flex: 1 1 auto;
  170. overflow: hidden;
  171. display: flex;
  172. flex-direction: column;
  173. justify-content: center;
  174. padding: 0 10px;
  175. }
  176. .search-item__body-title {
  177. color: $list-item-link-color;
  178. }
  179. .search-item__icon {
  180. padding: 5px;
  181. flex: 0 0 auto;
  182. font-size: 19px;
  183. padding: 5px 2px 5px 10px;
  184. }
  185. .search-item__tags {
  186. padding: 10px;
  187. }
  188. .search-item__actions {
  189. flex: 0 0 auto;
  190. padding: 0 10px 0 0;
  191. }
  192. .search-item__actions__item {
  193. display: inline-block;
  194. opacity: 0;
  195. width: 0;
  196. transition: all 0.2s ease-in-out;
  197. .fa-star,
  198. .fa-star-o {
  199. color: $orange;
  200. line-height: 37px;
  201. }
  202. }
  203. .search-item:hover {
  204. .search-item__actions__item {
  205. width: 15px;
  206. opacity: 1;
  207. }
  208. }
  209. .search-button-row {
  210. text-align: center;
  211. padding: $spacer*2 $spacer;
  212. background: $panel-bg;
  213. }
  214. @include media-breakpoint-down(md) {
  215. .search-dropdown {
  216. flex-direction: column;
  217. }
  218. .search-dropdown__col_1 {
  219. height: 100%;
  220. }
  221. .search-dropdown__col_2 {
  222. max-width: 700px;
  223. flex-direction: row;
  224. margin: 0;
  225. justify-content: space-between;
  226. height: 260px;
  227. }
  228. .search-filter-box {
  229. margin: 0;
  230. }
  231. }
  232. @include media-breakpoint-down(sm) {
  233. .search-dropdown__col_2 {
  234. flex-direction: column;
  235. height: 80%;
  236. justify-content: flex-start;
  237. }
  238. .search-filter-box {
  239. margin-bottom: 1.5rem;
  240. }
  241. }
  242. @include media-breakpoint-down(xs) {
  243. .search-container {
  244. left: 0;
  245. }
  246. .search-dropdown__col_2 {
  247. display: none;
  248. }
  249. .search-item__tags {
  250. display: none;
  251. }
  252. }