search.css 9.7 KB

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