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.

323 lines
5.9 KiB

11 years ago
11 years ago
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. /*
  2. * # Semantic - Steps
  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. Step
  13. *******************************/
  14. .ui.step,
  15. .ui.steps .step {
  16. display: inline-block;
  17. position: relative;
  18. padding: 1em 3em 1em 2em;
  19. vertical-align: top;
  20. background-color: #FFFFFF;
  21. color: #888888;
  22. -webkit-box-sizing: border-box;
  23. -moz-box-sizing: border-box;
  24. -ms-box-sizing: border-box;
  25. box-sizing: border-box;
  26. }
  27. .ui.step:after,
  28. .ui.steps .step:after {
  29. position: absolute;
  30. z-index: 2;
  31. content: '';
  32. top: 0.42em;
  33. left: -1em;
  34. border: medium none;
  35. background-color: #FFFFFF;
  36. width: 2.2em;
  37. height: 2.2em;
  38. -webkit-transform: rotate(45deg);
  39. -moz-transform: rotate(45deg);
  40. -ms-transform: rotate(45deg);
  41. transform: rotate(45deg);
  42. -webkit-box-shadow: 1px -1px 0 0 rgba(0, 0, 0, 0.15) inset;
  43. box-shadow: 1px -1px 0 0 rgba(0, 0, 0, 0.15) inset;
  44. }
  45. .ui.step,
  46. .ui.steps .step,
  47. .ui.steps .step:after {
  48. -webkit-transition:
  49. background-color 0.1s ease,
  50. opacity 0.1s ease,
  51. color 0.1s ease,
  52. -webkit-box-shadow 0.1s ease;
  53. -moz-transition:
  54. background-color 0.1s ease,
  55. opacity 0.1s ease,
  56. color 0.1s ease,
  57. box-shadow 0.1s ease
  58. ;
  59. transition:
  60. background-color 0.1s ease,
  61. opacity 0.1s ease,
  62. color 0.1s ease,
  63. box-shadow 0.1s ease
  64. ;
  65. }
  66. /*******************************
  67. Types
  68. *******************************/
  69. /* Vertical */
  70. .ui.vertical.steps {
  71. overflow: visible;
  72. }
  73. .ui.vertical.steps .step {
  74. display: block;
  75. border-radius: 0em;
  76. padding: 1em 2em;
  77. }
  78. .ui.vertical.steps .step:first-child {
  79. padding: 1em 2em;
  80. border-radius:0em;
  81. border-top-right-radius: 0.3125rem;
  82. border-top-left-radius: 0.3125rem;
  83. }
  84. .ui.vertical.steps .active.step:first-child {
  85. border-top-left-radius: 0rem;
  86. }
  87. .ui.vertical.steps .step:last-child {
  88. border-radius:0em;
  89. border-bottom-right-radius: 0.3125rem;
  90. border-bottom-left-radius: 0.3125rem;
  91. }
  92. .ui.vertical.steps .active.step:last-child {
  93. border-bottom-left-radius: 0rem;
  94. }
  95. /* Arrow */
  96. .ui.vertical.steps .step:after {
  97. display: none;
  98. }
  99. /* Active Arrow */
  100. .ui.vertical.steps .active.step:after {
  101. display: block;
  102. }
  103. /* Two Line */
  104. .ui.vertical.steps .two.line.step {
  105. line-height: 1.3;
  106. }
  107. .ui.vertical.steps .two.line.active.step:after {
  108. position: absolute;
  109. z-index: 2;
  110. content: '';
  111. top: 0em;
  112. left: -1.45em;
  113. background-color: transparent;
  114. border-bottom: 2.35em solid transparent;
  115. border-right: 1.55em solid #555555;
  116. border-top: 2.35em solid transparent;
  117. width: 0em;
  118. height: 0em;
  119. -webkit-transform: none;
  120. -moz-transform: none;
  121. -ms-transform: none;
  122. transform: none;
  123. }
  124. /*******************************
  125. Group
  126. *******************************/
  127. .ui.steps {
  128. cursor: pointer;
  129. display: inline-block;
  130. font-size: 0em;
  131. overflow: hidden;
  132. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  133. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  134. line-height: 1;
  135. -webkit-box-sizing: border-box;
  136. -moz-box-sizing: border-box;
  137. -ms-box-sizing: border-box;
  138. box-sizing: border-box;
  139. border-radius: 0.3125rem;
  140. }
  141. .ui.steps .step:first-child {
  142. padding-right: 1.35em;
  143. border-radius: 0em 0.3125em 0.3125em 0em;
  144. }
  145. .ui.steps .step:last-child {
  146. border-radius: 0.3125em 0em 0em 0.3125em;
  147. }
  148. .ui.steps .step:only-child {
  149. border-radius: 0.3125em;
  150. }
  151. .ui.steps .step:last-child {
  152. margin-left: 0em;
  153. }
  154. .ui.steps .step:last-child:after {
  155. display: none;
  156. }
  157. /*******************************
  158. States
  159. *******************************/
  160. /* Hover */
  161. .ui.step:hover,
  162. .ui.step.hover {
  163. background-color: #F7F7F7;
  164. color: rgba(0, 0, 0, 0.8);
  165. }
  166. .ui.steps .step.hover:after,
  167. .ui.steps .step:hover:after,
  168. .ui.step:hover,
  169. .ui.step.hover::after {
  170. background-color: #F7F7F7;
  171. }
  172. /* Hover */
  173. .ui.steps .step.down,
  174. .ui.steps .step:active,
  175. .ui.step.down,
  176. .ui.step:active {
  177. background-color: #F0F0F0;
  178. }
  179. .ui.steps .step.down:after,
  180. .ui.steps .step:active:after,
  181. .ui.steps.down::after,
  182. .ui.steps:active::after {
  183. background-color: #F0F0F0;
  184. }
  185. /* Active */
  186. .ui.steps .step.active,
  187. .ui.active.step {
  188. cursor: auto;
  189. background-color: #555555;
  190. color: #FFFFFF;
  191. font-weight: bold;
  192. }
  193. .ui.steps .step.active:after,
  194. .ui.active.steps:after {
  195. background-color: #555555;
  196. -webkit-box-shadow: none;
  197. box-shadow: none;
  198. }
  199. /* Disabled */
  200. .ui.steps .disabled.step,
  201. .ui.disabled.step {
  202. cursor: auto;
  203. background-color: #FFFFFF;
  204. color: #CBCBCB;
  205. }
  206. .ui.steps .disabled.step:after,
  207. .ui.disabled.step:after {
  208. background-color: #FFFFFF;
  209. }
  210. /*******************************
  211. Variations
  212. *******************************/
  213. /* Attached */
  214. .attached.ui.steps {
  215. margin: 0em;
  216. border-radius: 0.3125em 0.3125em 0em 0em;
  217. }
  218. .attached.ui.steps .step:first-child {
  219. border-radius: 0em 0.3125em 0em 0em;
  220. }
  221. .attached.ui.steps .step:last-child {
  222. border-radius: 0.3125em 0em 0em 0em;
  223. }
  224. /* Bottom Side */
  225. .bottom.attached.ui.steps {
  226. margin-top: -1px;
  227. border-radius: 0em 0em 0.3125em 0.3125em;
  228. }
  229. .bottom.attached.ui.steps .step:first-child {
  230. border-radius: 0em 0em 0.3125em 0em;
  231. }
  232. .bottom.attached.ui.steps .step:last-child {
  233. border-radius: 0em 0em 0em 0.3125em;
  234. }
  235. /* Evenly divided */
  236. .ui.one.steps,
  237. .ui.two.steps,
  238. .ui.three.steps,
  239. .ui.four.steps,
  240. .ui.five.steps,
  241. .ui.six.steps,
  242. .ui.seven.steps,
  243. .ui.eight.steps {
  244. display: block;
  245. }
  246. .ui.one.steps > .step {
  247. width: 100%;
  248. }
  249. .ui.two.steps > .step {
  250. width: 50%;
  251. }
  252. .ui.three.steps > .step {
  253. width: 33.333%;
  254. }
  255. .ui.four.steps > .step {
  256. width: 25%;
  257. }
  258. .ui.five.steps > .step {
  259. width: 20%;
  260. }
  261. .ui.six.steps > .step {
  262. width: 16.666%;
  263. }
  264. .ui.seven.steps > .step {
  265. width: 14.285%;
  266. }
  267. .ui.eight.steps > .step {
  268. width: 12.500%;
  269. }
  270. /*******************************
  271. Sizes
  272. *******************************/
  273. .ui.small.step,
  274. .ui.small.steps .step {
  275. font-size: 0.8rem;
  276. }
  277. .ui.step,
  278. .ui.steps .step {
  279. font-size: 1rem;
  280. }
  281. .ui.large.step,
  282. .ui.large.steps .step {
  283. font-size: 1.25rem;
  284. }