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.

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