_search.scss 4.3 KB

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