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.

410 lines
8.7 KiB

9 years ago
8 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
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
9 years ago
8 years ago
10 years ago
9 years ago
9 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
9 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
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
10 years ago
9 years ago
9 years ago
10 years ago
9 years ago
9 years ago
10 years ago
9 years ago
9 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
9 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
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
10 years ago
9 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
9 years ago
10 years ago
9 years ago
10 years ago
  1. /*!
  2. * # Semantic UI 2.2.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.67861429em 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. white-space: normal;
  56. background: #FFFFFF;
  57. margin-top: 0.5em;
  58. width: 18em;
  59. border-radius: 0.28571429rem;
  60. box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.12), 0px 2px 10px 0px rgba(34, 36, 38, 0.15);
  61. border: 1px solid #D4D4D5;
  62. z-index: 998;
  63. }
  64. .ui.search > .results > :first-child {
  65. border-radius: 0.28571429rem 0.28571429rem 0em 0em;
  66. }
  67. .ui.search > .results > :last-child {
  68. border-radius: 0em 0em 0.28571429rem 0.28571429rem;
  69. }
  70. /*--------------
  71. Result
  72. ---------------*/
  73. .ui.search > .results .result {
  74. cursor: pointer;
  75. display: block;
  76. overflow: hidden;
  77. font-size: 1em;
  78. padding: 0.85714286em 1.14285714em;
  79. color: rgba(0, 0, 0, 0.87);
  80. line-height: 1.33;
  81. border-bottom: 1px solid rgba(34, 36, 38, 0.1);
  82. }
  83. .ui.search > .results .result:last-child {
  84. border-bottom: none !important;
  85. }
  86. /* Image */
  87. .ui.search > .results .result .image {
  88. float: right;
  89. overflow: hidden;
  90. background: none;
  91. width: 5em;
  92. height: 3em;
  93. border-radius: 0.25em;
  94. }
  95. .ui.search > .results .result .image img {
  96. display: block;
  97. width: auto;
  98. height: 100%;
  99. }
  100. /*--------------
  101. Info
  102. ---------------*/
  103. .ui.search > .results .result .image + .content {
  104. margin: 0em 6em 0em 0em;
  105. }
  106. .ui.search > .results .result .title {
  107. margin: -0.14285em 0em 0em;
  108. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  109. font-weight: bold;
  110. font-size: 1em;
  111. color: rgba(0, 0, 0, 0.85);
  112. }
  113. .ui.search > .results .result .description {
  114. margin-top: 0;
  115. font-size: 0.92857143em;
  116. color: rgba(0, 0, 0, 0.4);
  117. }
  118. .ui.search > .results .result .price {
  119. float: right;
  120. color: #21BA45;
  121. }
  122. /*--------------
  123. Message
  124. ---------------*/
  125. .ui.search > .results > .message {
  126. padding: 1em 1em;
  127. }
  128. .ui.search > .results > .message .header {
  129. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  130. font-size: 1rem;
  131. font-weight: bold;
  132. color: rgba(0, 0, 0, 0.87);
  133. }
  134. .ui.search > .results > .message .description {
  135. margin-top: 0.25rem;
  136. font-size: 1em;
  137. color: rgba(0, 0, 0, 0.87);
  138. }
  139. /* View All Results */
  140. .ui.search > .results > .action {
  141. display: block;
  142. border-top: none;
  143. background: #F3F4F5;
  144. padding: 0.92857143em 1em;
  145. color: rgba(0, 0, 0, 0.87);
  146. font-weight: bold;
  147. text-align: center;
  148. }
  149. /*******************************
  150. States
  151. *******************************/
  152. /*--------------------
  153. Focus
  154. ---------------------*/
  155. .ui.search > .prompt:focus {
  156. border-color: rgba(34, 36, 38, 0.35);
  157. background: #FFFFFF;
  158. color: rgba(0, 0, 0, 0.95);
  159. }
  160. /*--------------------
  161. Loading
  162. ---------------------*/
  163. .ui.loading.search .input > i.icon:before {
  164. position: absolute;
  165. content: '';
  166. top: 50%;
  167. left: 50%;
  168. margin: -0.64285714em 0em 0em -0.64285714em;
  169. width: 1.28571429em;
  170. height: 1.28571429em;
  171. border-radius: 500rem;
  172. border: 0.2em solid rgba(0, 0, 0, 0.1);
  173. }
  174. .ui.loading.search .input > i.icon:after {
  175. position: absolute;
  176. content: '';
  177. top: 50%;
  178. left: 50%;
  179. margin: -0.64285714em 0em 0em -0.64285714em;
  180. width: 1.28571429em;
  181. height: 1.28571429em;
  182. -webkit-animation: button-spin 0.6s linear;
  183. animation: button-spin 0.6s linear;
  184. -webkit-animation-iteration-count: infinite;
  185. animation-iteration-count: infinite;
  186. border-radius: 500rem;
  187. border-color: #767676 transparent transparent;
  188. border-style: solid;
  189. border-width: 0.2em;
  190. box-shadow: 0px 0px 0px 1px transparent;
  191. }
  192. /*--------------
  193. Hover
  194. ---------------*/
  195. .ui.search > .results .result:hover,
  196. .ui.category.search > .results .category .result:hover {
  197. background: #F9FAFB;
  198. }
  199. .ui.search .action:hover {
  200. background: #E0E0E0;
  201. }
  202. /*--------------
  203. Active
  204. ---------------*/
  205. .ui.category.search > .results .category.active {
  206. background: #F3F4F5;
  207. }
  208. .ui.category.search > .results .category.active > .name {
  209. color: rgba(0, 0, 0, 0.87);
  210. }
  211. .ui.search > .results .result.active,
  212. .ui.category.search > .results .category .result.active {
  213. position: relative;
  214. border-left-color: rgba(34, 36, 38, 0.1);
  215. background: #F3F4F5;
  216. box-shadow: none;
  217. }
  218. .ui.search > .results .result.active .title {
  219. color: rgba(0, 0, 0, 0.85);
  220. }
  221. .ui.search > .results .result.active .description {
  222. color: rgba(0, 0, 0, 0.85);
  223. }
  224. /*******************************
  225. Types
  226. *******************************/
  227. /*--------------
  228. Selection
  229. ---------------*/
  230. .ui.search.selection .prompt {
  231. border-radius: 0.28571429rem;
  232. }
  233. /* Remove input */
  234. .ui.search.selection > .icon.input > .remove.icon {
  235. pointer-events: none;
  236. position: absolute;
  237. left: auto;
  238. opacity: 0;
  239. color: '';
  240. top: 0em;
  241. right: 0em;
  242. -webkit-transition: color 0.1s ease, opacity 0.1s ease;
  243. transition: color 0.1s ease, opacity 0.1s ease;
  244. }
  245. .ui.search.selection > .icon.input > .active.remove.icon {
  246. cursor: pointer;
  247. opacity: 0.8;
  248. pointer-events: auto;
  249. }
  250. .ui.search.selection > .icon.input:not([class*="left icon"]) > .icon ~ .remove.icon {
  251. right: 1.85714em;
  252. }
  253. .ui.search.selection > .icon.input > .remove.icon:hover {
  254. opacity: 1;
  255. color: #DB2828;
  256. }
  257. /*--------------
  258. Category
  259. ---------------*/
  260. .ui.category.search .results {
  261. width: 28em;
  262. }
  263. /* Category */
  264. .ui.category.search > .results .category {
  265. background: #F3F4F5;
  266. box-shadow: none;
  267. border-bottom: 1px solid rgba(34, 36, 38, 0.1);
  268. -webkit-transition: background 0.1s ease, border-color 0.1s ease;
  269. transition: background 0.1s ease, border-color 0.1s ease;
  270. }
  271. /* Last Category */
  272. .ui.category.search > .results .category:last-child {
  273. border-bottom: none;
  274. }
  275. /* First / Last */
  276. .ui.category.search > .results .category:first-child .name + .result {
  277. border-radius: 0em 0.28571429rem 0em 0em;
  278. }
  279. .ui.category.search > .results .category:last-child .result:last-child {
  280. border-radius: 0em 0em 0.28571429rem 0em;
  281. }
  282. /* Category Result */
  283. .ui.category.search > .results .category .result {
  284. background: #FFFFFF;
  285. margin-left: 100px;
  286. border-left: 1px solid rgba(34, 36, 38, 0.15);
  287. border-bottom: 1px solid rgba(34, 36, 38, 0.1);
  288. -webkit-transition: background 0.1s ease, border-color 0.1s ease;
  289. transition: background 0.1s ease, border-color 0.1s ease;
  290. padding: 0.85714286em 1.14285714em;
  291. }
  292. .ui.category.search > .results .category:last-child .result:last-child {
  293. border-bottom: none;
  294. }
  295. /* Category Result Name */
  296. .ui.category.search > .results .category > .name {
  297. width: 100px;
  298. background: transparent;
  299. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  300. font-size: 1em;
  301. float: 1em;
  302. float: left;
  303. padding: 0.4em 1em;
  304. font-weight: bold;
  305. color: rgba(0, 0, 0, 0.4);
  306. }
  307. /*******************************
  308. Variations
  309. *******************************/
  310. /*-------------------
  311. Left / Right
  312. --------------------*/
  313. .ui[class*="left aligned"].search > .results {
  314. right: auto;
  315. left: 0%;
  316. }
  317. .ui[class*="right aligned"].search > .results {
  318. right: 0%;
  319. left: auto;
  320. }
  321. /*--------------
  322. Fluid
  323. ---------------*/
  324. .ui.fluid.search .results {
  325. width: 100%;
  326. }
  327. /*--------------
  328. Sizes
  329. ---------------*/
  330. .ui.mini.search {
  331. font-size: 0.78571429em;
  332. }
  333. .ui.small.search {
  334. font-size: 0.92857143em;
  335. }
  336. .ui.search {
  337. font-size: 1em;
  338. }
  339. .ui.large.search {
  340. font-size: 1.14285714em;
  341. }
  342. .ui.big.search {
  343. font-size: 1.28571429em;
  344. }
  345. .ui.huge.search {
  346. font-size: 1.42857143em;
  347. }
  348. .ui.massive.search {
  349. font-size: 1.71428571em;
  350. }
  351. /*******************************
  352. Theme Overrides
  353. *******************************/
  354. /*******************************
  355. Site Overrides
  356. *******************************/