Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.83 KB | None | 0 0
  1. // Wizard Multi Step
  2.  
  3. .forms-wizard {
  4. margin: 0;
  5. padding: 0;
  6. list-style-type: none;
  7. width: 100%;
  8. display: table;
  9. table-layout: fixed;
  10. @include border-radius($border-radius);
  11.  
  12. li {
  13. display: table-cell;
  14. vertical-align: middle;
  15. text-align: center;
  16. cursor: pointer;
  17. font-size: $font-size-lg / 1.1;
  18. padding: ($layout-spacer-x / 1.5) 0;
  19. color: $gray-500;
  20. position: relative;
  21.  
  22. &::after,
  23. &::before {
  24. position: absolute;
  25. height: 4px;
  26. top: 50%;
  27. margin-top: -($layout-spacer-x / 1.5);
  28. width: 50%;
  29. content: '';
  30. background: $gray-300;
  31. z-index: 5;
  32. transition: all .2s;
  33. }
  34.  
  35. &::after {
  36. left: 50%;
  37. }
  38.  
  39. &::before {
  40. left: 0;
  41. }
  42.  
  43. &:first-child {
  44. &::before {
  45. @include border-left-radius(20px);
  46. }
  47. }
  48.  
  49. &:last-child {
  50. &::after {
  51. @include border-right-radius(20px);
  52. }
  53. }
  54.  
  55. em {
  56. font-style: normal;
  57. font-size: $h4-font-size;
  58. background: $gray-400;
  59. color: $white;
  60. text-align: center;
  61. padding: 0;
  62. width: 40px;
  63. height: 40px;
  64. line-height: 40px;
  65. @include border-radius(50px);
  66. display: block;
  67. margin: 0 auto 0.5rem;
  68. position: relative;
  69. z-index: 7;
  70. transition: all .2s;
  71. }
  72.  
  73. &.form-wizard-step-doing {
  74. color: $gray-700;
  75. em {
  76. background: $primary;
  77. }
  78. &::before {
  79. background: $primary;
  80. }
  81. }
  82.  
  83. &.form-wizard-step-normal {
  84. color: $gray-700;
  85. em {
  86. background: $primary;
  87. }
  88. }
  89.  
  90. &.form-wizard-step-done {
  91. em {
  92. font-family: 'Linearicons-Free';
  93. @extend .lnr-checkmark-circle;
  94. background: $success;
  95. overflow: hidden;
  96. &::before {
  97. width: 42px;
  98. height: 42px;
  99. font-size: 1.2rem;
  100. line-height: 40px;
  101. text-align: center;
  102. display: block;
  103. }
  104. }
  105.  
  106. &::after,
  107. &::before {
  108. background: $success;
  109. }
  110. }
  111.  
  112. &.form-wizard-step-plus {
  113. color: $gray-700;
  114.  
  115. em {
  116. background: $success;
  117. overflow: hidden;
  118. &::before {
  119. width: 42px;
  120. height: 42px;
  121. font-size: 1.2rem;
  122. line-height: 40px;
  123. text-align: center;
  124. display: block;
  125. }
  126. }
  127.  
  128. &::after,
  129. &::before {
  130. background: $success;
  131. }
  132. }
  133.  
  134. &:hover {
  135. color: $gray-600;
  136. }
  137. }
  138. }
  139.  
  140.  
  141. // Form Wizard Alternate
  142.  
  143. .forms-wizard-alt {
  144. .forms-wizard {
  145. li {
  146. font-size: $font-size-base;
  147.  
  148. em {
  149. width: 14px;
  150. height: 14px;
  151. line-height: 14px;
  152. text-indent: -999rem;
  153. border: $white solid 2px;
  154. margin: -7px auto 0;
  155.  
  156. }
  157. }
  158. }
  159. }
  160.  
  161. .forms-wizard-vertical {
  162. .forms-wizard {
  163. display: block;
  164. width: 30%;
  165. float: left;
  166. padding: 0 $layout-spacer-x $layout-spacer-x 0;
  167.  
  168. li {
  169. text-align: left;
  170. display: flex;
  171. align-items: center;
  172. align-content: flex-start;
  173. padding: ($layout-spacer-x / 2);
  174. margin-bottom: ($layout-spacer-x / 3);
  175. @include border-radius($border-radius-lg);
  176. transition: all .2s;
  177.  
  178. &::before,
  179. &::after {
  180. display: none;
  181. }
  182.  
  183. em {
  184. margin: 0 ($layout-spacer-x / 2) 0 0;
  185. }
  186.  
  187. &:hover {
  188. background: $gray-200;
  189. }
  190.  
  191. &.form-wizard-step-doing {
  192. background: $primary;
  193. color: $white;
  194.  
  195. em {
  196. background: rgba(255,255,255,.2);
  197. }
  198. }
  199. }
  200. }
  201.  
  202. .form-wizard-content {
  203. width: 70%;
  204. overflow: auto;
  205. }
  206. }
  207. @media screen and (min-width: 360px) and (max-width: 812px) {
  208. .forms-wizard-vertical {
  209. .forms-wizard {
  210. display: block;
  211. width: 50%;
  212. float: left;
  213. padding: 0 $layout-spacer-x $layout-spacer-x 0;
  214.  
  215. li {
  216. text-align: left;
  217. display: flex;
  218. align-items: center;
  219. align-content: flex-start;
  220. padding: ($layout-spacer-x / 2);
  221. margin-bottom: ($layout-spacer-x / 3);
  222. @include border-radius($border-radius-lg);
  223. transition: all .2s;
  224.  
  225. &::before,
  226. &::after {
  227. display: none;
  228. }
  229.  
  230. em {
  231. margin: 0 ($layout-spacer-x / 2) 0 0;
  232. }
  233.  
  234. &:hover {
  235. background: $gray-200;
  236. }
  237.  
  238. &.form-wizard-step-doing {
  239. background: $primary;
  240. color: $white;
  241.  
  242. em {
  243. background: rgba(255,255,255,.2);
  244. }
  245. }
  246. }
  247. }
  248.  
  249. .form-wizard-content {
  250. width: 50%;
  251. overflow: auto;
  252. }
  253. }
  254. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement