frontend.css 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. .fl-search-form {
  2. position: relative;
  3. }
  4. .fl-search-form-wrap {
  5. display: inline-flex;
  6. max-width: 100%;
  7. align-items: center;
  8. position: relative;
  9. }
  10. .fl-search-form-fields {
  11. flex-basis: 100%;
  12. }
  13. .fl-search-form .fl-form-field input,
  14. .fl-search-form .fl-form-field input[type=search] {
  15. height: auto;
  16. width: 100%;
  17. }
  18. /* Selected Layouts */
  19. .fl-search-button-expand .fl-search-form-fields,
  20. .fl-search-form-inline .fl-search-form-fields {
  21. align-items: center;
  22. display: inline-flex;
  23. flex-wrap: nowrap;
  24. max-width: 100%;
  25. }
  26. /* Form layout */
  27. .fl-search-form-width-full .fl-search-form-wrap {
  28. width: 100%;
  29. }
  30. .fl-search-form-input-wrap {
  31. position: relative;
  32. }
  33. /* Input field */
  34. .fl-search-form .fl-form-field {
  35. display: flex;
  36. align-items: center;
  37. }
  38. .fl-search-form-input .fl-form-field,
  39. .fl-search-form-button .fl-form-field,
  40. .fl-search-form-inline .fl-form-field,
  41. .mfp-container .fl-form-field {
  42. margin: 0;
  43. }
  44. /* Inline Layout */
  45. .fl-search-form-inline .fl-search-form-input-wrap {
  46. width: 100%;
  47. }
  48. .fl-search-form-inline .fl-form-field {
  49. padding-right: 10px;
  50. }
  51. /* Button Layout - General */
  52. .fl-search-button-center .fl-search-form-fields {
  53. justify-content: center;
  54. }
  55. .fl-search-button-left .fl-search-form-fields {
  56. justify-content: flex-start;
  57. }
  58. .fl-search-button-right .fl-search-form-fields {
  59. justify-content: flex-end;
  60. }
  61. .fl-search-button-expand .fl-button-wrap,
  62. .fl-search-form-inline .fl-button-wrap {
  63. flex: 0 0 auto;
  64. }
  65. /* Button layout - Expand */
  66. .fl-search-button-expand .fl-search-form-fields {
  67. align-items: center;
  68. display: inline-flex;
  69. flex-wrap: nowrap;
  70. max-width: 100%;
  71. -webkit-transition: all .4s;
  72. -moz-transition: all .4s;
  73. transition: all .4s;
  74. }
  75. .fl-search-button-expand .fl-search-form-input-wrap {
  76. -webkit-transition: all .4s;
  77. -moz-transition: all .4s;
  78. transition: all .4s;
  79. overflow: hidden;
  80. }
  81. .fl-search-button-expand .fl-search-form-input-wrap {
  82. width: 0;
  83. }
  84. .fl-search-expanded .fl-search-form-input-wrap {
  85. width: 100%;
  86. }
  87. .fl-search-button-expand-right .fl-search-form-fields {
  88. flex-direction: row-reverse;
  89. }
  90. .fl-search-button-expand-right.fl-search-button-right .fl-search-form-fields {
  91. justify-content: flex-start;
  92. }
  93. .fl-search-button-expand-right.fl-search-button-left .fl-search-form-fields {
  94. justify-content: flex-end;
  95. }
  96. .fl-search-button-expand .fl-button {
  97. outline: none;
  98. }
  99. .fl-search-button-expand-right .fl-form-field {
  100. margin-left: 10px;
  101. }
  102. .fl-search-button-expand-left .fl-form-field {
  103. margin-right: 10px;
  104. }
  105. .fl-search-button-expand.fl-search-button-center .fl-form-field {
  106. justify-content: center;
  107. }
  108. .fl-search-button-expand.fl-search-button-left .fl-form-field {
  109. justify-content: flex-start;
  110. }
  111. .fl-search-button-expand.fl-search-button-right .fl-form-field {
  112. justify-content: flex-end;
  113. }
  114. /* Button layout - Fullscreen */
  115. .fl-search-button-fullscreen.fl-search-button-center .fl-search-form-wrap {
  116. justify-content: center;
  117. }
  118. .fl-search-button-fullscreen.fl-search-button-left .fl-search-form-wrap {
  119. justify-content: flex-start;
  120. }
  121. .fl-search-button-fullscreen.fl-search-button-right .fl-search-form-wrap {
  122. justify-content: flex-end;
  123. }
  124. .fl-search-button-fullscreen .fl-search-form-fields {
  125. display: contents;
  126. }
  127. .fl-search-button-fullscreen .fl-search-form-input-wrap {
  128. display: none;
  129. }
  130. .mfp-container .fl-search-form-input-wrap {
  131. box-sizing: border-box;
  132. margin: 0 auto;
  133. }
  134. /* Button Layout - Reveal */
  135. /* Stacked Layout */
  136. .fl-search-form-stacked .fl-search-results-content.fl-search-open {
  137. margin-top: -12px;
  138. }
  139. /* Search Results - Ajax */
  140. .fl-search-results-content {
  141. visibility: hidden;
  142. opacity: 0;
  143. -moz-transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
  144. -o-transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
  145. -webkit-transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
  146. transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
  147. -webkit-box-shadow: 0px 2px 4px -2px rgba(0,0,0,0.40);
  148. -moz-box-shadow: 0px 2px 4px -2px rgba(0,0,0,0.40);
  149. box-shadow: 0px 2px 4px -2px rgba(0,0,0,0.40);
  150. border-radius: 4px;
  151. border: 1px solid #e6e6e6;
  152. overflow-y: auto;
  153. background: #fff;
  154. text-align: left;
  155. position: absolute;
  156. max-height: 0;
  157. width: calc(100% - 10px);
  158. z-index: 1100;
  159. }
  160. .fl-search-results-content.fl-search-open {
  161. max-height: 400px;
  162. height: auto;
  163. visibility: visible;
  164. opacity: 1;
  165. padding: 15px;
  166. margin: 5px 0;
  167. }
  168. .fl-search-form-center.fl-search-form-width-custom .fl-search-results-content {
  169. left: 50%;
  170. -webkit-transform: translateX(-50%);
  171. transform: translateX(-50%)
  172. }
  173. .fl-search-form-left .fl-search-results-content {
  174. left: 0;
  175. }
  176. .fl-search-form-right .fl-search-results-content {
  177. right: 0;
  178. }
  179. .fl-search-post-item {
  180. border-bottom: 1px solid #e6e6e6;
  181. overflow: hidden;
  182. padding: 10px 0;
  183. cursor: pointer;
  184. }
  185. .fl-search-post-item:last-child {
  186. border-bottom: 0 none;
  187. }
  188. .fl-search-post-image {
  189. float: left;
  190. position: relative;
  191. margin-right: 10px;
  192. width: 60px;
  193. }
  194. .fl-search-post-image img {
  195. height: auto !important;
  196. width: 100% !important;
  197. }
  198. .fl-search-post-title {
  199. font-size: 15px;
  200. }
  201. /* Search Loader */
  202. .fl-search-loader-wrap {
  203. display: none;
  204. line-height: 16px;
  205. position: relative;
  206. height: 30px;
  207. }
  208. .fl-search-loader {
  209. animation: fl-spin 2s linear infinite;
  210. z-index: 2;
  211. position: absolute;
  212. padding: 2px;
  213. right: 10px;
  214. top: 0;
  215. width: 30px;
  216. height: 30px;
  217. }
  218. .fl-search-loader .path {
  219. stroke: hsla(210, 77%, 75%, 1);
  220. stroke-linecap: round;
  221. animation: fl-dash 1.5s ease-in-out infinite;
  222. }
  223. @keyframes fl-spin {
  224. 100% {
  225. transform: rotate(360deg);
  226. }
  227. }
  228. @keyframes fl-dash {
  229. 0% {
  230. stroke-dasharray: 1, 150;
  231. stroke-dashoffset: 0;
  232. }
  233. 50% {
  234. stroke-dasharray: 90, 150;
  235. stroke-dashoffset: -35;
  236. }
  237. 100% {
  238. stroke-dasharray: 90, 150;
  239. stroke-dashoffset: -124;
  240. }
  241. }