_search.scss 3.9 KB

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