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.

209 lines
3.4 KiB

  1. .ui.step,
  2. .ui.steps .step {
  3. display: inline-block;
  4. position: relative;
  5. padding: 1em 3em 1em 2em;
  6. vertical-align: top;
  7. background-color: #FFF;
  8. color: #888;
  9. -moz-box-sizing: border-box;
  10. -ms-box-sizing: border-box;
  11. box-sizing: border-box;
  12. }
  13. .ui.step:after,
  14. .ui.steps .step:after {
  15. position: absolute;
  16. z-index: 2;
  17. content: '';
  18. top: 0;
  19. left: -1.45em;
  20. border-bottom: 1.5em solid transparent;
  21. border-right: 1.5em solid #FFF;
  22. border-top: 1.5em solid transparent;
  23. width: 0;
  24. height: 0;
  25. }
  26. .ui.step,
  27. .ui.steps .step,
  28. .ui.steps .step:after {
  29. -webkit-transition: opacity .1s ease,color .1s ease,box-shadow .1s ease;
  30. transition: opacity .1s ease,color .1s ease,box-shadow .1s ease;
  31. }
  32. .ui.steps {
  33. cursor: pointer;
  34. display: inline-block;
  35. font-size: 0;
  36. box-shadow: 0 0 0 1px rgba(0,0,0,.1);
  37. line-height: 1;
  38. -moz-box-sizing: border-box;
  39. -ms-box-sizing: border-box;
  40. box-sizing: border-box;
  41. border-radius: .3125rem;
  42. }
  43. .ui.steps .step:first-child {
  44. padding-right: 1.35em;
  45. border-radius: 0 .3125em .3125em 0;
  46. }
  47. .ui.steps .step:last-child {
  48. border-radius: .3125em 0 0 .3125em;
  49. }
  50. .ui.steps .step:only-child {
  51. border-radius: .3125em;
  52. }
  53. .ui.steps .step:last-child {
  54. margin-left: 0;
  55. }
  56. .ui.steps .step:last-child:after {
  57. display: none;
  58. }
  59. .ui.step:hover,
  60. .ui.step.hover {
  61. background-color: #F7F7F7;
  62. color: rgba(0,0,0,.8);
  63. }
  64. .ui.steps .step.hover:after,
  65. .ui.steps .step:hover:after,
  66. .ui.step:hover,
  67. .ui.step.hover::after {
  68. border-right-color: #F7F7F7;
  69. }
  70. .ui.steps .step.down,
  71. .ui.steps .step:active,
  72. .ui.step.down,
  73. .ui.step:active {
  74. background-color: #F0F0F0;
  75. }
  76. .ui.steps .step.down:after,
  77. .ui.steps .step:active:after,
  78. .ui.steps.down::after,
  79. .ui.steps:active::after {
  80. border-right-color: #F0F0F0;
  81. }
  82. .ui.steps .step.active,
  83. .ui.active.step {
  84. cursor: auto;
  85. background-color: #555;
  86. color: #FFF;
  87. font-weight: 700;
  88. }
  89. .ui.steps .step.active:after,
  90. .ui.active.steps:after {
  91. border-right-color: #555;
  92. }
  93. .ui.steps .disabled.step,
  94. .ui.disabled.step {
  95. cursor: auto;
  96. background-color: #FFF;
  97. color: #CBCBCB;
  98. }
  99. .ui.disabled.step:after {
  100. border: 0;
  101. background-color: #FFF;
  102. top: .42em;
  103. left: -1em;
  104. width: 2.15em;
  105. height: 2.15em;
  106. -webkit-transform: rotate(-45deg);
  107. -ms-transform: rotate(-45deg);
  108. transform: rotate(-45deg);
  109. box-shadow: -1px -1px 0 0 rgba(0,0,0,.1) inset;
  110. }
  111. .attached.ui.steps {
  112. margin: 0;
  113. border-radius: .3125em .3125em 0 0;
  114. }
  115. .attached.ui.steps .step:first-child {
  116. border-radius: 0 .3125em 0;
  117. }
  118. .attached.ui.steps .step:last-child {
  119. border-radius: .3125em 0 0 0;
  120. }
  121. .bottom.attached.ui.steps {
  122. margin-top: -1px;
  123. border-radius: 0 0 .3125em .3125em;
  124. }
  125. .bottom.attached.ui.steps .step:first-child {
  126. border-radius: 0 0 .3125em 0;
  127. }
  128. .bottom.attached.ui.steps .step:last-child {
  129. border-radius: 0 0 .3125em;
  130. }
  131. .ui.one.steps,
  132. .ui.two.steps,
  133. .ui.three.steps,
  134. .ui.four.steps,
  135. .ui.five.steps,
  136. .ui.six.steps,
  137. .ui.seven.steps,
  138. .ui.eight.steps {
  139. display: block;
  140. }
  141. .ui.one.steps>.step {
  142. width: 100%;
  143. }
  144. .ui.two.steps>.step {
  145. width: 50%;
  146. }
  147. .ui.three.steps>.step {
  148. width: 33.333%;
  149. }
  150. .ui.four.steps>.step {
  151. width: 25%;
  152. }
  153. .ui.five.steps>.step {
  154. width: 20%;
  155. }
  156. .ui.six.steps>.step {
  157. width: 16.666%;
  158. }
  159. .ui.seven.steps>.step {
  160. width: 14.285%;
  161. }
  162. .ui.eight.steps>.step {
  163. width: 12.5%;
  164. }
  165. .ui.small.step,
  166. .ui.small.steps .step {
  167. font-size: .8rem;
  168. }
  169. .ui.step,
  170. .ui.steps .step {
  171. font-size: 1rem;
  172. }
  173. .ui.large.step,
  174. .ui.large.steps .step {
  175. font-size: 1.25rem;
  176. }