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.

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