vue-wizard.scss 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. // Core variables and mixins
  2. @import '~@resources/scss/base/bootstrap-extended/include';
  3. // Overrides user variable
  4. @import '~@resources/scss/base/components/include';
  5. @import 'vue-select/src/scss/vue-select.scss';
  6. //--------- Simple Number Wizard ----------//
  7. .vue-form-wizard {
  8. background-color: $white;
  9. box-shadow: 0px 4px 25px 0px rgba($black, 0.1);
  10. border-radius: 0.5rem;
  11. padding-bottom: 0;
  12. .wizard-header {
  13. padding: 0;
  14. margin: 0;
  15. }
  16. .title {
  17. color: $gray-400;
  18. }
  19. .wizard-navigation {
  20. .wizard-progress-with-circle {
  21. display: none;
  22. }
  23. .wizard-nav {
  24. padding: 1.42rem 1.42rem 2.14rem 1.42rem;
  25. border-bottom: 1px solid rgba($color: $black, $alpha: 0.08);
  26. padding-bottom: 0;
  27. li {
  28. flex-grow: 0;
  29. flex: inherit;
  30. margin-right: 3rem;
  31. padding-bottom: 2rem;
  32. &.active {
  33. a {
  34. color: $primary;
  35. .wizard-icon-circle {
  36. .wizard-icon-container {
  37. .wizard-icon {
  38. color: $white;
  39. font-size: 1rem;
  40. }
  41. }
  42. }
  43. .checked {
  44. box-shadow: 0 3px 6px 0 rgba(105, 108, 255, 0.4);
  45. }
  46. }
  47. }
  48. .wizard-icon-circle {
  49. width: 2.71rem;
  50. height: 2.71rem;
  51. margin-right: 1rem;
  52. border: none;
  53. background-color: $gray-200;
  54. border-radius: 6px;
  55. .wizard-icon-container {
  56. border-radius: 6px;
  57. }
  58. .wizard-icon {
  59. font-style: inherit;
  60. font-size: 1rem;
  61. color: $gray-600;
  62. &.feather {
  63. font-size: 1.3rem;
  64. }
  65. }
  66. &.checked {
  67. background-color: rgba($primary, $alpha: 0.08);
  68. .wizard-icon {
  69. color: $primary;
  70. }
  71. }
  72. }
  73. a {
  74. flex-direction: row;
  75. .stepTitle {
  76. font-size: 1rem;
  77. color: $gray-600;
  78. font-weight: 600;
  79. }
  80. .wizard-icon {
  81. transition: none !important;
  82. }
  83. }
  84. &:not(:first-child) {
  85. a {
  86. &::before {
  87. content: '\e844';
  88. font-family: feather !important;
  89. speak: none;
  90. font-style: normal;
  91. font-weight: 400;
  92. font-variant: normal;
  93. text-transform: none;
  94. line-height: 1;
  95. font-size: 1.14rem;
  96. left: -30px;
  97. position: absolute;
  98. }
  99. }
  100. }
  101. }
  102. }
  103. }
  104. .wizard-card-footer {
  105. padding-bottom: 1rem;
  106. .wizard-footer-left,
  107. .wizard-footer-right {
  108. .wizard-btn {
  109. padding: 0.786rem 1.5rem;
  110. min-width: unset;
  111. border-radius: 0.4285rem;
  112. }
  113. }
  114. .wizard-footer-left {
  115. .wizard-btn {
  116. border: 1px solid $secondary !important;
  117. background-color: transparent !important;
  118. color: $secondary !important;
  119. font-weight: 400;
  120. &:hover {
  121. background-color: rgba($secondary, 0.04) !important;
  122. }
  123. &::before {
  124. content: '<';
  125. font-family: feather !important;
  126. speak: none;
  127. font-style: normal;
  128. font-variant: normal;
  129. text-transform: none;
  130. line-height: 1;
  131. font-size: 1rem;
  132. left: -6px;
  133. position: relative;
  134. }
  135. }
  136. }
  137. .wizard-footer-right {
  138. .wizard-btn {
  139. font-weight: 400;
  140. &:hover {
  141. box-shadow: 0 8px 25px -8px $primary;
  142. }
  143. &::after {
  144. content: '>';
  145. font-family: feather !important;
  146. speak: none;
  147. font-style: normal;
  148. font-weight: 400;
  149. font-variant: normal;
  150. text-transform: none;
  151. line-height: 1;
  152. font-size: 1rem;
  153. right: -6px;
  154. position: relative;
  155. }
  156. }
  157. }
  158. }
  159. }
  160. //---------- Transparent Steps ----------//
  161. .steps-transparent {
  162. &.vue-form-wizard {
  163. background-color: transparent;
  164. box-shadow: none;
  165. padding-bottom: 0;
  166. .wizard-header {
  167. padding-top: 0;
  168. padding-bottom: 0;
  169. }
  170. .wizard-navigation .wizard-nav {
  171. border: none;
  172. }
  173. }
  174. .wizard-tab-content {
  175. box-shadow: 0px 4px 25px 0px rgba($black, 0.1);
  176. background-color: $white;
  177. }
  178. .wizard-card-footer {
  179. background-color: $white;
  180. box-shadow: 0px 4px 25px 0px rgba($black, 0.1);
  181. }
  182. .wizard-tab-content {
  183. border-top-left-radius: 0.5rem;
  184. border-top-right-radius: 0.5rem;
  185. }
  186. .wizard-card-footer {
  187. box-shadow: -1px 16px 25px 0px rgba($black, 0.1);
  188. // padding-bottom: 2.5rem;
  189. border-bottom-left-radius: 0.5rem;
  190. border-bottom-right-radius: 0.5rem;
  191. }
  192. }
  193. //------------- Vertical --------------//
  194. .vertical.wizard-vertical {
  195. &.vue-form-wizard {
  196. .wizard-navigation {
  197. .wizard-nav {
  198. border-right: 1px solid rgba($color: $black, $alpha: 0.08);
  199. border-bottom: none;
  200. min-width: 230px;
  201. padding-right: 2.5rem;
  202. li {
  203. margin-right: 0;
  204. a {
  205. flex-wrap: nowrap;
  206. &::before {
  207. content: none;
  208. }
  209. }
  210. .stepTitle {
  211. max-width: 200px;
  212. font-size: 1rem;
  213. white-space: nowrap;
  214. text-overflow: ellipsis;
  215. overflow: hidden;
  216. }
  217. }
  218. }
  219. }
  220. .wizard-tab-content {
  221. width: 100%;
  222. }
  223. .wizard-card-footer {
  224. margin-left: 229px;
  225. border-left: 1px solid rgba($color: $black, $alpha: 0.08);
  226. padding-top: 0;
  227. }
  228. }
  229. }
  230. //---------- Vertical Transparent Steps ----------//
  231. .vertical-steps {
  232. &.vue-form-wizard {
  233. .wizard-tab-content {
  234. width: 100%;
  235. }
  236. .wizard-card-footer {
  237. margin-left: 223px;
  238. position: relative;
  239. z-index: 9;
  240. padding-top: 0;
  241. }
  242. .wizard-navigation {
  243. .wizard-nav {
  244. padding-right: 2.5rem;
  245. padding-top: 30px;
  246. li {
  247. margin-right: 0;
  248. a {
  249. flex-wrap: nowrap;
  250. &::before {
  251. content: none;
  252. }
  253. }
  254. .stepTitle {
  255. max-width: 200px;
  256. font-size: 1rem;
  257. white-space: nowrap;
  258. text-overflow: ellipsis;
  259. overflow: hidden;
  260. }
  261. }
  262. }
  263. }
  264. }
  265. }
  266. @include media-breakpoint-down(sm) {
  267. .vue-form-wizard {
  268. .wizard-navigation {
  269. flex-direction: column !important;
  270. .wizard-nav.wizard-nav-pills {
  271. li:not(:first-child) {
  272. a {
  273. &::before {
  274. content: none;
  275. }
  276. }
  277. }
  278. li:last-child {
  279. margin-bottom: 0;
  280. }
  281. }
  282. }
  283. .wizard-card-footer {
  284. margin-left: 0 !important;
  285. }
  286. &.wizard-vertical.vertical {
  287. .wizard-nav.wizard-nav-pills {
  288. border-right: none;
  289. width: 100%;
  290. border-bottom: 1px solid rgba($black, $alpha: 0.08);
  291. margin-bottom: 1.9rem;
  292. }
  293. .wizard-tab-content {
  294. margin-left: 0;
  295. }
  296. }
  297. }
  298. }
  299. @include media-breakpoint-down(md) {
  300. .vue-form-wizard {
  301. .wizard-nav.wizard-nav-pills {
  302. li:not(:first-child) {
  303. a {
  304. &::before {
  305. content: none;
  306. }
  307. }
  308. }
  309. }
  310. }
  311. }
  312. //------------ dark layout -------------//
  313. body {
  314. &.dark-layout {
  315. // border apply only default not transparent background
  316. .vue-form-wizard:not(.steps-transparent) {
  317. background-color: $theme-dark-card-bg;
  318. box-shadow: 0px 4px 25px 0px rgba($theme-dark-body-color, 0.1);
  319. &.vertical {
  320. .wizard-card-footer {
  321. border-color: $theme-dark-border-color !important;
  322. }
  323. }
  324. }
  325. .vue-form-wizard {
  326. // border for transparent background
  327. &.steps-transparent {
  328. .wizard-tab-content,
  329. .wizard-card-footer {
  330. background-color: $theme-dark-card-bg;
  331. box-shadow: 1px 12px 25px 0px rgba($theme-dark-body-color, 0.1);
  332. }
  333. }
  334. // border for navigation bar in default wizard
  335. .wizard-navigation {
  336. .wizard-nav {
  337. border-color: $theme-dark-border-color !important;
  338. li {
  339. .wizard-icon-circle {
  340. background-color: rgba($gray-100, 0.12);
  341. &.checked {
  342. background-color: rgba($primary, $alpha: 0.08);
  343. .wizard-icon {
  344. color: $primary;
  345. }
  346. }
  347. }
  348. &.active {
  349. a {
  350. .wizard-icon-circle {
  351. .wizard-icon {
  352. color: $theme-dark-body-color;
  353. }
  354. }
  355. }
  356. }
  357. }
  358. }
  359. }
  360. // steps arrow icon
  361. .wizard-nav {
  362. &:not(:first-child) {
  363. a {
  364. &::before {
  365. color: $theme-dark-body-color;
  366. }
  367. }
  368. li.active {
  369. a {
  370. &::before {
  371. color: $primary;
  372. }
  373. }
  374. }
  375. }
  376. }
  377. }
  378. }
  379. }
  380. //------------ RTL -------------//
  381. html[dir='rtl'] {
  382. .wizard-navigation {
  383. .wizard-nav {
  384. li {
  385. a {
  386. &::before {
  387. transform: rotate(180deg);
  388. }
  389. }
  390. }
  391. }
  392. }
  393. .vue-form-wizard {
  394. .wizard-card-footer {
  395. .wizard-footer-left {
  396. .wizard-btn::before {
  397. right: 0;
  398. }
  399. }
  400. .wizard-footer-right {
  401. .wizard-btn::after {
  402. left: 0;
  403. }
  404. }
  405. }
  406. }
  407. }