_search.less 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. #u-search {
  2. display: none;
  3. position: fixed;
  4. top: 0;
  5. left: 0;
  6. width: 100%;
  7. height: 100%;
  8. padding: 60px 20px;
  9. z-index: 999999;
  10. @media (max-width: @modal-threshold) {
  11. padding: 0px;
  12. }
  13. .modal {
  14. position: fixed;
  15. height: 80%;
  16. width: 100%;
  17. max-width: 640px;
  18. left: 50%;
  19. top: 0;
  20. margin: 64px 0px 0px -320px;
  21. background: #fff;
  22. box-shadow: 0 7px 8px -4px rgba(0,0,0,.2),0 13px 19px 2px rgba(0,0,0,.14),0 5px 24px 4px rgba(0,0,0,.12);
  23. z-index: 3;
  24. @media (max-width: @modal-threshold) {
  25. box-shadow: none;
  26. max-width: none;
  27. top: 0;
  28. left: 0;
  29. margin: 0;
  30. height: 100%;
  31. }
  32. .modal-ajax-content {
  33. opacity: 0;
  34. visibility: hidden;
  35. transition: all 0.36s;
  36. &.loaded {
  37. opacity: 1;
  38. visibility: visible;
  39. }
  40. }
  41. .modal-header {
  42. position: relative;
  43. width: 100%;
  44. height: 50px;
  45. background-color: @primary-color;
  46. z-index: 3;
  47. .btn-close {
  48. display: block;
  49. position: absolute;
  50. width: 50px;
  51. height: 50px;
  52. top: 0;
  53. right: 0;
  54. color: white;
  55. cursor: pointer;
  56. text-align: center;
  57. line-height: 50px;
  58. vertical-align: middle;
  59. font-size: 18px;
  60. transition: all 0.24s;
  61. z-index: 2;
  62. &:hover {
  63. transform: rotate(90deg);
  64. }
  65. }
  66. .modal-loading {
  67. position: absolute;
  68. bottom: -2px;
  69. left: 0px;
  70. width: 100%;
  71. height: 2px;
  72. background: transparent;
  73. z-index: 1;
  74. .modal-loading-bar {
  75. display: block;
  76. position: relative;
  77. width: 0%;
  78. height: 100%;
  79. background: lighten(@accent-color,15%);
  80. transition: width 0.24s;
  81. }
  82. }
  83. #u-search-modal-form {
  84. position: relative;
  85. width: 100%;
  86. height: 100%;
  87. z-index: 2;
  88. #u-search-modal-input {
  89. width: 100%;
  90. padding: 0px 50px 0px 40px;
  91. font-size: 15px;
  92. line-height: 50px;
  93. vertical-align: middle;
  94. color: #fff;
  95. border: none;
  96. background: transparent;
  97. transition: background-color 0.24s;
  98. font-weight: thin;
  99. appearance: none;
  100. box-shadow: none;
  101. &:focus {
  102. background-color: lighten(@tixora-color,5%);
  103. }
  104. }
  105. }
  106. #u-search-modal-btn-submit {
  107. position: absolute;
  108. top: 0;
  109. left: 0;
  110. padding-left: 5px;
  111. padding-top: 2px;
  112. background: transparent;
  113. border: none;
  114. width: 40px;
  115. height: 50px;
  116. vertical-align: middle;
  117. font-size: 20px;
  118. color: white;
  119. z-index: 2;
  120. }
  121. }
  122. .modal-footer {
  123. position: absolute;
  124. bottom: 0;
  125. left: 0;
  126. width: 100%;
  127. height: 50px;
  128. padding: 0px 15px;
  129. background: #fff;
  130. border-top: 1px solid lighten(@black,60%);
  131. .logo {
  132. position: absolute;
  133. top: 0;
  134. left: 0;
  135. width: 100%;
  136. height: 100%;
  137. text-align: center;
  138. z-index: 0;
  139. a {
  140. display: inline-block;
  141. }
  142. &.google img {
  143. height: 24px;
  144. margin-top: 13px;
  145. }
  146. &.baidu img {
  147. height: 22px;
  148. margin-top: 14px;
  149. }
  150. img {
  151. position: relative;
  152. display: inline-block;
  153. width: auto;
  154. height: 18px;
  155. margin-top: 16px;
  156. }
  157. }
  158. .modal-error {
  159. position: relative;
  160. float: left;
  161. vertical-align: middle;
  162. line-height: 50px;
  163. font-size: 13px;
  164. z-index: 1;
  165. }
  166. .modal-metadata {
  167. position: relative;
  168. float: left;
  169. vertical-align: middle;
  170. line-height: 50px;
  171. font-size: 13px;
  172. z-index: 1;
  173. }
  174. .nav {
  175. position: relative;
  176. display: block;
  177. float: right;
  178. vertical-align: middle;
  179. font-size: 13px;
  180. font-weight: 500;
  181. line-height: 50px;
  182. color: @grey-color;
  183. cursor: pointer;
  184. z-index: 1;
  185. &:hover {
  186. color: @black;
  187. }
  188. &.btn-next {
  189. margin-left: 10px;
  190. }
  191. .icon {
  192. font-size: 12px;
  193. }
  194. }
  195. }
  196. .modal-body {
  197. position: absolute;
  198. padding: 64px 40px 80px 40px;
  199. width: 100%;
  200. height: 100%;
  201. top: 0;
  202. left: 0;
  203. overflow-y: scroll;
  204. -webkit-overflow-scrolling: touch;
  205. @media (max-width: @modal-threshold) {
  206. padding: 60px 20px 80px 20px;
  207. }
  208. .modal-results {
  209. list-style: none;
  210. li {
  211. border-bottom: 1px solid #e6e8ea;
  212. &:last-child {
  213. border-bottom: none;
  214. }
  215. }
  216. .result {
  217. position: relative;
  218. display: block;
  219. padding: 15px 30px 15px 0px;
  220. text-decoration: none;
  221. &:hover {
  222. .digest, .icon {
  223. color: @black;
  224. }
  225. }
  226. .title {
  227. display: inline-block;
  228. max-width: 100%;
  229. color: @material-blue;
  230. font-size: 15px;
  231. font-weight: bold;
  232. background: lighten(@material-blue,43%);
  233. padding: 1px;
  234. border-bottom: 1px solid #e6e8ea;
  235. margin-bottom: 2px;
  236. line-height: 110%;
  237. white-space: nowrap;
  238. overflow: hidden;
  239. text-overflow: ellipsis;
  240. }
  241. .digest {
  242. display: block;
  243. font-size: 13px;
  244. line-height: 140%;
  245. color: lighten(@black, 30%);
  246. transition: color 0.24s;
  247. em {
  248. font-weight: bold;
  249. }
  250. }
  251. .icon {
  252. position: absolute;
  253. top: 50%;
  254. right: 0;
  255. margin-top: -4px;
  256. font-size: 11px;
  257. color: @grey-color;
  258. }
  259. }
  260. }
  261. }
  262. }
  263. .modal-overlay {
  264. position: absolute;
  265. top: 0;
  266. left: 0;
  267. width: 100%;
  268. height: 100%;
  269. background: rgba(0,0,0,0.8);
  270. z-index: 1;
  271. }
  272. }