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.

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