idealsteps.styl 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. // Ideal Steps
  2. //---------------------------------------
  3. .idealsteps-container *
  4. box-sizing: border-box
  5. .idealsteps-step
  6. display: none
  7. clearfix()
  8. .idealsteps-nav
  9. ui()
  10. overflow: hidden
  11. margin-bottom: 2em
  12. ul
  13. reset-box-model()
  14. list-style: none
  15. li
  16. float: left
  17. a
  18. position: relative
  19. float: left
  20. padding: 0 1.5em 0 2.75em
  21. height: 3.5em
  22. line-height: 3.5em
  23. text-decoration: none
  24. color: darken(ui-element, 50)
  25. background: ui-element
  26. transition: padding .2s ease-in-out
  27. &:focus
  28. outline: 0 // Firefox
  29. &:hover
  30. background: lighten(ui-element, 5)
  31. &:after
  32. border-left-color: lighten(ui-element, 5)
  33. &:after, &:before
  34. content: ""
  35. position: absolute
  36. z-index: 1
  37. top: 0
  38. right: -2em
  39. margin-right: 0
  40. margin-top: -.125em
  41. border-width: 2em 1em
  42. border-style: solid
  43. border-color: transparent
  44. border-left-color: ui-element
  45. &:before
  46. margin-right: -1px
  47. border-left-color: darken(ui-element, 20)
  48. li:first-child a
  49. padding-left: 1.75em
  50. border-radius: left radius
  51. li.idealsteps-step-active
  52. a
  53. padding-right: 3.5em
  54. background: white
  55. color: valid
  56. font-weight: bold
  57. cursor: default
  58. &:after
  59. border-left-color: white
  60. .counter
  61. opacity: 1
  62. .counter
  63. opacity: 0
  64. position: absolute
  65. top: 50%
  66. right: 1em
  67. height: 1.5em
  68. width: 1.5em
  69. margin-top: -.75em
  70. line-height: 1.5 !important
  71. text-align: center
  72. color: invalid
  73. border: 1px solid invalid
  74. border-radius: 10em
  75. transition: opacity .2s ease-in-out
  76. &.zero
  77. color: valid
  78. border-color: valid
  79. .idealsteps-container.adaptive
  80. .idealsteps-nav
  81. max-width: input-width
  82. border-bottom: 0
  83. li
  84. float: none
  85. overflow: hidden
  86. a, li:first-child a, li.idealsteps-step-active a
  87. width: 100%
  88. padding: 0 2.5em 0 1.5em
  89. border-bottom: 1px solid darken(ui-element, 20)
  90. border-top: 1px solid lighten(ui-element, 10)
  91. border-radius: 0
  92. &:after,&:before
  93. display: none
  94. li:first-child a
  95. border-radius: top radius
  96. li:last-child a
  97. border-radius: bottom radius
  98. li.idealsteps-step-active a
  99. padding-right: 1.5em
  100. .counter
  101. position: relative
  102. float: right
  103. right: 0