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.

294 lines
5.8 KiB

  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.45em;
  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:
  45. opacity 0.1s ease,
  46. color 0.1s ease,
  47. box-shadow 0.1s ease
  48. ;
  49. -moz-transition:
  50. opacity 0.1s ease,
  51. color 0.1s ease,
  52. box-shadow 0.1s ease
  53. ;
  54. -o-transition:
  55. opacity 0.1s ease,
  56. color 0.1s ease,
  57. box-shadow 0.1s ease
  58. ;
  59. -ms-transition:
  60. opacity 0.1s ease,
  61. color 0.1s ease,
  62. box-shadow 0.1s ease
  63. ;
  64. transition:
  65. opacity 0.1s ease,
  66. color 0.1s ease,
  67. box-shadow 0.1s ease
  68. ;
  69. }
  70. /*******************************
  71. Group
  72. *******************************/
  73. .ui.steps {
  74. cursor: pointer;
  75. display: inline-block;
  76. font-size: 0em;
  77. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  78. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  79. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  80. line-height: 1;
  81. -webkit-box-sizing: border-box;
  82. -moz-box-sizing: border-box;
  83. -ms-box-sizing: border-box;
  84. box-sizing: border-box;
  85. -moz-border-radius: 0.3125rem;
  86. -webkit-border-radius: 0.3125rem;
  87. border-radius: 0.3125rem;
  88. }
  89. .ui.steps .step:first-child {
  90. padding-left: 1.35em;
  91. -webkit-border-radius: 0.3125em 0em 0em 0.3125em;
  92. -moz-border-radius: 0.3125em 0em 0em 0.3125em;
  93. border-radius: 0.3125em 0em 0em 0.3125em;
  94. }
  95. .ui.steps .step:last-child {
  96. -webkit-border-radius: 0em 0.3125em 0.3125em 0em;
  97. -moz-border-radius: 0em 0.3125em 0.3125em 0em;
  98. border-radius: 0em 0.3125em 0.3125em 0em;
  99. }
  100. .ui.steps .step:only-child {
  101. -webkit-border-radius: 0.3125em;
  102. -moz-border-radius: 0.3125em;
  103. border-radius: 0.3125em;
  104. }
  105. .ui.steps .step:last-child {
  106. margin-right: 0em;
  107. }
  108. .ui.steps .step:last-child:after {
  109. display: none;
  110. }
  111. /*******************************
  112. States
  113. *******************************/
  114. /* Hover */
  115. .ui.step:hover,
  116. .ui.step.hover {
  117. background-color: #F7F7F7;
  118. color: rgba(0, 0, 0, 0.8);
  119. }
  120. .ui.steps .step.hover:after,
  121. .ui.steps .step:hover:after,
  122. .ui.step:hover,
  123. .ui.step.hover::after {
  124. border-left-color: #F7F7F7;
  125. }
  126. /* Hover */
  127. .ui.steps .step.down,
  128. .ui.steps .step:active,
  129. .ui.step.down,
  130. .ui.step:active {
  131. background-color: #F0F0F0;
  132. }
  133. .ui.steps .step.down:after,
  134. .ui.steps .step:active:after,
  135. .ui.steps.down::after,
  136. .ui.steps:active::after {
  137. border-left-color: #F0F0F0;
  138. }
  139. /* Active */
  140. .ui.steps .step.active,
  141. .ui.active.step {
  142. cursor: auto;
  143. background-color: #555555;
  144. color: #FFFFFF;
  145. font-weight: bold;
  146. }
  147. .ui.steps .step.active:after,
  148. .ui.active.steps:after {
  149. border-left-color: #555555;
  150. }
  151. /* Disabled */
  152. .ui.steps .disabled.step,
  153. .ui.disabled.step {
  154. cursor: auto;
  155. background-color: #FFFFFF;
  156. color: #CBCBCB;
  157. }
  158. .ui.disabled.step:after {
  159. border: none;
  160. background-color: #FFFFFF;
  161. top: 0.42em;
  162. right: -1em;
  163. width: 2.15em;
  164. height: 2.15em;
  165. -webkit-transform: rotate(-45deg);
  166. -moz-transform: rotate(-45deg);
  167. -o-transform: rotate(-45deg);
  168. -ms-transform: rotate(-45deg);
  169. transform: rotate(-45deg);
  170. -webkit-box-shadow: -1px -1px 0px 0px rgba(0, 0, 0, 0.1) inset;
  171. -moz-box-shadow: -1px -1px 0px 0px rgba(0, 0, 0, 0.1) inset;
  172. box-shadow: -1px -1px 0px 0px rgba(0, 0, 0, 0.1) inset;
  173. }
  174. /*******************************
  175. Variations
  176. *******************************/
  177. /* Attached */
  178. .attached.ui.steps {
  179. margin: 0em;
  180. -webkit-border-radius: 0.3125em 0.3125em 0em 0em;
  181. -moz-border-radius: 0.3125em 0.3125em 0em 0em;
  182. border-radius: 0.3125em 0.3125em 0em 0em;
  183. }
  184. .attached.ui.steps .step:first-child {
  185. -webkit-border-radius: 0.3125em 0em 0em 0em;
  186. -moz-border-radius: 0.3125em 0em 0em 0em;
  187. border-radius: 0.3125em 0em 0em 0em;
  188. }
  189. .attached.ui.steps .step:last-child {
  190. -webkit-border-radius: 0em 0.3125em 0em 0em;
  191. -moz-border-radius: 0em 0.3125em 0em 0em;
  192. border-radius: 0em 0.3125em 0em 0em;
  193. }
  194. /* Bottom Side */
  195. .bottom.attached.ui.steps {
  196. margin-top: -1px;
  197. -webkit-border-radius: 0em 0em 0.3125em 0.3125em;
  198. -moz-border-radius: 0em 0em 0.3125em 0.3125em;
  199. border-radius: 0em 0em 0.3125em 0.3125em;
  200. }
  201. .bottom.attached.ui.steps .step:first-child {
  202. -webkit-border-radius: 0em 0em 0em 0.3125em;
  203. -moz-border-radius: 0em 0em 0em 0.3125em;
  204. border-radius: 0em 0em 0em 0.3125em;
  205. }
  206. .bottom.attached.ui.steps .step:last-child {
  207. -webkit-border-radius: 0em 0em 0.3125em 0em;
  208. -moz-border-radius: 0em 0em 0.3125em 0em;
  209. border-radius: 0em 0em 0.3125em 0em;
  210. }
  211. /* Evenly divided */
  212. .ui.one.steps,
  213. .ui.two.steps,
  214. .ui.three.steps,
  215. .ui.four.steps,
  216. .ui.five.steps,
  217. .ui.six.steps,
  218. .ui.seven.steps,
  219. .ui.eight.steps {
  220. display: block;
  221. }
  222. .ui.one.steps > .step {
  223. width: 100%;
  224. }
  225. .ui.two.steps > .step {
  226. width: 50%;
  227. }
  228. .ui.three.steps > .step {
  229. width: 33.333%;
  230. }
  231. .ui.four.steps > .step {
  232. width: 25%;
  233. }
  234. .ui.five.steps > .step {
  235. width: 20%;
  236. }
  237. .ui.six.steps > .step {
  238. width: 16.666%;
  239. }
  240. .ui.seven.steps > .step {
  241. width: 14.285%;
  242. }
  243. .ui.eight.steps > .step {
  244. width: 12.500%;
  245. }
  246. /*******************************
  247. Sizes
  248. *******************************/
  249. .ui.small.step,
  250. .ui.small.steps .step {
  251. font-size: 0.8rem;
  252. }
  253. .ui.step,
  254. .ui.steps .step {
  255. font-size: 1rem;
  256. }
  257. .ui.large.step,
  258. .ui.large.steps .step {
  259. font-size: 1.25rem;
  260. }