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.

318 lines
5.5 KiB

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