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.

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