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.

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