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.

433 lines
8.8 KiB

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