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.

409 lines
8.7 KiB

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