ystep.css 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. /*common css*/
  2. .ystep-container {
  3. font-family: "Helvetica Neue",Helvetica,"Hiragino Sans GB","Wenquanyi Micro Hei","Microsoft Yahei",Arial,sans-serif;
  4. display: inline-block;
  5. position: relative;
  6. color: #000;
  7. }
  8. .ystep-container ul {
  9. list-style: none;
  10. }
  11. .ystep-container ul,.ystep-container li,.ystep-container p {
  12. margin: 0;
  13. padding: 0;
  14. }
  15. /*size css*/
  16. .ystep-sm {
  17. width: 360px;
  18. height: 30px;
  19. font-size: 12px;
  20. line-height: 1;
  21. }
  22. .ystep-lg {
  23. width: 700px;
  24. height: 60px;
  25. font-size: 18px;
  26. /*line-height: .3;*/
  27. }
  28. /*small size css*/
  29. .ystep-sm .ystep-container-steps {
  30. position: absolute;
  31. top: 2px;
  32. cursor: pointer;
  33. z-index: 10;
  34. }
  35. .ystep-sm li {
  36. float: left;
  37. width: 65px;
  38. height: 50px;
  39. }
  40. .ystep-sm .ystep-step-done {
  41. background-position: -119px -76px;
  42. }
  43. .ystep-sm .ystep-step-undone {
  44. background-position: -60px -76px;
  45. }
  46. .ystep-sm .ystep-step-active {
  47. background-position: -182px -76px;
  48. }
  49. .ystep-sm .ystep-progress {
  50. width: 260px;
  51. height: 3px;
  52. position: absolute;
  53. top: 30px;
  54. left: 8px;
  55. float: left;
  56. margin-right: 10px;
  57. overflow: hidden;
  58. }
  59. .ystep-sm .ystep-progress-bar {
  60. width: 260px;
  61. height: 6px;
  62. background: #e4e4e4;
  63. display: inline-block;
  64. float: left;
  65. }
  66. .ystep-sm .ystep-progress-highlight {
  67. height: 6px;
  68. display: block;
  69. }
  70. /*large size css*/
  71. .ystep-lg .ystep-container-steps {
  72. position: absolute;
  73. top: 2px;
  74. cursor: pointer;
  75. z-index: 10;
  76. }
  77. .ystep-lg li {
  78. float: left;
  79. width: 100px;
  80. height: 85px;
  81. }
  82. .ystep-lg .ystep-step-done {
  83. background-position: -278px -132px;
  84. }
  85. .ystep-lg .ystep-step-undone {
  86. background-position: -137px -131px;
  87. }
  88. .ystep-lg .ystep-step-active {
  89. background-position: -414px -131px;
  90. }
  91. .ystep-lg .ystep-progress {
  92. width: 400px;
  93. height: 10px;
  94. position: absolute;
  95. top: 30px;
  96. left: 15px;
  97. float: left;
  98. margin-right: 10px;
  99. overflow: hidden;
  100. }
  101. .ystep-lg .ystep-progress-bar {
  102. width: 400px;
  103. height: 20px;
  104. background: #e4e4e4;
  105. display: inline-block;
  106. float: left;
  107. }
  108. .ystep-lg .ystep-progress-highlight {
  109. height: 20px;
  110. display: block;
  111. }
  112. /*green css*/
  113. .ystep-green .ystep-step-done {
  114. background-image: url("./images/pointes_green.png");
  115. background-repeat: no-repeat;
  116. }
  117. .ystep-green .ystep-step-undone {
  118. background-image: url("./images/pointes_green.png");
  119. background-repeat: no-repeat;
  120. color: #9c9a9b;
  121. }
  122. .ystep-green .ystep-step-active {
  123. background-image: url("./images/pointes_green.png");
  124. background-repeat: no-repeat;
  125. color: #3d8e15;
  126. }
  127. .ystep-green .ystep-progress-highlight {
  128. background: #89bc65;
  129. }
  130. /*blue css*/
  131. .ystep-blue .ystep-step-done {
  132. background-image: url("./images/pointes_blue.png");
  133. background-repeat: no-repeat;
  134. }
  135. .ystep-blue .ystep-step-undone {
  136. background-image: url("./images/pointes_blue.png");
  137. background-repeat: no-repeat;
  138. color: #9c9a9b;
  139. }
  140. .ystep-blue .ystep-step-active {
  141. background-image: url("./images/pointes_blue.png");
  142. background-repeat: no-repeat;
  143. color: #3276b1;
  144. }
  145. .ystep-blue .ystep-progress-highlight {
  146. background: #60baff;
  147. }
  148. /*popover css*/
  149. .popover {
  150. font-family: "Helvetica Neue",Helvetica,"Hiragino Sans GB","Wenquanyi Micro Hei","Microsoft Yahei",Arial,sans-serif;
  151. position: absolute;
  152. top: 0;
  153. left: 0;
  154. z-index: 1010;
  155. display: none;
  156. max-width: 276px;
  157. padding: 1px;
  158. text-align: left;
  159. white-space: normal;
  160. background-color: #ffffff;
  161. border: 1px solid #cccccc;
  162. border: 1px solid rgba(0, 0, 0, 0.2);
  163. border-radius: 6px;
  164. -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  165. box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  166. background-clip: padding-box;
  167. }
  168. .popover.top {
  169. margin-top: -10px;
  170. }
  171. .popover.right {
  172. margin-left: 10px;
  173. }
  174. .popover.bottom {
  175. margin-top: 10px;
  176. }
  177. .popover.left {
  178. margin-left: -10px;
  179. }
  180. .popover-title {
  181. padding: 2px 10px;
  182. margin: 0;
  183. font-size: 12px;
  184. font-weight: bold;
  185. line-height: 18px;
  186. background-color: #f7f7f7;
  187. border-bottom: 1px solid #ebebeb;
  188. border-radius: 5px 5px 0 0;
  189. }
  190. .popover-content {
  191. padding: 4px 10px;
  192. font-size: 12px;
  193. }
  194. .popover .arrow,
  195. .popover .arrow:after {
  196. position: absolute;
  197. display: block;
  198. width: 0;
  199. height: 0;
  200. border-color: transparent;
  201. border-style: solid;
  202. }
  203. .popover .arrow {
  204. border-width: 11px;
  205. }
  206. .popover .arrow:after {
  207. border-width: 10px;
  208. content: "";
  209. }
  210. .popover.top .arrow {
  211. bottom: -11px;
  212. left: 50%;
  213. margin-left: -11px;
  214. border-top-color: #999999;
  215. border-top-color: rgba(0, 0, 0, 0.25);
  216. border-bottom-width: 0;
  217. }
  218. .popover.top .arrow:after {
  219. bottom: 1px;
  220. margin-left: -10px;
  221. border-top-color: #ffffff;
  222. border-bottom-width: 0;
  223. content: " ";
  224. }
  225. .popover.right .arrow {
  226. top: 50%;
  227. left: -11px;
  228. margin-top: -11px;
  229. border-right-color: #999999;
  230. border-right-color: rgba(0, 0, 0, 0.25);
  231. border-left-width: 0;
  232. }
  233. .popover.right .arrow:after {
  234. bottom: -10px;
  235. left: 1px;
  236. border-right-color: #ffffff;
  237. border-left-width: 0;
  238. content: " ";
  239. }
  240. .popover.bottom .arrow {
  241. top: -11px;
  242. left: 50%;
  243. margin-left: -11px;
  244. border-bottom-color: #999999;
  245. border-bottom-color: rgba(0, 0, 0, 0.25);
  246. border-top-width: 0;
  247. }
  248. .popover.bottom .arrow:after {
  249. top: 1px;
  250. margin-left: -10px;
  251. border-bottom-color: #ffffff;
  252. border-top-width: 0;
  253. content: " ";
  254. }
  255. .popover.left .arrow {
  256. top: 50%;
  257. right: -11px;
  258. margin-top: -11px;
  259. border-left-color: #999999;
  260. border-left-color: rgba(0, 0, 0, 0.25);
  261. border-right-width: 0;
  262. }
  263. .popover.left .arrow:after {
  264. right: 1px;
  265. bottom: -10px;
  266. border-left-color: #ffffff;
  267. border-right-width: 0;
  268. content: " ";
  269. }