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.

209 lines
4.4 KiB

11 years ago
  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: 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. -moz-transition: background 0.2s ease-in;
  122. transition: background 0.2s ease-in;
  123. }
  124. .ui.search .results .category:first-child {
  125. border-top: none;
  126. }
  127. .ui.search .results .category > .name {
  128. float: left;
  129. padding: 12px 0px 0px 8px;
  130. font-weight: bold;
  131. color: #777777;
  132. text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.8);
  133. }
  134. .ui.search .results .category .result {
  135. background-color: #FFFFFF;
  136. margin-left: 80px;
  137. border-left: 1px solid rgba(0, 0, 0, 0.1);
  138. }
  139. /* View All Results */
  140. .ui.search .all {
  141. display: block;
  142. border-top: 1px solid rgba(0, 0, 0, 0.1);
  143. background-color: #FAFAFA;
  144. height: 2em;
  145. line-height: 2em;
  146. color: rgba(0, 0, 0, 0.6);
  147. font-weight: bold;
  148. text-align: center;
  149. }
  150. /*******************************
  151. States
  152. *******************************/
  153. /*--------------
  154. Hover
  155. ---------------*/
  156. .ui.search .result:hover,
  157. .ui.search .category .result:hover {
  158. background-color: #F8F8F8;
  159. }
  160. .ui.search .all:hover {
  161. background-color: #F0F0F0;
  162. }
  163. /*--------------
  164. Loading
  165. ---------------*/
  166. .ui.search.loading .input .icon {
  167. background: url(../images/loader-mini.gif) no-repeat 50% 50%;
  168. }
  169. .ui.search.loading .input .icon:before,
  170. .ui.search.loading .input .icon:after {
  171. display: none;
  172. }
  173. /*--------------
  174. Active
  175. ---------------*/
  176. .ui.search .results .category.active {
  177. background-color: #F1F1F1;
  178. }
  179. .ui.search .results .category.active > .name {
  180. color: #333333;
  181. }
  182. .ui.search .result.active,
  183. .ui.search .category .result.active {
  184. background-color: #FBFBFB;
  185. }
  186. .ui.search .result.active .title {
  187. color: #000000;
  188. }
  189. .ui.search .result.active .description {
  190. color: #555555;
  191. }
  192. /*******************************
  193. Variations
  194. *******************************/
  195. /* Large */
  196. .ui.search .large.result .image,
  197. .ui.search .large.result .image img {
  198. width: 50px;
  199. height: 50px;
  200. }
  201. .ui.search .large.results .indented.info {
  202. margin-left: 65px;
  203. }
  204. .ui.search .large.results .info .title {
  205. font-size: 16px;
  206. }
  207. .ui.search .large.results .info .description {
  208. font-size: 11px;
  209. }