wizard.less 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. .wizard {
  2. .clearfix;
  3. border: 1px solid @navbarBorder;
  4. border-radius: @baseBorderRadius;
  5. box-shadow: 0 1px 4px rgba(0,0,0,.065);
  6. background-color: @tableBackgroundAccent;
  7. position: relative;
  8. min-height: 48px;
  9. overflow: hidden;
  10. > .steps {
  11. list-style: none outside none;
  12. padding: 0;
  13. margin: 0;
  14. width: 4000px;
  15. &.previous-disabled {
  16. li {
  17. &.complete {
  18. cursor: default;
  19. &:hover {
  20. background: #f3f4f5;
  21. color: @successText;
  22. cursor: default;
  23. .chevron:before {
  24. border-left-color: #f3f4f5;
  25. }
  26. }
  27. }
  28. }
  29. }
  30. li {
  31. float: left;
  32. margin: 0;
  33. padding: 0 20px 0 30px;
  34. height: 46px;
  35. line-height: 46px;
  36. position: relative;
  37. background: #ededed;
  38. color: @grayLight;
  39. font-size: 16px;
  40. cursor: not-allowed;
  41. .chevron {
  42. border: 24px solid transparent;
  43. border-left: 14px solid @navbarBorder;
  44. border-right: 0;
  45. display: block;
  46. position: absolute;
  47. right: -14px;
  48. top: 0;
  49. z-index: 1;
  50. }
  51. .chevron:before {
  52. border: 24px solid transparent;
  53. border-left: 14px solid #ededed;
  54. border-right: 0;
  55. content: "";
  56. display: block;
  57. position: absolute;
  58. right: 1px;
  59. top: -24px;
  60. }
  61. &.complete {
  62. background: #f3f4f5;
  63. color: @successText;
  64. &:hover {
  65. background: #e7eff8;
  66. cursor: pointer;
  67. .chevron:before {
  68. border-left: 14px solid #e7eff8;
  69. }
  70. }
  71. .chevron:before {
  72. border-left: 14px solid #f3f4f5;
  73. }
  74. }
  75. &.active {
  76. background: #f1f6fc;
  77. color: @infoText;
  78. cursor: default;
  79. .chevron:before {
  80. border-left: 14px solid #f1f6fc;
  81. }
  82. .badge {
  83. background-color: @infoText;
  84. }
  85. }
  86. .badge {
  87. margin-right: 8px;
  88. }
  89. .badge-success {
  90. background-color: @successText;
  91. }
  92. }
  93. li:first-child {
  94. border-radius: 4px 0 0 4px;
  95. padding-left: 20px;
  96. }
  97. }
  98. > .actions {
  99. z-index: 1000;
  100. position: absolute;
  101. right: 0;
  102. line-height: 46px;
  103. float: right;
  104. padding-left: 15px;
  105. padding-right: 15px;
  106. vertical-align: middle;
  107. background-color: #e5e5e5;
  108. border-left: 1px solid @navbarBorder;
  109. a {
  110. line-height: 45px;
  111. font-size: 12px;
  112. margin-right: 8px;
  113. }
  114. .btn-prev {
  115. &[disabled] {
  116. cursor: not-allowed;
  117. }
  118. span {
  119. margin-right: 5px;
  120. }
  121. }
  122. .btn-next {
  123. &[disabled] {
  124. cursor: not-allowed;
  125. }
  126. span {
  127. margin-left: 5px;
  128. }
  129. }
  130. }
  131. .step-content {
  132. border-top: 1px solid #D4D4D4;
  133. padding: 10px;
  134. float: left;
  135. width: 100%;
  136. .step-pane {
  137. display: none;
  138. }
  139. > .active {
  140. display: block;
  141. .btn-group {
  142. .active {
  143. display: inline-block;
  144. }
  145. }
  146. }
  147. }
  148. // when complete
  149. &.complete {
  150. > .actions .glyphicon-arrow-right:before {
  151. display: none;
  152. }
  153. > .actions .glyphicon-arrow-right {
  154. margin-left: 0;
  155. }
  156. }
  157. }