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.

369 lines
7.8 KiB

  1. /*!
  2. * # Semantic UI 2.1.6 - 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.73905385em 1.07692308em;
  27. font-size: 1em;
  28. background: #FFFFFF;
  29. border: 1px solid rgba(0, 0, 0, 0.13);
  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. transform-origin: center top;
  54. background: #FFFFFF;
  55. margin-top: 0.5em;
  56. width: 18em;
  57. border-radius: 0.2307em;
  58. box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.12), 0px 2px 10px 0px rgba(34, 36, 38, 0.08);
  59. border: 1px solid #DDDDDD;
  60. z-index: 998;
  61. }
  62. .ui.search > .results > :first-child {
  63. border-radius: 0.2307em 0.2307em 0em 0em;
  64. }
  65. .ui.search > .results > :last-child {
  66. border-radius: 0em 0em 0.2307em 0.2307em;
  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.84615385em 1.15384615em;
  77. color: rgba(0, 0, 0, 0.87);
  78. line-height: 1.33;
  79. border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  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.14285em 0em 0em;
  106. font-family: 'Arial', '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.92307692em;
  114. color: rgba(0, 0, 0, 0.4);
  115. }
  116. .ui.search > .results .result .price {
  117. float: right;
  118. color: #78CB5B;
  119. }
  120. /*--------------
  121. Message
  122. ---------------*/
  123. .ui.search > .results > .message {
  124. padding: 1em 1em;
  125. }
  126. .ui.search > .results > .message .header {
  127. font-family: 'Arial', '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.92307692em 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: #51A7E8;
  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.65384615em 0em 0em -0.65384615em;
  167. width: 1.30769231em;
  168. height: 1.30769231em;
  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.65384615em 0em 0em -0.65384615em;
  178. width: 1.30769231em;
  179. height: 1.30769231em;
  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(0, 0, 0, 0.06);
  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. Types
  224. *******************************/
  225. /*--------------
  226. Categories
  227. ---------------*/
  228. .ui.category.search .results {
  229. width: 28em;
  230. }
  231. /* Category */
  232. .ui.category.search > .results .category {
  233. background: #F3F4F5;
  234. box-shadow: none;
  235. border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  236. -webkit-transition: background 0.1s ease, border-color 0.1s ease;
  237. transition: background 0.1s ease, border-color 0.1s ease;
  238. }
  239. /* Last Category */
  240. .ui.category.search > .results .category:last-child {
  241. border-bottom: none;
  242. }
  243. /* First / Last */
  244. .ui.category.search > .results .category:first-child .name + .result {
  245. border-radius: 0em 0.2307em 0em 0em;
  246. }
  247. .ui.category.search > .results .category:last-child .result:last-child {
  248. border-radius: 0em 0em 0.2307em 0em;
  249. }
  250. /* Category Result */
  251. .ui.category.search > .results .category .result {
  252. background: #FFFFFF;
  253. margin-left: 100px;
  254. border-left: 1px solid rgba(0, 0, 0, 0.13);
  255. border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  256. -webkit-transition: background 0.1s ease, border-color 0.1s ease;
  257. transition: background 0.1s ease, border-color 0.1s ease;
  258. padding: 0.84615385em 1.15384615em;
  259. }
  260. .ui.category.search > .results .category:last-child .result:last-child {
  261. border-bottom: none;
  262. }
  263. /* Category Result Name */
  264. .ui.category.search > .results .category > .name {
  265. width: 100px;
  266. background: transparent;
  267. font-family: 'Arial', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  268. font-size: 1em;
  269. float: 1em;
  270. float: left;
  271. padding: 0.4em 1em;
  272. font-weight: bold;
  273. color: rgba(0, 0, 0, 0.4);
  274. }
  275. /*******************************
  276. Variations
  277. *******************************/
  278. /*-------------------
  279. Left / Right
  280. --------------------*/
  281. .ui[class*="left aligned"].search > .results {
  282. right: auto;
  283. left: 0%;
  284. }
  285. .ui[class*="right aligned"].search > .results {
  286. right: 0%;
  287. left: auto;
  288. }
  289. /*--------------
  290. Fluid
  291. ---------------*/
  292. .ui.fluid.search .results {
  293. width: 100%;
  294. }
  295. /*--------------
  296. Sizes
  297. ---------------*/
  298. .ui.mini.search {
  299. font-size: 0.69230769em;
  300. }
  301. .ui.small.search {
  302. font-size: 0.92307692em;
  303. }
  304. .ui.search {
  305. font-size: 1em;
  306. }
  307. .ui.large.search {
  308. font-size: 1.15384615em;
  309. }
  310. .ui.big.search {
  311. font-size: 1.30769231em;
  312. }
  313. .ui.huge.search {
  314. font-size: 1.46153846em;
  315. }
  316. .ui.massive.search {
  317. font-size: 1.69230769em;
  318. }
  319. /*******************************
  320. Site Overrides
  321. *******************************/