search.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. /*=========================================================================================
  2. File Name: search.scss
  3. Description: Search functionality.
  4. ----------------------------------------------------------------------------------------
  5. Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template
  6. Author: PIXINVENT
  7. Author URL: http://www.themeforest.net/user/pixinvent
  8. ==========================================================================================*/
  9. .navbar-container {
  10. a.nav-link-search {
  11. float: left;
  12. }
  13. .search-input {
  14. float: left;
  15. // padding-top: 1.2rem;
  16. width: 0;
  17. // select{
  18. input {
  19. width: 0;
  20. border: none;
  21. background: none;
  22. transition: all 0.2s ease-out;
  23. line-height: 16px;
  24. padding: 1.6rem 3.6rem;
  25. }
  26. &.open {
  27. position: absolute;
  28. left: 0;
  29. // padding: 1.6rem;
  30. background: #fff;
  31. right: 0;
  32. width: 100%;
  33. z-index: 1000;
  34. border-radius: 0.5rem;
  35. .search-input-close,
  36. .search-input-icon {
  37. display: block;
  38. }
  39. // select{
  40. input {
  41. width: 100%;
  42. // padding-right:2rem;
  43. outline: none;
  44. background: none;
  45. transition: all 0.3s ease-out;
  46. }
  47. }
  48. .search-list {
  49. max-height: 450px;
  50. height: calc(100vh - 11rem);
  51. position: absolute;
  52. top: 100%;
  53. left: 0;
  54. background: $white;
  55. width: 100%;
  56. margin-top: .5rem;
  57. padding-left: 0;
  58. border-radius: $border-radius;
  59. display: none;
  60. .avatar{
  61. margin-left: 0;
  62. }
  63. &.search-list-bookmark {
  64. height: auto !important;
  65. }
  66. &.show {
  67. display: block;
  68. }
  69. li {
  70. a {
  71. padding: .9rem 1rem;
  72. color: $body-color;
  73. span[class*="feather icon-"] {
  74. font-size: 1.25rem;
  75. }
  76. }
  77. &:first-child {
  78. border-top-left-radius: $border-radius;
  79. border-top-right-radius: $border-radius;
  80. }
  81. &:last-child {
  82. border-bottom-left-radius: $border-radius;
  83. border-bottom-right-radius: $border-radius;
  84. }
  85. &.auto-suggestion {
  86. &:hover,
  87. &.current_item {
  88. background-color: #f1f1f1;
  89. }
  90. }
  91. }
  92. }
  93. .search-input-icon {
  94. z-index: 2;
  95. display: none;
  96. position: absolute;
  97. left: 1.5rem;
  98. top: 37%;
  99. cursor: pointer;
  100. i {
  101. font-size: 1.25rem
  102. }
  103. }
  104. .search-input-close {
  105. z-index: 1;
  106. display: none;
  107. position: absolute;
  108. right: 2rem;
  109. top: 32%;
  110. cursor: pointer;
  111. i {
  112. font-size: 1.75rem
  113. }
  114. }
  115. }
  116. .bookmark-input {
  117. position: absolute;
  118. top: 102%;
  119. width: 25%;
  120. display: none;
  121. &.show {
  122. display: block;
  123. }
  124. .bookmark-input-icon {
  125. position: absolute;
  126. z-index: 1;
  127. top: .85rem;
  128. left: 1rem;
  129. }
  130. input {
  131. padding: .7rem .7rem .7rem 2.5rem;
  132. width: 100%;
  133. background: $white;
  134. border: 1px solid rgba($pure_black, 0.2);
  135. &:focus {
  136. border: 1px solid $primary;
  137. }
  138. }
  139. .search-list {
  140. box-shadow: 0 15px 30px 0 rgba($pure_black, .11), 0 5px 15px 0 rgba($pure_black, .08);
  141. }
  142. }
  143. .bookmark-icon {
  144. cursor: pointer;
  145. }
  146. .dropdown.bookmark-dropdown {
  147. padding: 1.4rem 0.5rem 1.35rem;
  148. .dropdown-toggle:after {
  149. display: none;
  150. }
  151. }
  152. .search-data-title {
  153. line-height: 1.25rem;
  154. }
  155. }
  156. .navbar-dark,
  157. .navbar-semi-light {
  158. .search-input {
  159. .input {
  160. color: #F5F7FA;
  161. border-radius: .5rem;
  162. }
  163. &.open {
  164. .input {
  165. color: #F5F7FA;
  166. border: 1px solid #F5F7FA;
  167. }
  168. }
  169. }
  170. }
  171. // navbar-sticky
  172. body {
  173. &.navbar-static {
  174. .navbar-container {
  175. .search-input {
  176. &.open {
  177. border-radius: 0;
  178. }
  179. }
  180. }
  181. }
  182. }