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.

230 lines
5.6 KiB

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/quirkyinc/semantic
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. * Released: April 17 2013
  11. */
  12. /*******************************
  13. Step
  14. *******************************/
  15. .ui.step,
  16. .ui.steps .step {
  17. display: inline-block;
  18. position: relative;
  19. padding: 1em 2em 1em 3em;
  20. vertical-align: top;
  21. background-color: #FFFFFF;
  22. color: #888888;
  23. -webkit-box-sizing: border-box;
  24. -moz-box-sizing: border-box;
  25. -ms-box-sizing: border-box;
  26. box-sizing: border-box;
  27. }
  28. .ui.step:after,
  29. .ui.steps .step:after {
  30. position: absolute;
  31. z-index: 2;
  32. content: '';
  33. top: 0em;
  34. right: -1.48em;
  35. border-bottom: 1.5em solid transparent;
  36. border-left: 1.5em solid #FFFFFF;
  37. border-top: 1.5em solid transparent;
  38. width: 0em;
  39. height: 0em;
  40. }
  41. .ui.step,
  42. .ui.steps .step,
  43. .ui.steps .step:after {
  44. -webkit-transition: opacity 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
  45. -moz-transition: opacity 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
  46. -o-transition: opacity 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
  47. -ms-transition: opacity 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
  48. transition: opacity 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
  49. }
  50. /*******************************
  51. Group
  52. *******************************/
  53. .ui.steps {
  54. cursor: pointer;
  55. display: inline-block;
  56. font-size: 0em;
  57. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  58. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  59. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  60. line-height: 1;
  61. -webkit-box-sizing: border-box;
  62. -moz-box-sizing: border-box;
  63. -ms-box-sizing: border-box;
  64. box-sizing: border-box;
  65. -moz-border-radius: 0.3125rem;
  66. -webkit-border-radius: 0.3125rem;
  67. border-radius: 0.3125rem;
  68. }
  69. .ui.steps .step:first-child {
  70. padding-left: 1.35em;
  71. -webkit-border-radius: 0.3125em 0em 0em 0.3125em;
  72. -moz-border-radius: 0.3125em 0em 0em 0.3125em;
  73. border-radius: 0.3125em 0em 0em 0.3125em;
  74. }
  75. .ui.steps .step:last-child {
  76. -webkit-border-radius: 0em 0.3125em 0.3125em 0em;
  77. -moz-border-radius: 0em 0.3125em 0.3125em 0em;
  78. border-radius: 0em 0.3125em 0.3125em 0em;
  79. }
  80. .ui.steps .step:only-child {
  81. -webkit-border-radius: 0.3125em;
  82. -moz-border-radius: 0.3125em;
  83. border-radius: 0.3125em;
  84. }
  85. .ui.steps .step:last-child {
  86. margin-right: 0em;
  87. }
  88. .ui.steps .step:last-child:after {
  89. display: none;
  90. }
  91. /*******************************
  92. States
  93. *******************************/
  94. /* Hover */
  95. .ui.step:hover,
  96. .ui.step.hover {
  97. background-color: #F7F7F7;
  98. color: rgba(0, 0, 0, 0.8);
  99. }
  100. .ui.steps .step.hover:after,
  101. .ui.steps .step:hover:after,
  102. .ui.step:hover,
  103. .ui.step.hover::after {
  104. border-left-color: #F7F7F7;
  105. }
  106. /* Hover */
  107. .ui.steps .step.down,
  108. .ui.steps .step:active,
  109. .ui.step.down,
  110. .ui.step:active {
  111. background-color: #F0F0F0;
  112. }
  113. .ui.steps .step.down:after,
  114. .ui.steps .step:active:after,
  115. .ui.steps.down::after,
  116. .ui.steps:active::after {
  117. border-left-color: #F0F0F0;
  118. }
  119. /* Active */
  120. .ui.steps .step.active,
  121. .ui.active.step {
  122. cursor: auto;
  123. background-color: #555555;
  124. color: #FFFFFF;
  125. font-weight: bold;
  126. }
  127. .ui.steps .step.active:after,
  128. .ui.active.steps:after {
  129. border-left-color: #555555;
  130. }
  131. /* Disabled */
  132. .ui.steps .disabled.step,
  133. .ui.disabled.step {
  134. cursor: auto;
  135. background-color: #FFFFFF;
  136. color: #CBCBCB;
  137. }
  138. .ui.disabled.step:after {
  139. border: none;
  140. background-color: #FFFFFF;
  141. top: 0.42em;
  142. right: -1em;
  143. width: 2.15em;
  144. height: 2.15em;
  145. -webkit-transform: rotate(-45deg);
  146. -moz-transform: rotate(-45deg);
  147. -o-transform: rotate(-45deg);
  148. -ms-transform: rotate(-45deg);
  149. transform: rotate(-45deg);
  150. -webkit-box-shadow: -1px -1px 0px 0px rgba(0, 0, 0, 0.1) inset;
  151. -moz-box-shadow: -1px -1px 0px 0px rgba(0, 0, 0, 0.1) inset;
  152. box-shadow: -1px -1px 0px 0px rgba(0, 0, 0, 0.1) inset;
  153. }
  154. /*******************************
  155. Variations
  156. *******************************/
  157. /* Attached */
  158. .attached.ui.steps {
  159. margin: 0em;
  160. -webkit-border-radius: 0.3125em 0.3125em 0em 0em;
  161. -moz-border-radius: 0.3125em 0.3125em 0em 0em;
  162. border-radius: 0.3125em 0.3125em 0em 0em;
  163. }
  164. .attached.ui.steps .step:first-child {
  165. -webkit-border-radius: 0.3125em 0em 0em 0em;
  166. -moz-border-radius: 0.3125em 0em 0em 0em;
  167. border-radius: 0.3125em 0em 0em 0em;
  168. }
  169. .attached.ui.steps .step:last-child {
  170. -webkit-border-radius: 0em 0.3125em 0em 0em;
  171. -moz-border-radius: 0em 0.3125em 0em 0em;
  172. border-radius: 0em 0.3125em 0em 0em;
  173. }
  174. /* Bottom Side */
  175. .bottom.attached.ui.steps {
  176. margin-top: -1px;
  177. -webkit-border-radius: 0em 0em 0.3125em 0.3125em;
  178. -moz-border-radius: 0em 0em 0.3125em 0.3125em;
  179. border-radius: 0em 0em 0.3125em 0.3125em;
  180. }
  181. .bottom.attached.ui.steps .step:first-child {
  182. -webkit-border-radius: 0em 0em 0em 0.3125em;
  183. -moz-border-radius: 0em 0em 0em 0.3125em;
  184. border-radius: 0em 0em 0em 0.3125em;
  185. }
  186. .bottom.attached.ui.steps .step:last-child {
  187. -webkit-border-radius: 0em 0em 0.3125em 0em;
  188. -moz-border-radius: 0em 0em 0.3125em 0em;
  189. border-radius: 0em 0em 0.3125em 0em;
  190. }
  191. /* Fluid */
  192. .ui.one.steps > .step {
  193. width: 100%;
  194. }
  195. .ui.two.steps > .step {
  196. width: 50%;
  197. }
  198. .ui.three.steps > .step {
  199. width: 33.333%;
  200. }
  201. .ui.four.steps > .step {
  202. width: 25%;
  203. }
  204. .ui.five.steps > .step {
  205. width: 20%;
  206. }
  207. .ui.six.steps > .step {
  208. width: 16.666%;
  209. }
  210. .ui.seven.steps > .step {
  211. width: 14.285%;
  212. }
  213. .ui.eight.steps > .step {
  214. width: 12.500%;
  215. }
  216. /*******************************
  217. Sizes
  218. *******************************/
  219. .ui.small.step,
  220. .ui.small.steps .step {
  221. font-size: 0.8rem;
  222. }
  223. .ui.step,
  224. .ui.steps .step {
  225. font-size: 1rem;
  226. }
  227. .ui.large.step,
  228. .ui.large.steps .step {
  229. font-size: 1.25rem;
  230. }