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.

259 lines
4.8 KiB

10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic UI
  3. * git://github.com/Semantic-Org/Semantic-UI.git#1.0
  4. *
  5. *
  6. * Copyright 2014 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. Icon
  25. ---------------*/
  26. .ui.search .prompt ~ .search.icon {
  27. cursor: pointer;
  28. }
  29. /*--------------
  30. Results
  31. ---------------*/
  32. .ui.search .results {
  33. display: none;
  34. position: absolute;
  35. z-index: 998;
  36. top: 100%;
  37. left: 0%;
  38. overflow: hidden;
  39. background: #ffffff;
  40. margin-top: 0.5em;
  41. width: 380px;
  42. border-radius: 0.25em;
  43. box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.2);
  44. }
  45. /*--------------
  46. Result
  47. ---------------*/
  48. .ui.search .result {
  49. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  50. cursor: pointer;
  51. overflow: hidden;
  52. font-size: 0.9em;
  53. padding: 0.5em 1em;
  54. color: rgba(0, 0, 0, 0.8);
  55. line-height: 1.33;
  56. }
  57. .ui.search .result:first-child {
  58. border-top: none;
  59. }
  60. /* Image */
  61. .ui.search .result .image {
  62. float: right;
  63. overflow: hidden;
  64. background: none;
  65. width: 5em;
  66. height: 3em;
  67. border-radius: 0.25em;
  68. }
  69. .ui.search .result .image img {
  70. display: block;
  71. width: auto;
  72. height: 100%;
  73. }
  74. /*--------------
  75. Info
  76. ---------------*/
  77. .ui.search .result .image + .content {
  78. margin: 0em 6em 0em 0em;
  79. }
  80. .ui.search .result .title {
  81. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  82. font-weight: normal;
  83. color: rgba(0, 0, 0, 0.85);
  84. }
  85. .ui.search .result .description {
  86. color: rgba(0, 0, 0, 0.8);
  87. }
  88. .ui.search .result .price {
  89. float: right;
  90. color: #5bbd72;
  91. }
  92. /*--------------
  93. Message
  94. ---------------*/
  95. .ui.search .message {
  96. padding: 1em 1em;
  97. }
  98. .ui.search .message .header {
  99. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  100. font-size: 1.2em;
  101. font-weight: bold;
  102. color: rgba(0, 0, 0, 0.8);
  103. }
  104. .ui.search .message .description {
  105. margin-top: 0.25rem;
  106. font-size: 1rem;
  107. color: rgba(0, 0, 0, 0.8);
  108. }
  109. /* View All Results */
  110. .ui.search .all {
  111. display: block;
  112. border-top: 1px solid rgba(0, 0, 0, 0.1);
  113. background-color: #f0f0f0;
  114. height: 2em;
  115. line-height: 2em;
  116. color: rgba(0, 0, 0, 0.8);
  117. font-weight: bold;
  118. text-align: center;
  119. }
  120. /*******************************
  121. States
  122. *******************************/
  123. /*--------------
  124. Hover
  125. ---------------*/
  126. .ui.search .result:hover,
  127. .ui.search .results .category .result:hover {
  128. background: #fafafa;
  129. }
  130. .ui.search .all:hover {
  131. background: #fafafa;
  132. }
  133. /*--------------
  134. Loading
  135. ---------------*/
  136. .ui.search.loading .input .icon {
  137. background: url("../themes/default/assets/images/loader-mini.gif") no-repeat 50% 50%;
  138. }
  139. .ui.search.loading .input .icon:before,
  140. .ui.search.loading .input .icon:after {
  141. display: none;
  142. }
  143. /*--------------
  144. Active
  145. ---------------*/
  146. .ui.search .results .category.active {
  147. background-color: #f1f1f1;
  148. }
  149. .ui.search .results .category.active > .name {
  150. color: rgba(0, 0, 0, 0.8);
  151. }
  152. .ui.search .result.active,
  153. .ui.search .results .category .result.active {
  154. border-left-color: transparent;
  155. background-color: #f0f0f0;
  156. box-shadow: 2px 0px 2px 0px rgba(0, 0, 0, 0.2);
  157. }
  158. .ui.search .result.active .title {
  159. color: rgba(0, 0, 0, 0.85);
  160. }
  161. .ui.search .result.active .description {
  162. color: rgba(0, 0, 0, 0.85);
  163. }
  164. /*******************************
  165. Types
  166. *******************************/
  167. /*-------------------
  168. Left / Right
  169. --------------------*/
  170. .ui.right.aligned.search .results {
  171. right: 0%;
  172. left: auto;
  173. }
  174. /*--------------
  175. Categories
  176. ---------------*/
  177. .ui.search .results .category {
  178. background: #f0f0f0;
  179. box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1);
  180. }
  181. .ui.search .results .category,
  182. .ui.search .results .category .result {
  183. position: relative;
  184. -webkit-transition: background 0.2s ease, border-color 0.2s ease;
  185. transition: background 0.2s ease, border-color 0.2s ease;
  186. }
  187. .ui.search .results .category:first-child {
  188. box-shadow: none;
  189. }
  190. .ui.search .results .category > .name {
  191. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  192. float: 0.9em;
  193. float: left;
  194. padding: 0.4em 0em 0em 1em;
  195. font-weight: bold;
  196. color: rgba(0, 0, 0, 0.4);
  197. }
  198. .ui.search .results .category .result {
  199. background-color: #ffffff;
  200. margin-left: 100px;
  201. border-left: 1px solid rgba(0, 0, 0, 0.1);
  202. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  203. }
  204. /*******************************
  205. Variations
  206. *******************************/
  207. .ui.search {
  208. font-size: 1em;
  209. }
  210. .ui.large.search {
  211. font-size: 1.1em;
  212. }
  213. /*******************************
  214. Theme Overrides
  215. *******************************/
  216. /*******************************
  217. Site Overrides
  218. *******************************/