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.

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