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.

331 lines
6.8 KiB

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