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.

341 lines
6.6 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: 0.42em;
  33. right: -1em;
  34. border: medium none;
  35. background-color: #FFFFFF;
  36. width: 2.2em;
  37. height: 2.2em;
  38. transform: rotate(-45deg);
  39. box-shadow: -1px -1px 0 0 rgba(0, 0, 0, 0.15) inset;
  40. }
  41. .ui.step,
  42. .ui.steps .step,
  43. .ui.steps .step:after {
  44. -webkit-transition:
  45. background-color 0.1s ease,
  46. opacity 0.1s ease,
  47. color 0.1s ease,
  48. box-shadow 0.1s ease
  49. ;
  50. -moz-transition:
  51. background-color 0.1s ease,
  52. opacity 0.1s ease,
  53. color 0.1s ease,
  54. box-shadow 0.1s ease
  55. ;
  56. -o-transition:
  57. background-color 0.1s ease,
  58. opacity 0.1s ease,
  59. color 0.1s ease,
  60. box-shadow 0.1s ease
  61. ;
  62. -ms-transition:
  63. background-color 0.1s ease,
  64. opacity 0.1s ease,
  65. color 0.1s ease,
  66. box-shadow 0.1s ease
  67. ;
  68. transition:
  69. background-color 0.1s ease,
  70. opacity 0.1s ease,
  71. color 0.1s ease,
  72. box-shadow 0.1s ease
  73. ;
  74. }
  75. /*******************************
  76. Types
  77. *******************************/
  78. /* Vertical */
  79. .ui.vertical.steps {
  80. overflow: visible;
  81. }
  82. .ui.vertical.steps .step {
  83. display: block;
  84. border-radius: 0em;
  85. padding: 1em 2em;
  86. }
  87. .ui.vertical.steps .step:first-child {
  88. padding: 1em 2em;
  89. border-top-left-radius: 0.3125rem;
  90. border-top-right-radius: 0.3125rem;
  91. }
  92. .ui.vertical.steps .step:last-child {
  93. border-bottom-left-radius: 0.3125rem;
  94. border-bottom-right-radius: 0.3125rem;
  95. }
  96. /* Arrow */
  97. .ui.vertical.steps .step:after {
  98. display: none;
  99. }
  100. /* Active Arrow */
  101. .ui.vertical.steps .active.step:after {
  102. display: block;
  103. }
  104. /* Two Line */
  105. .ui.vertical.steps .two.line.step {
  106. line-height: 1.3;
  107. }
  108. .ui.vertical.steps .two.line.active.step:after {
  109. position: absolute;
  110. z-index: 2;
  111. content: '';
  112. top: 0em;
  113. right: -1.45em;
  114. background-color: transparent;
  115. border-bottom: 2.35em solid transparent;
  116. border-left: 1.55em solid #555555;
  117. border-top: 2.35em solid transparent;
  118. width: 0em;
  119. height: 0em;
  120. transform: none;
  121. }
  122. /*******************************
  123. Group
  124. *******************************/
  125. .ui.steps {
  126. cursor: pointer;
  127. display: inline-block;
  128. font-size: 0em;
  129. overflow: hidden;
  130. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  131. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  132. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  133. line-height: 1;
  134. -webkit-box-sizing: border-box;
  135. -moz-box-sizing: border-box;
  136. -ms-box-sizing: border-box;
  137. box-sizing: border-box;
  138. -moz-border-radius: 0.3125rem;
  139. -webkit-border-radius: 0.3125rem;
  140. border-radius: 0.3125rem;
  141. }
  142. .ui.steps .step:first-child {
  143. padding-left: 1.35em;
  144. -webkit-border-radius: 0.3125em 0em 0em 0.3125em;
  145. -moz-border-radius: 0.3125em 0em 0em 0.3125em;
  146. border-radius: 0.3125em 0em 0em 0.3125em;
  147. }
  148. .ui.steps .step:last-child {
  149. -webkit-border-radius: 0em 0.3125em 0.3125em 0em;
  150. -moz-border-radius: 0em 0.3125em 0.3125em 0em;
  151. border-radius: 0em 0.3125em 0.3125em 0em;
  152. }
  153. .ui.steps .step:only-child {
  154. -webkit-border-radius: 0.3125em;
  155. -moz-border-radius: 0.3125em;
  156. border-radius: 0.3125em;
  157. }
  158. .ui.steps .step:last-child {
  159. margin-right: 0em;
  160. }
  161. .ui.steps .step:last-child:after {
  162. display: none;
  163. }
  164. /*******************************
  165. States
  166. *******************************/
  167. /* Hover */
  168. .ui.step:hover,
  169. .ui.step.hover {
  170. background-color: #F7F7F7;
  171. color: rgba(0, 0, 0, 0.8);
  172. }
  173. .ui.steps .step.hover:after,
  174. .ui.steps .step:hover:after,
  175. .ui.step:hover,
  176. .ui.step.hover::after {
  177. background-color: #F7F7F7;
  178. }
  179. /* Hover */
  180. .ui.steps .step.down,
  181. .ui.steps .step:active,
  182. .ui.step.down,
  183. .ui.step:active {
  184. background-color: #F0F0F0;
  185. }
  186. .ui.steps .step.down:after,
  187. .ui.steps .step:active:after,
  188. .ui.steps.down::after,
  189. .ui.steps:active::after {
  190. background-color: #F0F0F0;
  191. }
  192. /* Active */
  193. .ui.steps .step.active,
  194. .ui.active.step {
  195. cursor: auto;
  196. background-color: #555555;
  197. color: #FFFFFF;
  198. font-weight: bold;
  199. }
  200. .ui.steps .step.active:after,
  201. .ui.active.steps:after {
  202. background-color: #555555;
  203. box-shadow: none;
  204. }
  205. /* Disabled */
  206. .ui.steps .disabled.step,
  207. .ui.disabled.step {
  208. cursor: auto;
  209. background-color: #FFFFFF;
  210. color: #CBCBCB;
  211. }
  212. .ui.steps .disabled.step:after,
  213. .ui.disabled.step:after {
  214. background-color: #FFFFFF;
  215. }
  216. /*******************************
  217. Variations
  218. *******************************/
  219. /* Attached */
  220. .attached.ui.steps {
  221. margin: 0em;
  222. -webkit-border-radius: 0.3125em 0.3125em 0em 0em;
  223. -moz-border-radius: 0.3125em 0.3125em 0em 0em;
  224. border-radius: 0.3125em 0.3125em 0em 0em;
  225. }
  226. .attached.ui.steps .step:first-child {
  227. -webkit-border-radius: 0.3125em 0em 0em 0em;
  228. -moz-border-radius: 0.3125em 0em 0em 0em;
  229. border-radius: 0.3125em 0em 0em 0em;
  230. }
  231. .attached.ui.steps .step:last-child {
  232. -webkit-border-radius: 0em 0.3125em 0em 0em;
  233. -moz-border-radius: 0em 0.3125em 0em 0em;
  234. border-radius: 0em 0.3125em 0em 0em;
  235. }
  236. /* Bottom Side */
  237. .bottom.attached.ui.steps {
  238. margin-top: -1px;
  239. -webkit-border-radius: 0em 0em 0.3125em 0.3125em;
  240. -moz-border-radius: 0em 0em 0.3125em 0.3125em;
  241. border-radius: 0em 0em 0.3125em 0.3125em;
  242. }
  243. .bottom.attached.ui.steps .step:first-child {
  244. -webkit-border-radius: 0em 0em 0em 0.3125em;
  245. -moz-border-radius: 0em 0em 0em 0.3125em;
  246. border-radius: 0em 0em 0em 0.3125em;
  247. }
  248. .bottom.attached.ui.steps .step:last-child {
  249. -webkit-border-radius: 0em 0em 0.3125em 0em;
  250. -moz-border-radius: 0em 0em 0.3125em 0em;
  251. border-radius: 0em 0em 0.3125em 0em;
  252. }
  253. /* Evenly divided */
  254. .ui.one.steps,
  255. .ui.two.steps,
  256. .ui.three.steps,
  257. .ui.four.steps,
  258. .ui.five.steps,
  259. .ui.six.steps,
  260. .ui.seven.steps,
  261. .ui.eight.steps {
  262. display: block;
  263. }
  264. .ui.one.steps > .step {
  265. width: 100%;
  266. }
  267. .ui.two.steps > .step {
  268. width: 50%;
  269. }
  270. .ui.three.steps > .step {
  271. width: 33.333%;
  272. }
  273. .ui.four.steps > .step {
  274. width: 25%;
  275. }
  276. .ui.five.steps > .step {
  277. width: 20%;
  278. }
  279. .ui.six.steps > .step {
  280. width: 16.666%;
  281. }
  282. .ui.seven.steps > .step {
  283. width: 14.285%;
  284. }
  285. .ui.eight.steps > .step {
  286. width: 12.500%;
  287. }
  288. /*******************************
  289. Sizes
  290. *******************************/
  291. .ui.small.step,
  292. .ui.small.steps .step {
  293. font-size: 0.8rem;
  294. }
  295. .ui.step,
  296. .ui.steps .step {
  297. font-size: 1rem;
  298. }
  299. .ui.large.step,
  300. .ui.large.steps .step {
  301. font-size: 1.25rem;
  302. }