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