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.

253 lines
4.4 KiB

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