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.

255 lines
4.4 KiB

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