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.

329 lines
6.8 KiB

9 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
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
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
10 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
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
  1. /*!
  2. * # Semantic UI 2.0.0 - Search
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 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.2;
  26. padding: 0.68571em 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.8);
  31. box-shadow: 0em 0em 0em 0em transparent inset;
  32. -webkit-transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  33. transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s 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: 16em;
  55. border-radius: 0.25em;
  56. box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.2);
  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.5em 1em;
  68. color: rgba(0, 0, 0, 0.8);
  69. line-height: 1.33;
  70. border-bottom: 1px solid rgba(34, 36, 38, 0.15);
  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. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  97. font-weight: bold;
  98. font-size: 1em;
  99. color: rgba(0, 0, 0, 0.85);
  100. }
  101. .ui.search > .results .result .description {
  102. margin-top: 0em;
  103. font-size: 0.9285em;
  104. color: rgba(0, 0, 0, 0.4);
  105. }
  106. .ui.search > .results .result .price {
  107. float: right;
  108. color: #5bbd72;
  109. }
  110. /*--------------
  111. Message
  112. ---------------*/
  113. .ui.search > .results > .message {
  114. padding: 1em 1em;
  115. }
  116. .ui.search > .results > .message .header {
  117. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  118. font-size: 1.1428em;
  119. font-weight: bold;
  120. color: rgba(0, 0, 0, 0.8);
  121. }
  122. .ui.search > .results > .message .description {
  123. margin-top: 0.25rem;
  124. font-size: 1em;
  125. color: rgba(0, 0, 0, 0.8);
  126. }
  127. /* View All Results */
  128. .ui.search > .results > .action {
  129. display: block;
  130. border-top: none;
  131. background: #f0f0f0;
  132. padding: 0.92857143em 1em;
  133. color: rgba(0, 0, 0, 0.8);
  134. font-weight: bold;
  135. text-align: center;
  136. }
  137. /*******************************
  138. States
  139. *******************************/
  140. /*--------------------
  141. Loading
  142. ---------------------*/
  143. .ui.loading.search .input > .icon:before {
  144. position: absolute;
  145. content: '';
  146. top: 50%;
  147. left: 50%;
  148. margin: -0.64285em 0em 0em -0.64285em;
  149. width: 1.2857em;
  150. height: 1.2857em;
  151. border-radius: 500rem;
  152. border: 0.2em solid rgba(0, 0, 0, 0.1);
  153. }
  154. .ui.loading.search .input > .icon:after {
  155. position: absolute;
  156. content: '';
  157. top: 50%;
  158. left: 50%;
  159. margin: -0.64285em 0em 0em -0.64285em;
  160. width: 1.2857em;
  161. height: 1.2857em;
  162. -webkit-animation: button-spin 0.6s linear;
  163. animation: button-spin 0.6s linear;
  164. -webkit-animation-iteration-count: infinite;
  165. animation-iteration-count: infinite;
  166. border-radius: 500rem;
  167. border-color: #aaaaaa transparent transparent;
  168. border-style: solid;
  169. border-width: 0.2em;
  170. box-shadow: 0px 0px 0px 1px transparent;
  171. }
  172. /*--------------
  173. Hover
  174. ---------------*/
  175. .ui.search > .results .result:hover,
  176. .ui.category.search > .results .category .result:hover {
  177. background: #fafafa;
  178. }
  179. .ui.search .action:hover {
  180. background: #e0e0e0;
  181. }
  182. /*--------------
  183. Active
  184. ---------------*/
  185. .ui.search > .results .category.active {
  186. background: #f0f0f0;
  187. }
  188. .ui.search > .results .category.active > .name {
  189. color: rgba(0, 0, 0, 0.8);
  190. }
  191. .ui.search > .results .result.active,
  192. .ui.category.search > .results .category .result.active {
  193. position: relative;
  194. border-left-color: transparent;
  195. background: #f0f0f0;
  196. box-shadow: 3px 0px 3px 0px rgba(34, 36, 38, 0.15);
  197. }
  198. .ui.search > .results .result.active .title {
  199. color: rgba(0, 0, 0, 0.85);
  200. }
  201. .ui.search > .results .result.active .description {
  202. color: rgba(0, 0, 0, 0.85);
  203. }
  204. /*******************************
  205. Types
  206. *******************************/
  207. /*--------------
  208. Categories
  209. ---------------*/
  210. .ui.category.search .results {
  211. width: 28em;
  212. }
  213. /* Category */
  214. .ui.category.search > .results .category {
  215. background: #f0f0f0;
  216. box-shadow: none;
  217. border-bottom: 1px solid rgba(34, 36, 38, 0.15);
  218. -webkit-transition: background 0.2s ease, border-color 0.2s ease;
  219. transition: background 0.2s ease, border-color 0.2s ease;
  220. }
  221. .ui.category.search > .results .category:last-child {
  222. border-bottom: none;
  223. }
  224. /* Category Result */
  225. .ui.category.search > .results .category .result {
  226. background: #ffffff;
  227. margin-left: 100px;
  228. border-left: 1px solid rgba(34, 36, 38, 0.15);
  229. border-bottom: 1px solid rgba(34, 36, 38, 0.15);
  230. -webkit-transition: background 0.2s ease, border-color 0.2s ease;
  231. transition: background 0.2s ease, border-color 0.2s ease;
  232. }
  233. .ui.category.search > .results .category .result:last-child {
  234. border-bottom: none;
  235. }
  236. /* Category Result Name */
  237. .ui.category.search > .results .category > .name {
  238. width: 100px;
  239. background: #f0f0f0;
  240. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  241. font-size: 1em;
  242. float: 1em;
  243. float: left;
  244. padding: 0.4em 1em;
  245. font-weight: bold;
  246. color: rgba(0, 0, 0, 0.4);
  247. }
  248. /*******************************
  249. Variations
  250. *******************************/
  251. /*-------------------
  252. Left / Right
  253. --------------------*/
  254. .ui[class*="left aligned"].search > .results {
  255. right: auto;
  256. left: 0%;
  257. }
  258. .ui[class*="right aligned"].search > .results {
  259. right: 0%;
  260. left: auto;
  261. }
  262. /*--------------
  263. Fluid
  264. ---------------*/
  265. .ui.fluid.search .results {
  266. width: 100%;
  267. }
  268. /*--------------
  269. Sizes
  270. ---------------*/
  271. .ui.search {
  272. font-size: 1em;
  273. }
  274. .ui.large.search {
  275. font-size: 1.1em;
  276. }
  277. /*******************************
  278. Theme Overrides
  279. *******************************/
  280. /*******************************
  281. Site Overrides
  282. *******************************/