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.

214 lines
5.3 KiB

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