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.

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