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.

639 lines
14 KiB

  1. /*!
  2. * # Semantic UI 2.1.6 - Step
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2015 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Plural
  13. *******************************/
  14. .ui.steps {
  15. display: -webkit-inline-box;
  16. display: -webkit-inline-flex;
  17. display: -ms-inline-flexbox;
  18. display: inline-flex;
  19. -webkit-box-orient: horizontal;
  20. -webkit-box-direction: normal;
  21. -webkit-flex-direction: row;
  22. -ms-flex-direction: row;
  23. flex-direction: row;
  24. -webkit-box-align: stretch;
  25. -webkit-align-items: stretch;
  26. -ms-flex-align: stretch;
  27. align-items: stretch;
  28. margin: 1em 0em;
  29. background: #FFFFFF;
  30. box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.15);
  31. line-height: 1.15384615em;
  32. border-radius: 0.2307em;
  33. border: 1px solid rgba(0, 0, 0, 0.13);
  34. }
  35. /* First Steps */
  36. .ui.steps:first-child {
  37. margin-top: 0em;
  38. }
  39. /* Last Steps */
  40. .ui.steps:last-child {
  41. margin-bottom: 0em;
  42. }
  43. /*******************************
  44. Singular
  45. *******************************/
  46. .ui.steps .step {
  47. position: relative;
  48. display: -webkit-box;
  49. display: -webkit-flex;
  50. display: -ms-flexbox;
  51. display: flex;
  52. -webkit-box-flex: 1;
  53. -webkit-flex: 1 0 auto;
  54. -ms-flex: 1 0 auto;
  55. flex: 1 0 auto;
  56. -webkit-flex-wrap: wrap;
  57. -ms-flex-wrap: wrap;
  58. flex-wrap: wrap;
  59. -webkit-box-orient: horizontal;
  60. -webkit-box-direction: normal;
  61. -webkit-flex-direction: row;
  62. -ms-flex-direction: row;
  63. flex-direction: row;
  64. vertical-align: middle;
  65. -webkit-box-align: center;
  66. -webkit-align-items: center;
  67. -ms-flex-align: center;
  68. align-items: center;
  69. -webkit-box-pack: center;
  70. -webkit-justify-content: center;
  71. -ms-flex-pack: center;
  72. justify-content: center;
  73. margin: 0em 0em;
  74. padding: 1em 2em;
  75. background: transparent -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.07));
  76. background: transparent linear-gradient(transparent, rgba(0, 0, 0, 0.07));
  77. color: rgba(0, 0, 0, 0.87);
  78. box-shadow: none;
  79. border-radius: 0em;
  80. border: none;
  81. border-right: 1px solid rgba(0, 0, 0, 0.13);
  82. -webkit-transition: background-color 0.1s ease, opacity 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
  83. transition: background-color 0.1s ease, opacity 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
  84. }
  85. /* Arrow */
  86. .ui.steps .step:after {
  87. display: none;
  88. position: absolute;
  89. z-index: 2;
  90. content: '';
  91. top: 100%;
  92. right: 50%;
  93. border: medium none;
  94. background-color: #FFFFFF;
  95. width: 1.15384615em;
  96. height: 1.15384615em;
  97. border-style: solid;
  98. border-color: rgba(0, 0, 0, 0.13);
  99. border-width: 0px 0px 1px 1px;
  100. -webkit-transition: background-color 0.1s ease, opacity 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
  101. transition: background-color 0.1s ease, opacity 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
  102. -webkit-transform: translateY(-50%) translateX(50%) rotate(-45deg);
  103. transform: translateY(-50%) translateX(50%) rotate(-45deg);
  104. }
  105. /* First Step */
  106. .ui.steps .step:first-child {
  107. padding-left: 2em;
  108. border-radius: 0.2307em 0em 0em 0.2307em;
  109. }
  110. /* Last Step */
  111. .ui.steps .step:last-child {
  112. border-radius: 0em 0.2307em 0.2307em 0em;
  113. }
  114. .ui.steps .step:last-child {
  115. border-right: none;
  116. margin-right: 0em;
  117. }
  118. /* Only Step */
  119. .ui.steps .step:only-child {
  120. border-radius: 0.2307em;
  121. }
  122. /*******************************
  123. Content
  124. *******************************/
  125. /* Title */
  126. .ui.steps .step .title {
  127. font-family: 'Arial', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  128. font-size: 1.15384615em;
  129. font-weight: bold;
  130. }
  131. .ui.steps .step > .title {
  132. width: 100%;
  133. }
  134. /* Description */
  135. .ui.steps .step .description {
  136. font-weight: normal;
  137. font-size: 0.92307692em;
  138. color: rgba(0, 0, 0, 0.87);
  139. }
  140. .ui.steps .step > .description {
  141. width: 100%;
  142. }
  143. .ui.steps .step .title ~ .description {
  144. margin-top: 0.25em;
  145. }
  146. /* Icon */
  147. .ui.steps .step > .icon {
  148. line-height: 1;
  149. font-size: 2.5em;
  150. margin: 0em 1rem 0em 0em;
  151. }
  152. .ui.steps .step > .icon,
  153. .ui.steps .step > .icon ~ .content {
  154. display: block;
  155. -webkit-box-flex: 0;
  156. -webkit-flex: 0 1 auto;
  157. -ms-flex: 0 1 auto;
  158. flex: 0 1 auto;
  159. -webkit-align-self: middle;
  160. -ms-flex-item-align: middle;
  161. align-self: middle;
  162. }
  163. .ui.steps .step > .icon ~ .content {
  164. -webkit-box-flex: 1 0 auto;
  165. -webkit-flex-grow: 1 0 auto;
  166. -ms-flex-positive: 1 0 auto;
  167. flex-grow: 1 0 auto;
  168. }
  169. /* Horizontal Icon */
  170. .ui.steps:not(.vertical) .step > .icon {
  171. width: auto;
  172. }
  173. /* Link */
  174. .ui.steps .link.step,
  175. .ui.steps a.step {
  176. cursor: pointer;
  177. }
  178. /*******************************
  179. Types
  180. *******************************/
  181. /*--------------
  182. Ordered
  183. ---------------*/
  184. .ui.ordered.steps {
  185. counter-reset: ordered;
  186. }
  187. .ui.ordered.steps .step:before {
  188. display: block;
  189. position: static;
  190. text-align: center;
  191. content: counters(ordered, ".");
  192. -webkit-align-self: middle;
  193. -ms-flex-item-align: middle;
  194. align-self: middle;
  195. margin-right: 1rem;
  196. font-size: 2.5em;
  197. counter-increment: ordered;
  198. font-family: inherit;
  199. font-weight: bold;
  200. }
  201. .ui.ordered.steps .step > * {
  202. display: block;
  203. -webkit-align-self: middle;
  204. -ms-flex-item-align: middle;
  205. align-self: middle;
  206. }
  207. /*--------------
  208. Vertical
  209. ---------------*/
  210. .ui.vertical.steps {
  211. display: -webkit-inline-box;
  212. display: -webkit-inline-flex;
  213. display: -ms-inline-flexbox;
  214. display: inline-flex;
  215. -webkit-box-orient: vertical;
  216. -webkit-box-direction: normal;
  217. -webkit-flex-direction: column;
  218. -ms-flex-direction: column;
  219. flex-direction: column;
  220. overflow: visible;
  221. }
  222. .ui.vertical.steps .step {
  223. -webkit-box-pack: start;
  224. -webkit-justify-content: flex-start;
  225. -ms-flex-pack: start;
  226. justify-content: flex-start;
  227. border-radius: 0em;
  228. padding: 1em 2em;
  229. border-right: none;
  230. border-bottom: 1px solid rgba(0, 0, 0, 0.13);
  231. }
  232. .ui.vertical.steps .step:first-child {
  233. padding: 1em 2em;
  234. border-radius: 0.2307em 0.2307em 0em 0em;
  235. }
  236. .ui.vertical.steps .step:last-child {
  237. border-bottom: none;
  238. border-radius: 0em 0em 0.2307em 0.2307em;
  239. }
  240. .ui.vertical.steps .step:only-child {
  241. border-radius: 0.2307em;
  242. }
  243. /* Arrow */
  244. .ui.vertical.steps .step:after {
  245. display: none;
  246. }
  247. .ui.vertical.steps .step:after {
  248. top: 50%;
  249. right: 0%;
  250. border-width: 0px 1px 1px 0px;
  251. }
  252. .ui.vertical.steps .step:after {
  253. display: none;
  254. }
  255. .ui.vertical.steps .active.step:after {
  256. display: block;
  257. }
  258. .ui.vertical.steps .step:last-child:after {
  259. display: none;
  260. }
  261. .ui.vertical.steps .active.step:last-child:after {
  262. display: block;
  263. }
  264. /*---------------
  265. Responsive
  266. ----------------*/
  267. /* Mobile (Default) */
  268. @media only screen and (max-width: 687px) {
  269. .ui.steps {
  270. display: -webkit-inline-box;
  271. display: -webkit-inline-flex;
  272. display: -ms-inline-flexbox;
  273. display: inline-flex;
  274. overflow: visible;
  275. -webkit-box-orient: vertical;
  276. -webkit-box-direction: normal;
  277. -webkit-flex-direction: column;
  278. -ms-flex-direction: column;
  279. flex-direction: column;
  280. }
  281. .ui.steps .step {
  282. width: 100% !important;
  283. -webkit-box-orient: vertical;
  284. -webkit-box-direction: normal;
  285. -webkit-flex-direction: column;
  286. -ms-flex-direction: column;
  287. flex-direction: column;
  288. border-radius: 0em;
  289. padding: 1em 2em;
  290. }
  291. .ui.steps .step:first-child {
  292. padding: 1em 2em;
  293. border-radius: 0.2307em 0.2307em 0em 0em;
  294. }
  295. .ui.steps .step:last-child {
  296. border-radius: 0em 0em 0.2307em 0.2307em;
  297. }
  298. /* Arrow */
  299. .ui.steps .step:after {
  300. display: none !important;
  301. }
  302. /* Content */
  303. .ui.steps .step .content {
  304. text-align: center;
  305. }
  306. /* Icon */
  307. .ui.steps .step > .icon,
  308. .ui.ordered.steps .step:before {
  309. margin: 0em 0em 1rem 0em;
  310. }
  311. }
  312. /*******************************
  313. States
  314. *******************************/
  315. /* Link Hover */
  316. .ui.steps .link.step:hover::after,
  317. .ui.steps .link.step:hover,
  318. .ui.steps a.step:hover::after,
  319. .ui.steps a.step:hover {
  320. background: #F9FAFB;
  321. color: rgba(0, 0, 0, 0.8);
  322. }
  323. /* Link Down */
  324. .ui.steps .link.step:active::after,
  325. .ui.steps .link.step:active,
  326. .ui.steps a.step:active::after,
  327. .ui.steps a.step:active {
  328. background: #F3F4F5;
  329. color: rgba(0, 0, 0, 0.9);
  330. }
  331. /* Active */
  332. .ui.steps .step.active {
  333. cursor: auto;
  334. background: #FFFFFF;
  335. }
  336. .ui.steps .step.active:after {
  337. background: #FFFFFF;
  338. }
  339. .ui.steps .step.active .title {
  340. color: #4078C0;
  341. }
  342. .ui.ordered.steps .step.active:before,
  343. .ui.steps .active.step .icon {
  344. color: rgba(0, 0, 0, 0.85);
  345. }
  346. /* Active Arrow */
  347. .ui.steps .step:after {
  348. display: none;
  349. }
  350. .ui.steps .active.step:after {
  351. display: block;
  352. }
  353. .ui.steps .step:last-child:after {
  354. display: none;
  355. }
  356. .ui.steps .active.step:last-child:after {
  357. display: block;
  358. }
  359. /* Active Hover */
  360. .ui.steps .link.active.step:hover::after,
  361. .ui.steps .link.active.step:hover,
  362. .ui.steps a.active.step:hover::after,
  363. .ui.steps a.active.step:hover {
  364. cursor: pointer;
  365. background: #DCDDDE;
  366. color: rgba(0, 0, 0, 0.87);
  367. }
  368. /* Completed */
  369. .ui.steps .step.completed > .icon:before,
  370. .ui.ordered.steps .step.completed:before {
  371. color: #78CB5B;
  372. }
  373. /* Disabled */
  374. .ui.steps .disabled.step {
  375. cursor: auto;
  376. background: transparent -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.07));
  377. background: transparent linear-gradient(transparent, rgba(0, 0, 0, 0.07));
  378. pointer-events: none;
  379. }
  380. .ui.steps .disabled.step,
  381. .ui.steps .disabled.step .title,
  382. .ui.steps .disabled.step .description {
  383. color: rgba(40, 40, 40, 0.3);
  384. }
  385. .ui.steps .disabled.step:after {
  386. background: transparent -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.07));
  387. background: transparent linear-gradient(transparent, rgba(0, 0, 0, 0.07));
  388. }
  389. /*******************************
  390. Variations
  391. *******************************/
  392. /*--------------
  393. Stackable
  394. ---------------*/
  395. /* Tablet Or Below */
  396. @media only screen and (max-width: 687px) {
  397. .ui[class*="tablet stackable"].steps {
  398. display: -webkit-inline-box;
  399. display: -webkit-inline-flex;
  400. display: -ms-inline-flexbox;
  401. display: inline-flex;
  402. overflow: visible;
  403. -webkit-box-orient: vertical;
  404. -webkit-box-direction: normal;
  405. -webkit-flex-direction: column;
  406. -ms-flex-direction: column;
  407. flex-direction: column;
  408. }
  409. /* Steps */
  410. .ui[class*="tablet stackable"].steps .step {
  411. -webkit-box-orient: vertical;
  412. -webkit-box-direction: normal;
  413. -webkit-flex-direction: column;
  414. -ms-flex-direction: column;
  415. flex-direction: column;
  416. border-radius: 0em;
  417. padding: 1em 2em;
  418. }
  419. .ui[class*="tablet stackable"].steps .step:first-child {
  420. padding: 1em 2em;
  421. border-radius: 0.2307em 0.2307em 0em 0em;
  422. }
  423. .ui[class*="tablet stackable"].steps .step:last-child {
  424. border-radius: 0em 0em 0.2307em 0.2307em;
  425. }
  426. /* Arrow */
  427. .ui[class*="tablet stackable"].steps .step:after {
  428. display: none !important;
  429. }
  430. /* Content */
  431. .ui[class*="tablet stackable"].steps .step .content {
  432. text-align: center;
  433. }
  434. /* Icon */
  435. .ui[class*="tablet stackable"].steps .step > .icon,
  436. .ui[class*="tablet stackable"].ordered.steps .step:before {
  437. margin: 0em 0em 1rem 0em;
  438. }
  439. }
  440. /*--------------
  441. Fluid
  442. ---------------*/
  443. /* Fluid */
  444. .ui.fluid.steps {
  445. display: -webkit-box;
  446. display: -webkit-flex;
  447. display: -ms-flexbox;
  448. display: flex;
  449. width: 100%;
  450. }
  451. /*--------------
  452. Attached
  453. ---------------*/
  454. /* Top */
  455. .ui.attached.steps {
  456. width: calc(100% + 2px ) !important;
  457. margin: 0em -1px -1px;
  458. max-width: calc(100% + 2px );
  459. border-radius: 0.2307em 0.2307em 0em 0em;
  460. }
  461. .ui.attached.steps .step:first-child {
  462. border-radius: 0.2307em 0em 0em 0em;
  463. }
  464. .ui.attached.steps .step:last-child {
  465. border-radius: 0em 0.2307em 0em 0em;
  466. }
  467. /* Bottom */
  468. .ui.bottom.attached.steps {
  469. margin: -1px -1px 0em;
  470. border-radius: 0em 0em 0.2307em 0.2307em;
  471. }
  472. .ui.bottom.attached.steps .step:first-child {
  473. border-radius: 0em 0em 0em 0.2307em;
  474. }
  475. .ui.bottom.attached.steps .step:last-child {
  476. border-radius: 0em 0em 0.2307em 0em;
  477. }
  478. /*-------------------
  479. Evenly Divided
  480. --------------------*/
  481. .ui.one.steps,
  482. .ui.two.steps,
  483. .ui.three.steps,
  484. .ui.four.steps,
  485. .ui.five.steps,
  486. .ui.six.steps,
  487. .ui.seven.steps,
  488. .ui.eight.steps {
  489. width: 100%;
  490. }
  491. .ui.one.steps > .step,
  492. .ui.two.steps > .step,
  493. .ui.three.steps > .step,
  494. .ui.four.steps > .step,
  495. .ui.five.steps > .step,
  496. .ui.six.steps > .step,
  497. .ui.seven.steps > .step,
  498. .ui.eight.steps > .step {
  499. -webkit-flex-wrap: nowrap;
  500. -ms-flex-wrap: nowrap;
  501. flex-wrap: nowrap;
  502. }
  503. .ui.one.steps > .step {
  504. width: 100%;
  505. }
  506. .ui.two.steps > .step {
  507. width: 50%;
  508. }
  509. .ui.three.steps > .step {
  510. width: 33.333%;
  511. }
  512. .ui.four.steps > .step {
  513. width: 25%;
  514. }
  515. .ui.five.steps > .step {
  516. width: 20%;
  517. }
  518. .ui.six.steps > .step {
  519. width: 16.666%;
  520. }
  521. .ui.seven.steps > .step {
  522. width: 14.285%;
  523. }
  524. .ui.eight.steps > .step {
  525. width: 12.500%;
  526. }
  527. /*-------------------
  528. Sizes
  529. --------------------*/
  530. .ui.small.step,
  531. .ui.small.steps .step {
  532. font-size: 0.92307692rem;
  533. }
  534. .ui.step,
  535. .ui.steps .step {
  536. font-size: 1rem;
  537. }
  538. .ui.large.step,
  539. .ui.large.steps .step {
  540. font-size: 1.15384615rem;
  541. }
  542. /*******************************
  543. Overrides
  544. *******************************/
  545. .ui.steps .step:after {
  546. display: none;
  547. }
  548. .ui.steps .completed.step:before {
  549. opacity: 0.5;
  550. }
  551. .ui.steps .step.active:after {
  552. display: block;
  553. border: none;
  554. border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  555. border-left: 1px solid rgba(0, 0, 0, 0.2);
  556. }
  557. .ui.vertical.steps .step.active:after {
  558. display: block;
  559. border: none;
  560. top: 50%;
  561. right: 0%;
  562. border-left: none;
  563. border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  564. border-right: 1px solid rgba(0, 0, 0, 0.2);
  565. }
  566. /*******************************
  567. Site Overrides
  568. *******************************/