You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

334 lines
6.9 KiB

10 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
9 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
9 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*!
  2. * # Semantic UI 2.0.0 - Search
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2015 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Search
  13. *******************************/
  14. .ui.search {
  15. position: relative;
  16. }
  17. .ui.search > .prompt {
  18. margin: 0em;
  19. outline: none;
  20. -webkit-appearance: none;
  21. -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  22. text-shadow: none;
  23. font-style: normal;
  24. font-weight: normal;
  25. line-height: 1.2142em;
  26. padding: 0.67861em 1em;
  27. font-size: 1em;
  28. background: #ffffff;
  29. border: 1px solid rgba(34, 36, 38, 0.15);
  30. color: rgba(0, 0, 0, 0.87);
  31. box-shadow: 0em 0em 0em 0em transparent inset;
  32. -webkit-transition: background-color 0.1s ease, color 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
  33. transition: background-color 0.1s ease, color 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
  34. }
  35. .ui.search .prompt {
  36. border-radius: 500rem;
  37. }
  38. /*--------------
  39. Icon
  40. ---------------*/
  41. .ui.search .prompt ~ .search.icon {
  42. cursor: pointer;
  43. }
  44. /*--------------
  45. Results
  46. ---------------*/
  47. .ui.search > .results {
  48. display: none;
  49. position: absolute;
  50. top: 100%;
  51. left: 0%;
  52. -webkit-transform-origin: center top;
  53. -ms-transform-origin: center top;
  54. transform-origin: center top;
  55. background: #ffffff;
  56. margin-top: 0.5em;
  57. width: 18em;
  58. border-radius: 0.285714rem;
  59. box-shadow: 0px 1px 3px 1px rgba(34, 36, 38, 0.15);
  60. z-index: 998;
  61. }
  62. /*--------------
  63. Result
  64. ---------------*/
  65. .ui.search > .results .result {
  66. cursor: pointer;
  67. display: block;
  68. overflow: hidden;
  69. font-size: 1em;
  70. padding: 0.71428571em 1.14285714em;
  71. color: rgba(0, 0, 0, 0.87);
  72. line-height: 1.33;
  73. border-bottom: 1px solid rgba(34, 36, 38, 0.1);
  74. }
  75. .ui.search > .results .result:last-child {
  76. border-bottom: none;
  77. }
  78. /* Image */
  79. .ui.search > .results .result .image {
  80. float: right;
  81. overflow: hidden;
  82. background: none;
  83. width: 5em;
  84. height: 3em;
  85. border-radius: 0.25em;
  86. }
  87. .ui.search > .results .result .image img {
  88. display: block;
  89. width: auto;
  90. height: 100%;
  91. }
  92. /*--------------
  93. Info
  94. ---------------*/
  95. .ui.search > .results .result .image + .content {
  96. margin: 0em 6em 0em 0em;
  97. }
  98. .ui.search > .results .result .title {
  99. margin: -0.14285em 0em 0em;
  100. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  101. font-weight: bold;
  102. font-size: 1em;
  103. color: rgba(0, 0, 0, 0.85);
  104. }
  105. .ui.search > .results .result .description {
  106. margin-top: 0;
  107. font-size: 0.92857143em;
  108. color: rgba(0, 0, 0, 0.4);
  109. }
  110. .ui.search > .results .result .price {
  111. float: right;
  112. color: #21ba45;
  113. }
  114. /*--------------
  115. Message
  116. ---------------*/
  117. .ui.search > .results > .message {
  118. padding: 1em 1em;
  119. }
  120. .ui.search > .results > .message .header {
  121. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  122. font-size: 1em;
  123. font-weight: bold;
  124. color: rgba(0, 0, 0, 0.87);
  125. }
  126. .ui.search > .results > .message .description {
  127. margin-top: 0.25rem;
  128. font-size: 1em;
  129. color: rgba(0, 0, 0, 0.87);
  130. }
  131. /* View All Results */
  132. .ui.search > .results > .action {
  133. display: block;
  134. border-top: none;
  135. background: #f3f4f5;
  136. padding: 0.92857143em 1em;
  137. color: rgba(0, 0, 0, 0.87);
  138. font-weight: bold;
  139. text-align: center;
  140. }
  141. /*******************************
  142. States
  143. *******************************/
  144. /*--------------------
  145. Loading
  146. ---------------------*/
  147. .ui.loading.search .input > i.icon:before {
  148. position: absolute;
  149. content: '';
  150. top: 50%;
  151. left: 50%;
  152. margin: -0.64285em 0em 0em -0.64285em;
  153. width: 1.2857em;
  154. height: 1.2857em;
  155. border-radius: 500rem;
  156. border: 0.2em solid rgba(0, 0, 0, 0.1);
  157. }
  158. .ui.loading.search .input > i.icon:after {
  159. position: absolute;
  160. content: '';
  161. top: 50%;
  162. left: 50%;
  163. margin: -0.64285em 0em 0em -0.64285em;
  164. width: 1.2857em;
  165. height: 1.2857em;
  166. -webkit-animation: button-spin 0.6s linear;
  167. animation: button-spin 0.6s linear;
  168. -webkit-animation-iteration-count: infinite;
  169. animation-iteration-count: infinite;
  170. border-radius: 500rem;
  171. border-color: #757676 transparent transparent;
  172. border-style: solid;
  173. border-width: 0.2em;
  174. box-shadow: 0px 0px 0px 1px transparent;
  175. }
  176. /*--------------
  177. Hover
  178. ---------------*/
  179. .ui.search > .results .result:hover,
  180. .ui.category.search > .results .category .result:hover {
  181. background: #f9fafb;
  182. }
  183. .ui.search .action:hover {
  184. background: #e0e0e0;
  185. }
  186. /*--------------
  187. Active
  188. ---------------*/
  189. .ui.search > .results .category.active {
  190. background: #f3f4f5;
  191. }
  192. .ui.search > .results .category.active > .name {
  193. color: rgba(0, 0, 0, 0.87);
  194. }
  195. .ui.search > .results .result.active,
  196. .ui.category.search > .results .category .result.active {
  197. position: relative;
  198. border-left-color: transparent;
  199. background: #f3f4f5;
  200. box-shadow: none;
  201. }
  202. .ui.search > .results .result.active .title {
  203. color: rgba(0, 0, 0, 0.85);
  204. }
  205. .ui.search > .results .result.active .description {
  206. color: rgba(0, 0, 0, 0.85);
  207. }
  208. /*******************************
  209. Types
  210. *******************************/
  211. /*--------------
  212. Categories
  213. ---------------*/
  214. .ui.category.search .results {
  215. width: 28em;
  216. }
  217. /* Category */
  218. .ui.category.search > .results .category {
  219. background: #f3f4f5;
  220. box-shadow: none;
  221. border-bottom: 1px solid rgba(34, 36, 38, 0.15);
  222. -webkit-transition: background 0.2s ease, border-color 0.2s ease;
  223. transition: background 0.2s ease, border-color 0.2s ease;
  224. }
  225. .ui.category.search > .results .category:last-child {
  226. border-bottom: none;
  227. }
  228. /* Category Result */
  229. .ui.category.search > .results .category .result {
  230. background: #ffffff;
  231. margin-left: 100px;
  232. border-left: 1px solid rgba(34, 36, 38, 0.15);
  233. border-bottom: 1px solid rgba(34, 36, 38, 0.1);
  234. -webkit-transition: background 0.2s ease, border-color 0.2s ease;
  235. transition: background 0.2s ease, border-color 0.2s ease;
  236. padding: 0.71428571em 1.14285714em;
  237. }
  238. .ui.category.search > .results .category .result:last-child {
  239. border-bottom: none;
  240. }
  241. /* Category Result Name */
  242. .ui.category.search > .results .category > .name {
  243. width: 100px;
  244. background: #f3f4f5;
  245. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  246. font-size: 1em;
  247. float: 1em;
  248. float: left;
  249. padding: 0.4em 1em;
  250. font-weight: bold;
  251. color: rgba(0, 0, 0, 0.4);
  252. }
  253. /*******************************
  254. Variations
  255. *******************************/
  256. /*-------------------
  257. Left / Right
  258. --------------------*/
  259. .ui[class*="left aligned"].search > .results {
  260. right: auto;
  261. left: 0%;
  262. }
  263. .ui[class*="right aligned"].search > .results {
  264. right: 0%;
  265. left: auto;
  266. }
  267. /*--------------
  268. Fluid
  269. ---------------*/
  270. .ui.fluid.search .results {
  271. width: 100%;
  272. }
  273. /*--------------
  274. Sizes
  275. ---------------*/
  276. .ui.search {
  277. font-size: 1em;
  278. }
  279. .ui.large.search {
  280. font-size: 1.1em;
  281. }
  282. /*******************************
  283. Theme Overrides
  284. *******************************/
  285. /*******************************
  286. Site Overrides
  287. *******************************/