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.

383 lines
9.5 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic - Search
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributor
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. /*
  15. */
  16. /*******************************
  17. Folders
  18. *******************************/
  19. /* Path to theme packages */
  20. /* Path to site override folder */
  21. /*******************************
  22. Themes
  23. *******************************/
  24. /* To override a theme for an individual element
  25. specify theme name below
  26. Be sure to update the user folder name (see README)
  27. */
  28. /* Global */
  29. /* Elements */
  30. /* Collections */
  31. /* Modules */
  32. /* Views */
  33. /*******************************
  34. Import Directives
  35. *******************************/
  36. /*------------------
  37. Load Default
  38. -------------------*/
  39. /*******************************
  40. Site Settings
  41. *******************************/
  42. /*-------------------
  43. Paths
  44. --------------------*/
  45. /*-------------------
  46. Fonts
  47. --------------------*/
  48. /*-------------------
  49. Site Colors
  50. --------------------*/
  51. /*--- Colors ---*/
  52. /*--- Light Colors ---*/
  53. /*-------------------
  54. Page
  55. --------------------*/
  56. /* Used to match floats with text */
  57. /*-------------------
  58. Background Colors
  59. --------------------*/
  60. /* Used for differentiating neutrals */
  61. /* Used for differentiating layers */
  62. /*-------------------
  63. Grid
  64. --------------------*/
  65. /*-------------------
  66. Breakpoints
  67. --------------------*/
  68. /*******************************
  69. Power-User
  70. *******************************/
  71. /*-------------------
  72. Icons
  73. --------------------*/
  74. /* Max Width of Icon */
  75. /*-------------------
  76. Easing
  77. --------------------*/
  78. /*--- Neutrals ---*/
  79. /*--- Colored Backgrounds ---*/
  80. /*--- Colored Text ---*/
  81. /*--- Colored Headers ---*/
  82. /*-------------------
  83. Emotive Colors
  84. --------------------*/
  85. /* Mood */
  86. /* Solid Background Color */
  87. /* Status */
  88. /* Darkened Headers */
  89. /*-------------------
  90. Neutral Text
  91. --------------------*/
  92. /*-------------------
  93. Brand Colors
  94. --------------------*/
  95. /*-------------------
  96. Grid Columns
  97. --------------------*/
  98. /*-------------------
  99. Borders
  100. --------------------*/
  101. /*-------------------
  102. Sizes
  103. --------------------*/
  104. /*-------------------
  105. Transitions
  106. --------------------*/
  107. /*******************************
  108. States
  109. *******************************/
  110. /*-------------------
  111. Disabled
  112. --------------------*/
  113. /*-------------------
  114. Hover
  115. --------------------*/
  116. /*--- Colors ---*/
  117. /*--- Emotive ---*/
  118. /*--- Neutrals ---*/
  119. /*-------------------
  120. Down (:active)
  121. --------------------*/
  122. /*--- Colors ---*/
  123. /*--- Emotive ---*/
  124. /*--- Neutrals ---*/
  125. /*-------------------
  126. Active
  127. --------------------*/
  128. /*--- Standard ---*/
  129. /*--- Emotive ---*/
  130. /*--- Neutrals ---*/
  131. /*******************************
  132. Search
  133. *******************************/
  134. /* Result Box */
  135. /* Result */
  136. /* Result Image */
  137. /* Result Content */
  138. /* Special Message */
  139. /* All Results Link */
  140. /*******************************
  141. States
  142. *******************************/
  143. /* Hover */
  144. /* Loading */
  145. /* Active Category */
  146. /* Active Result */
  147. /*******************************
  148. Types
  149. *******************************/
  150. /* Category */
  151. /* Sizes */
  152. /*------------------
  153. Load Theme
  154. -------------------*/
  155. /*------------------
  156. Load Site
  157. -------------------*/
  158. /*******************************
  159. User Global Variables
  160. *******************************/
  161. /*******************************
  162. Overrides
  163. *******************************/
  164. /*------------------
  165. Override Mix-in
  166. -------------------*/
  167. /*******************************
  168. Search
  169. *******************************/
  170. .ui.search {
  171. position: relative;
  172. text-shadow: none;
  173. font-style: normal;
  174. font-weight: normal;
  175. }
  176. .ui.search input {
  177. border-radius: 500rem;
  178. }
  179. /*--------------
  180. Icon
  181. ---------------*/
  182. .ui.search .prompt ~ .search.icon {
  183. cursor: pointer;
  184. }
  185. /*--------------
  186. Results
  187. ---------------*/
  188. .ui.search .results {
  189. display: none;
  190. position: absolute;
  191. z-index: 998;
  192. top: 100%;
  193. left: 0%;
  194. overflow: hidden;
  195. background: #ffffff;
  196. margin-top: 0.5em;
  197. width: 380px;
  198. border-radius: 0.25em;
  199. box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.2);
  200. }
  201. /*--------------
  202. Result
  203. ---------------*/
  204. .ui.search .result {
  205. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  206. cursor: pointer;
  207. overflow: hidden;
  208. font-size: 0.9em;
  209. padding: 0.5em 1em;
  210. color: rgba(0, 0, 0, 0.8);
  211. line-height: 1.33;
  212. }
  213. .ui.search .result:first-child {
  214. border-top: none;
  215. }
  216. /* Image */
  217. .ui.search .result .image {
  218. float: right;
  219. overflow: hidden;
  220. background: none;
  221. width: 5em;
  222. height: 3em;
  223. border-radius: 0.25em;
  224. }
  225. .ui.search .result .image img {
  226. display: block;
  227. width: auto;
  228. height: 100%;
  229. }
  230. /*--------------
  231. Info
  232. ---------------*/
  233. .ui.search .result .image + .content {
  234. margin: 0em 6em 0em 0em;
  235. }
  236. .ui.search .result .title {
  237. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  238. font-weight: normal;
  239. color: rgba(0, 0, 0, 0.85);
  240. }
  241. .ui.search .result .description {
  242. color: rgba(0, 0, 0, 0.8);
  243. }
  244. .ui.search .result .price {
  245. float: right;
  246. color: #5bbd72;
  247. }
  248. /*--------------
  249. Message
  250. ---------------*/
  251. .ui.search .message {
  252. padding: 1em 1em;
  253. }
  254. .ui.search .message .header {
  255. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  256. font-size: 1.2em;
  257. font-weight: bold;
  258. color: rgba(0, 0, 0, 0.8);
  259. }
  260. .ui.search .message .description {
  261. margin-top: 0.25rem;
  262. font-size: 1rem;
  263. color: rgba(0, 0, 0, 0.8);
  264. }
  265. /* View All Results */
  266. .ui.search .all {
  267. display: block;
  268. border-top: 1px solid rgba(0, 0, 0, 0.1);
  269. background-color: #f0f0f0;
  270. height: 2em;
  271. line-height: 2em;
  272. color: rgba(0, 0, 0, 0.8);
  273. font-weight: bold;
  274. text-align: center;
  275. }
  276. /*******************************
  277. States
  278. *******************************/
  279. /*--------------
  280. Hover
  281. ---------------*/
  282. .ui.search .result:hover,
  283. .ui.search .results .category .result:hover {
  284. background: #fafafa;
  285. }
  286. .ui.search .all:hover {
  287. background: #fafafa;
  288. }
  289. /*--------------
  290. Loading
  291. ---------------*/
  292. .ui.search.loading .input .icon {
  293. background: url("../../themes/packages/default/assets/images/loader-mini.gif") no-repeat 50% 50%;
  294. }
  295. .ui.search.loading .input .icon:before,
  296. .ui.search.loading .input .icon:after {
  297. display: none;
  298. }
  299. /*--------------
  300. Active
  301. ---------------*/
  302. .ui.search .results .category.active {
  303. background-color: #f1f1f1;
  304. }
  305. .ui.search .results .category.active > .name {
  306. color: rgba(0, 0, 0, 0.8);
  307. }
  308. .ui.search .result.active,
  309. .ui.search .results .category .result.active {
  310. border-left-color: transparent;
  311. background-color: #f0f0f0;
  312. box-shadow: 2px 0px 2px 0px rgba(0, 0, 0, 0.2);
  313. }
  314. .ui.search .result.active .title {
  315. color: rgba(0, 0, 0, 0.85);
  316. }
  317. .ui.search .result.active .description {
  318. color: rgba(0, 0, 0, 0.85);
  319. }
  320. /*******************************
  321. Types
  322. *******************************/
  323. /*-------------------
  324. Left / Right
  325. --------------------*/
  326. .ui.right.aligned.search .results {
  327. right: 0%;
  328. left: auto;
  329. }
  330. /*--------------
  331. Categories
  332. ---------------*/
  333. .ui.search .results .category {
  334. background: #f0f0f0;
  335. box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1);
  336. }
  337. .ui.search .results .category,
  338. .ui.search .results .category .result {
  339. position: relative;
  340. -webkit-transition: background 0.2s ease, border-color 0.2s ease;
  341. transition: background 0.2s ease, border-color 0.2s ease;
  342. }
  343. .ui.search .results .category:first-child {
  344. box-shadow: none;
  345. }
  346. .ui.search .results .category > .name {
  347. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  348. float: 0.9em;
  349. float: left;
  350. padding: 0.4em 0em 0em 1em;
  351. font-weight: bold;
  352. color: rgba(0, 0, 0, 0.4);
  353. }
  354. .ui.search .results .category .result {
  355. background-color: #ffffff;
  356. margin-left: 100px;
  357. border-left: 1px solid rgba(0, 0, 0, 0.1);
  358. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  359. }
  360. /*******************************
  361. Variations
  362. *******************************/
  363. .ui.search {
  364. font-size: 1em;
  365. }
  366. .ui.large.search {
  367. font-size: 1.1em;
  368. }
  369. /*******************************
  370. Overrides
  371. *******************************/
  372. /*******************************
  373. Overrides
  374. *******************************/