stepBar.css 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. .stepcontainer {
  2. height: 70px;
  3. }
  4. .stepBar {
  5. counter-reset: step;
  6. }
  7. .stepBar li {
  8. list-style-type: none;
  9. width: 33%;
  10. float: left;
  11. font-size: 12px;
  12. position: relative;
  13. text-align: center;
  14. font-weight: bold;
  15. text-transform: uppercase;
  16. color: #7d7d7d;
  17. }
  18. .stepBar li:before {
  19. width: 30px;
  20. height: 30px;
  21. content: counter(step);
  22. counter-increment: step;
  23. line-height: 30px;
  24. border: 2px solid #7d7d7d;
  25. display: block;
  26. text-align: center;
  27. margin: 0 auto 10px auto;
  28. border-radius: 50%;
  29. background-color: white;
  30. }
  31. .stepBar li:after {
  32. width: 100%;
  33. height: 2px;
  34. content: '';
  35. position: absolute;
  36. background-color: #7d7d7d;
  37. top: 15px;
  38. left: -50%;
  39. z-index: -1;
  40. }
  41. .stepBar li:first-child:after {
  42. content: none;
  43. }
  44. .stepBar li.active {
  45. color: green;
  46. }
  47. .stepBar li.active:before {
  48. border-color: #55b776;
  49. }
  50. .stepBar li.active + li:after {
  51. background-color: #55b776;
  52. }