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.

275 lines
4.9 KiB

  1. /*
  2. * # Semantic Search
  3. * http://github.com/quirkyinc/semantic
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. * Released: April 17 2013
  11. */
  12. /*******************************
  13. Search
  14. *******************************/
  15. .ui.search {
  16. position: relative;
  17. text-shadow: none;
  18. font-style: normal;
  19. font-weight: normal;
  20. }
  21. .ui.search input {
  22. -webkit-border-radius: 500rem;
  23. -moz-border-radius: 500rem;
  24. border-radius: 500rem;
  25. }
  26. /*--------------
  27. Button
  28. ---------------*/
  29. .ui.search > .button {
  30. position: relative;
  31. z-index: 2;
  32. float: right;
  33. margin: 0px 0px 0px -15px;
  34. padding: 6px 15px 7px;
  35. -webkit-border-radius: 0px 15px 15px 0px;
  36. -moz-border-radius: 0px 15px 15px 0px;
  37. border-radius: 0px 15px 15px 0px;
  38. -webkit-box-shadow: none;
  39. -moz-box-shadow: none;
  40. box-shadow: none;
  41. }
  42. /*--------------
  43. Results
  44. ---------------*/
  45. .ui.search .results {
  46. display: none;
  47. position: absolute;
  48. z-index: 999;
  49. top: 100%;
  50. left: 0px;
  51. overflow: hidden;
  52. background-color: #FFFFFF;
  53. margin-top: 0.5em;
  54. width: 380px;
  55. font-size: 0.875em;
  56. line-height: 1.2;
  57. color: #555555;
  58. -webkit-border-radius: 3px;
  59. -moz-border-radius: 3px;
  60. border-radius: 3px;
  61. -webkit-box-shadow:
  62. 0px 0px 1px 1px rgba(0, 0, 0, 0.1),
  63. 0px -2px 0px 0px rgba(0, 0, 0, 0.1) inset
  64. ;
  65. -moz-box-shadow:
  66. 0px 0px 1px 1px rgba(0, 0, 0, 0.1),
  67. 0px -2px 0px 0px rgba(0, 0, 0, 0.1) inset
  68. ;
  69. box-shadow:
  70. 0px 0px 1px 1px rgba(0, 0, 0, 0.1),
  71. 0px -2px 0px 0px rgba(0, 0, 0, 0.1) inset
  72. ;
  73. }
  74. .ui.search .result {
  75. cursor: pointer;
  76. overflow: hidden;
  77. padding: 0.5em 1em;
  78. }
  79. .ui.search .result:first-child {
  80. border-top: none;
  81. }
  82. .ui.search .result .image {
  83. background: #F0F0F0;
  84. margin-right: 10px;
  85. float: left;
  86. overflow: hidden;
  87. -webkit-border-radius: 3px;
  88. -moz-border-radius: 3px;
  89. border-radius: 3px;
  90. width: 38px;
  91. height: 38px;
  92. }
  93. .ui.search .result .image img {
  94. display: block;
  95. width: 38px;
  96. height: 38px;
  97. }
  98. .ui.search .result .image ~ .info {
  99. float: none;
  100. margin-left: 50px;
  101. }
  102. .ui.search .result .info {
  103. float: left;
  104. }
  105. .ui.search .result .title {
  106. font-weight: bold;
  107. color: rgba(0, 0, 0, 0.8);
  108. }
  109. .ui.search .result .description {
  110. color: rgba(0, 0, 0, 0.6);
  111. }
  112. .ui.search .result .price {
  113. float: right;
  114. color: #5BBD72;
  115. font-weight: bold;
  116. }
  117. /*--------------
  118. Message
  119. ---------------*/
  120. .ui.search .message {
  121. padding: 1em;
  122. }
  123. .ui.search .message .text .title {
  124. margin: 0em 0em 0.5rem;
  125. font-size: 1.25rem;
  126. font-weight: bold;
  127. color: rgba(0, 0, 0, 0.8);
  128. }
  129. .ui.search .message .text .description {
  130. margin: 0em;
  131. font-size: 1rem;
  132. color: rgba(0, 0, 0, 0.5);
  133. }
  134. /*--------------
  135. Categories
  136. ---------------*/
  137. .ui.search .results .category {
  138. background-color: #FAFAFA;
  139. border-top: 1px solid rgba(0, 0, 0, 0.1);
  140. -webkit-transition: background 0.2s ease-in;
  141. -moz-transition: background 0.2s ease-in;
  142. -o-transition: background 0.2s ease-in;
  143. -ms-transition: background 0.2s ease-in;
  144. transition: background 0.2s ease-in;
  145. }
  146. .ui.search .results .category:first-child {
  147. border-top: none;
  148. }
  149. .ui.search .results .category > .name {
  150. float: left;
  151. padding: 12px 0px 0px 8px;
  152. font-weight: bold;
  153. color: #777777;
  154. text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.8);
  155. }
  156. .ui.search .results .category .result {
  157. background-color: #FFFFFF;
  158. margin-left: 80px;
  159. border-left: 1px solid rgba(0, 0, 0, 0.1);
  160. }
  161. /* View All Results */
  162. .ui.search .all {
  163. display: block;
  164. border-top: 1px solid rgba(0, 0, 0, 0.1);
  165. background-color: #FAFAFA;
  166. height: 2em;
  167. line-height: 2em;
  168. color: rgba(0, 0, 0, 0.6);
  169. font-weight: bold;
  170. text-align: center;
  171. }
  172. /*******************************
  173. States
  174. *******************************/
  175. /*--------------
  176. Hover
  177. ---------------*/
  178. .ui.search .result:hover,
  179. .ui.search .category .result:hover {
  180. background-color: #F8F8F8;
  181. }
  182. .ui.search .all:hover {
  183. background-color: #F0F0F0;
  184. }
  185. /*--------------
  186. Loading
  187. ---------------*/
  188. .ui.search.loading .input .icon {
  189. background: url(../images/loader-mini.gif) no-repeat 50% 50%;
  190. }
  191. .ui.search.loading .input .icon:before,
  192. .ui.search.loading .input .icon:after {
  193. display: none;
  194. }
  195. /*--------------
  196. Active
  197. ---------------*/
  198. .ui.search .results .category.active {
  199. background-color: #F1F1F1;
  200. }
  201. .ui.search .results .category.active > .name {
  202. color: #333333;
  203. }
  204. .ui.search .result.active,
  205. .ui.search .category .result.active {
  206. background-color: #FBFBFB;
  207. }
  208. .ui.search .result.active .title {
  209. color: #000000;
  210. }
  211. .ui.search .result.active .description {
  212. color: #555555;
  213. }
  214. /*******************************
  215. Variations
  216. *******************************/
  217. /* Large */
  218. .ui.search .large.result .image,
  219. .ui.search .large.result .image img {
  220. width: 50px;
  221. height: 50px;
  222. }
  223. .ui.search .large.results .indented.info {
  224. margin-left: 65px;
  225. }
  226. .ui.search .large.results .info .title {
  227. font-size: 16px;
  228. }
  229. .ui.search .large.results .info .description {
  230. font-size: 11px;
  231. }