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.

207 lines
6.1 KiB

  1. .ui.steps {
  2. display: inline-block;
  3. font-size: 0em;
  4. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  5. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  6. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  7. -moz-border-radius: 0.3125rem;
  8. -webkit-border-radius: 0.3125rem;
  9. border-radius: 0.3125rem;
  10. }
  11. .ui.steps .step {
  12. display: inline-block;
  13. position: relative;
  14. padding: 0.82em 2em 0.82em 3em;
  15. background-color: #FFFFFF;
  16. color: #888888;
  17. }
  18. .ui.steps .step:after {
  19. position: absolute;
  20. content: '';
  21. z-index: 2;
  22. top: 0.45em;
  23. right: -1em;
  24. width: 2em;
  25. height: 2em;
  26. border-top: 1px solid rgba(0, 0, 0, 0.1);
  27. border-right: 1px solid rgba(0, 0, 0, 0.1);
  28. background-color: #FFFFFF;
  29. -moz-transform: rotate(45deg);
  30. -webkit-transform: rotate(45deg);
  31. transform: rotate(45deg);
  32. }
  33. .ui.steps .step:first-child {
  34. padding-left: 1.35em;
  35. -webkit-border-radius: 0.3125em 0em 0em 0.3125em;
  36. -moz-border-radius: 0.3125em 0em 0em 0.3125em;
  37. border-radius: 0.3125em 0em 0em 0.3125em;
  38. }
  39. .ui.steps .step:last-child {
  40. -webkit-border-radius: 0em 0.3125em 0.3125em 0em;
  41. -moz-border-radius: 0em 0.3125em 0.3125em 0em;
  42. border-radius: 0em 0.3125em 0.3125em 0em;
  43. }
  44. .ui.steps .step:last-child {
  45. margin-right: 0em;
  46. }
  47. .ui.steps .step:last-child:after {
  48. width: 0em !important;
  49. height: 0em !important;
  50. }
  51. /*******************************
  52. Variations
  53. *******************************/
  54. /* Attached */
  55. .attached.ui.steps {
  56. margin: 0em;
  57. -webkit-border-radius: 0.3125em 0.3125em 0em 0em;
  58. -moz-border-radius: 0.3125em 0.3125em 0em 0em;
  59. border-radius: 0.3125em 0.3125em 0em 0em;
  60. }
  61. .attached.ui.steps .step:first-child {
  62. -webkit-border-radius: 0.3125em 0em 0em 0em;
  63. -moz-border-radius: 0.3125em 0em 0em 0em;
  64. border-radius: 0.3125em 0em 0em 0em;
  65. }
  66. .attached.ui.steps .step:last-child {
  67. -webkit-border-radius: 0em 0.3125em 0em 0em;
  68. -moz-border-radius: 0em 0.3125em 0em 0em;
  69. border-radius: 0em 0.3125em 0em 0em;
  70. }
  71. /* Bottom Side */
  72. .bottom.attached.ui.steps {
  73. margin-top: -1px;
  74. -webkit-border-radius: 0em 0em 0.3125em 0.3125em;
  75. -moz-border-radius: 0em 0em 0.3125em 0.3125em;
  76. border-radius: 0em 0em 0.3125em 0.3125em;
  77. }
  78. .bottom.attached.ui.steps .step:first-child {
  79. -webkit-border-radius: 0em 0em 0em 0.3125em;
  80. -moz-border-radius: 0em 0em 0em 0.3125em;
  81. border-radius: 0em 0em 0em 0.3125em;
  82. }
  83. .bottom.attached.ui.steps .step:last-child {
  84. -webkit-border-radius: 0em 0em 0.3125em 0em;
  85. -moz-border-radius: 0em 0em 0.3125em 0em;
  86. border-radius: 0em 0em 0.3125em 0em;
  87. }
  88. /* Fluid */
  89. .ui.steps.fluid,
  90. .ui.steps.fluid > .step {
  91. width: 100%;
  92. -webkit-box-sizing: border-box;
  93. -moz-box-sizing: border-box;
  94. -ms-box-sizing: border-box;
  95. box-sizing: border-box;
  96. }
  97. .ui.steps.two.fluid > .step {
  98. width: 50%;
  99. }
  100. .ui.steps.three.fluid > .step {
  101. width: 33.333%;
  102. }
  103. .ui.steps.four.fluid > .step {
  104. width: 25%;
  105. }
  106. .ui.steps.five.fluid > .step {
  107. width: 20%;
  108. }
  109. .ui.steps.six.fluid > .step {
  110. width: 16.666%;
  111. }
  112. .ui.steps.seven.fluid > .step {
  113. width: 14.285%;
  114. }
  115. .ui.steps.eight.fluid > .step {
  116. width: 12.500%;
  117. }
  118. /*******************************
  119. Sizes
  120. *******************************/
  121. .ui.steps .step {
  122. font-size: 1rem;
  123. }
  124. /*******************************
  125. States
  126. *******************************/
  127. /* Hover */
  128. .ui.steps .hover.step {
  129. cursor: pointer;
  130. background: -webkit-linear-gradient(top, #ffffff 0%, #f0f0f0 100%);
  131. background: -moz-linear-gradient(top, #ffffff 0%, #f0f0f0 100%);
  132. background: -o-linear-gradient(top, #ffffff 0%, #f0f0f0 100%);
  133. background: -ms-linear-gradient(top, #ffffff 0%, #f0f0f0 100%);
  134. background: linear-gradient(top, #ffffff 0%, #f0f0f0 100%);
  135. -moz-box-shadow: 0em 0em 2px rgba(0, 0, 0, 0.2);
  136. -webkit-box-shadow: 0em 0em 2px rgba(0, 0, 0, 0.2);
  137. box-shadow: 0em 0em 2px rgba(0, 0, 0, 0.2);
  138. }
  139. .ui.steps .hover.step:after {
  140. cursor: pointer;
  141. background: -webkit-linear-gradient(top left, #ffffff 0%, #f0f0f0 100%);
  142. background: -moz-linear-gradient(top left, #ffffff 0%, #f0f0f0 100%);
  143. background: -o-linear-gradient(top left, #ffffff 0%, #f0f0f0 100%);
  144. background: -ms-linear-gradient(top left, #ffffff 0%, #f0f0f0 100%);
  145. background: linear-gradient(top left, #ffffff 0%, #f0f0f0 100%);
  146. -moz-box-shadow: 2px -2px 1px rgba(0, 0, 0, 0.2);
  147. -webkit-box-shadow: 2px -2px 1px rgba(0, 0, 0, 0.2);
  148. box-shadow: 2px -2px 1px rgba(0, 0, 0, 0.2);
  149. }
  150. .ui.steps .hover.step:before {
  151. position: absolute;
  152. top: 7px;
  153. left: -10.3125em;
  154. width: 32px;
  155. height: 31px;
  156. content: '';
  157. background-color: transparent;
  158. background-image: none;
  159. -moz-box-shadow: -1px 1px 1px 0em rgba(0, 0, 0, 0.1) inset;
  160. -webkit-box-shadow: -1px 1px 1px 0em rgba(0, 0, 0, 0.1) inset;
  161. box-shadow: -1px 1px 1px 0em rgba(0, 0, 0, 0.1) inset;
  162. -moz-transform: rotate(45deg);
  163. -webkit-transform: rotate(45deg);
  164. transform: rotate(45deg);
  165. z-index: 2;
  166. }
  167. .ui.steps .hover:first-child:before {
  168. width: 0em;
  169. height: 0em;
  170. }
  171. /* Down */
  172. .ui.steps .down.step {
  173. background: -webkit-linear-gradient(top, #f0f0f0 0%, #ffffff 100%);
  174. background: -moz-linear-gradient(top, #f0f0f0 0%, #ffffff 100%);
  175. background: -o-linear-gradient(top, #f0f0f0 0%, #ffffff 100%);
  176. background: -ms-linear-gradient(top, #f0f0f0 0%, #ffffff 100%);
  177. background: linear-gradient(top, #f0f0f0 0%, #ffffff 100%);
  178. }
  179. .ui.steps .down.step:after {
  180. background: -webkit-linear-gradient(top left, #f0f0f0 0%, #ffffff 100%);
  181. background: -moz-linear-gradient(top left, #f0f0f0 0%, #ffffff 100%);
  182. background: -o-linear-gradient(top left, #f0f0f0 0%, #ffffff 100%);
  183. background: -ms-linear-gradient(top left, #f0f0f0 0%, #ffffff 100%);
  184. background: linear-gradient(top left, #f0f0f0 0%, #ffffff 100%);
  185. }
  186. /* Active */
  187. .ui.steps .active.step {
  188. cursor: auto;
  189. background-color: #555555;
  190. color: #FFFFFF;
  191. font-weight: bold;
  192. }
  193. .ui.steps .active.step:first-child:before {
  194. width: 0em;
  195. height: 0em;
  196. }
  197. .ui.steps .active.step:after {
  198. background-color: #555555;
  199. border-color: #555555;
  200. -moz-box-shadow: -2px 2px 2px rgba(0, 0, 0, 0.15) inset;
  201. -webkit-box-shadow: -2px 2px 2px rgba(0, 0, 0, 0.15) inset;
  202. box-shadow: -2px 2px 2px rgba(0, 0, 0, 0.15) inset;
  203. }
  204. /* Disabled */
  205. .ui.steps .disabled.step {
  206. color: #BFBFBF;
  207. }