app-ecommerce-shop.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708
  1. // ================================================================================================
  2. // File Name: app-ecommerce-shop.scss
  3. // Description: SCSS file for ecommerce shop page.
  4. // ----------------------------------------------------------------------------------------------
  5. // Item name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template
  6. // Author: PIXINVENT
  7. // Author URL: http://www.themeforest.net/user/pixinvent
  8. // ================================================================================================
  9. // Core variables and mixins
  10. @import "../bootstrap/functions";
  11. @import "../bootstrap/mixins";
  12. @import "../bootstrap-extended/mixins";
  13. // Load variable overrides
  14. @import "../core/variables/variables";
  15. @import "../bootstrap/variables";
  16. // Overrides user variable
  17. @import "../core/variables/components-variables";
  18. $wishlist-bg :#f6f6f6;
  19. .ecommerce-application{
  20. .content-body{
  21. position: relative;
  22. }
  23. .shop-content-overlay{
  24. position: absolute;
  25. top: 4.2rem;
  26. height: 100%;
  27. width: 100%;
  28. background: rgba($pure-black,.2);
  29. z-index: 0;
  30. opacity: 0;
  31. &.show{
  32. opacity: 1;
  33. z-index: 1;
  34. }
  35. }
  36. // Shop Sidebar
  37. .sidebar-shop{
  38. //close icon
  39. .sidebar-close-icon {
  40. position: absolute;
  41. top: 0.25rem;
  42. right: 0.25rem;
  43. font-size: 1.25rem;
  44. z-index: 5;
  45. cursor: pointer;
  46. }
  47. // for heading
  48. .filter-heading{
  49. font-weight: 700;
  50. color: $body-color;
  51. position: relative;
  52. top: -7px;
  53. }
  54. // for radio
  55. .vs-radio-con{
  56. input:checked ~ span{
  57. color: $primary;
  58. }
  59. }
  60. // for title
  61. .filter-title{
  62. font-weight: 700;
  63. }
  64. // for slider
  65. .range-slider.noUi-horizontal{
  66. height: .285rem;
  67. .noUi-base{
  68. height: .285rem;
  69. }
  70. .noUi-handle{
  71. right: -1.071rem !important;
  72. top: -.428rem;
  73. width: 16px;
  74. height: 16px;
  75. border-width: .142rem;
  76. line-height: 1.15;
  77. cursor: pointer;
  78. .noUi-tooltip{
  79. opacity: 0;
  80. font-size: .75rem;
  81. background-color: $primary;
  82. color: $white;
  83. border-radius: .357rem;
  84. border: none;
  85. padding: .142rem .357rem;
  86. transform: translate(-50%, -50%);
  87. &:before{
  88. content: "$ ";
  89. }
  90. }
  91. &:hover{
  92. transform: scale(1.2);
  93. }
  94. &:active{
  95. transform: scale(1);
  96. border-width: .5rem;
  97. transition: .25s ease;
  98. .noUi-tooltip{
  99. opacity: 1;
  100. }
  101. }
  102. }
  103. }
  104. // for stars in ratingd
  105. .ratings-list {
  106. .ratings-list-item{
  107. font-size: 1.5rem;
  108. cursor: pointer;
  109. }
  110. & ~ .stars-received{
  111. margin-top: .35rem;
  112. }
  113. }
  114. }
  115. .sidebar-shop{
  116. margin-top: 2rem;
  117. width: $sidebar-width;
  118. z-index: 4;
  119. }
  120. // shop main content
  121. //ecommerce header
  122. .ecommerce-header-items{
  123. display: flex;
  124. justify-content: space-between;
  125. .view-options{
  126. .view-btn-option{
  127. display: inline-block;
  128. .btn.view-btn{
  129. margin-right: 10px;
  130. background-color: $white;
  131. padding: .5rem;
  132. color: $body-color;
  133. box-shadow: 0 2px 8px 0 rgba($pure-black,.14) !important;
  134. i{
  135. font-size: 1.7rem;
  136. }
  137. &.active{
  138. &:hover,&:active{
  139. color: $primary !important;
  140. }
  141. color: $primary !important;
  142. }
  143. &:hover,&:active{
  144. color: $body-color;
  145. }
  146. }
  147. }
  148. .select2{
  149. margin-right: 10px;
  150. width: auto !important;
  151. .select2-selection--single{
  152. border: none !important;
  153. box-shadow: 0 2px 8px 0 rgba($pure-black,.14);
  154. border-radius: 5px;
  155. }
  156. }
  157. }
  158. .result-toggler{
  159. display: flex;
  160. align-items: flex-end;
  161. .shop-sidebar-toggler{
  162. font-size: 1.7rem;
  163. padding-left: 0;
  164. margin-left: -6px;
  165. &:active,&:focus{
  166. outline: 0;
  167. }
  168. .navbar-toggler-icon{
  169. i{
  170. color: $body-color;
  171. vertical-align: middle;
  172. }
  173. }
  174. }
  175. .search-results{
  176. font-weight: 700;
  177. color: $body-color;
  178. display: inline-block;
  179. }
  180. }
  181. }
  182. // Product search bar
  183. .search-product{
  184. height: 48px;
  185. border: none;
  186. box-shadow: 0 2px 8px 0 rgba($pure-black,.14);
  187. font-size: 1.2rem;
  188. padding-left: 1rem;
  189. & ~ .form-control-position{
  190. top: 10px;
  191. right: 10px;
  192. i{
  193. font-size: 1.5rem;
  194. }
  195. }
  196. &::placeholder{
  197. font-size: .95rem;
  198. }
  199. }
  200. // main Products
  201. .ecommerce-card{
  202. &:hover{
  203. transform: translateY(-5px);
  204. box-shadow: 0 4px 25px 0 rgba($pure-black,.25);
  205. }.item-price{
  206. font-weight: 700;
  207. }
  208. .item-rating{
  209. i{
  210. margin-left: .25rem;
  211. vertical-align: top;
  212. }
  213. }
  214. .item-name{
  215. font-weight: 600;
  216. color: $headings-color;
  217. }
  218. .item-description{
  219. font-size: .875rem;
  220. }
  221. .wishlist,.cart{
  222. padding: .8rem 1rem;
  223. cursor: pointer;
  224. font-weight: 600;
  225. font-size: .875rem;
  226. text-transform: uppercase;
  227. i{
  228. font-size: 1rem;
  229. margin-right: .25rem;
  230. }
  231. }
  232. p{
  233. color: $body-color;
  234. }
  235. .wishlist{
  236. background-color: $wishlist-bg;
  237. color: $headings-color;
  238. user-select: none;
  239. &.added{
  240. i{
  241. color: $danger;
  242. }
  243. }
  244. }
  245. .cart{
  246. background-color: $primary;
  247. color: $white;
  248. .view-in-cart{
  249. color: $white;
  250. }
  251. }
  252. }
  253. // margin for both views
  254. .grid-view,
  255. .list-view{
  256. margin-top: .7rem;
  257. }
  258. // Grid View
  259. .grid-view{
  260. display: grid;
  261. grid-template-columns: 1fr 1fr 1fr;
  262. column-gap: 28px;
  263. .ecommerce-card{
  264. overflow: hidden;
  265. .card-content{
  266. .item-img{
  267. padding-top: .5rem;
  268. min-height: 15.85rem;
  269. }
  270. .item-wrapper{
  271. display: flex;
  272. justify-content: space-between;
  273. .item-price{
  274. position: relative;
  275. top: 5px;
  276. }
  277. .shipping{
  278. display: none;
  279. }
  280. }
  281. .item-company{
  282. display: none;
  283. }
  284. .item-options{
  285. display: flex;
  286. flex-wrap: wrap;
  287. .cart,.wishlist{
  288. flex-grow: 1;
  289. }
  290. .wishlist{
  291. padding: .8rem 2rem;
  292. }
  293. .item-wrapper{
  294. .item-rating{
  295. display: none;
  296. }
  297. .item-price{
  298. display: none;
  299. }
  300. }
  301. }
  302. .item-name{
  303. margin-top: 1rem;
  304. }
  305. .item-name,.item-description{
  306. overflow: hidden;
  307. white-space: nowrap;
  308. text-overflow: ellipsis;
  309. }
  310. }
  311. .card-body{
  312. padding: 1rem;
  313. padding-bottom: 0;
  314. }
  315. }
  316. }
  317. // List View
  318. .list-view{
  319. display: grid;
  320. grid-template-columns: 1fr;
  321. .ecommerce-card{
  322. overflow: hidden;
  323. .card-content{
  324. display: grid;
  325. grid-template-columns: 1fr 2fr 1fr;
  326. .item-img{
  327. align-self: center;
  328. padding-left: 1rem;
  329. padding-right: 1rem;
  330. display: flex;
  331. justify-content: center;
  332. align-items: center;
  333. height: 100%;
  334. }
  335. .card-body{
  336. padding: 1rem;
  337. padding-bottom: .5rem;
  338. border-right: 1px solid $gray-300;
  339. .item-rating{
  340. display: none;
  341. }
  342. .item-price{
  343. display: none;
  344. }
  345. .item-name{
  346. margin-bottom: .25rem;
  347. font-size: .95rem;
  348. }
  349. .item-company{
  350. display: block;
  351. cursor: pointer;
  352. font-size: .875rem;
  353. .company-name{
  354. color: $primary;
  355. }
  356. }
  357. }
  358. .item-options{
  359. padding: 1rem;
  360. .item-wrapper{
  361. position: relative;
  362. .item-rating{
  363. position: absolute;
  364. right: 0;
  365. }
  366. .item-cost{
  367. .item-price{
  368. position: relative;
  369. top: 55px;
  370. font-size: 16px;
  371. }
  372. }
  373. }
  374. .shipping{
  375. position: relative;
  376. top: 50px;
  377. color: $text-muted;
  378. }
  379. .wishlist{
  380. margin-top: 84px;
  381. margin-bottom: 10px;
  382. }
  383. .wishlist,.cart{
  384. border-radius: 6px;
  385. }
  386. }
  387. }
  388. }
  389. }
  390. // for checkout-items and options
  391. .checkout-items{
  392. .ecommerce-card{
  393. .card-content{
  394. .item-company{
  395. margin-bottom: 0;
  396. }
  397. .stock-status-in{
  398. color: $success;
  399. font-weight: 400;
  400. font-size: .875rem;
  401. }
  402. .stock-status-out{
  403. color: $danger;
  404. font-weight: 400;
  405. font-size: .875rem;
  406. }
  407. .item-quantity{
  408. font-weight: 700;
  409. font-size: .875rem;
  410. .quantity-title{
  411. margin-bottom: 0.5rem;
  412. }
  413. .quantity-counter-wrapper{
  414. margin-left: -10px;
  415. }
  416. }
  417. .delivery-date,
  418. .offers{
  419. font-weight: 500;
  420. margin-bottom: 0;
  421. font-size: 1rem;
  422. }
  423. .delivery-date{
  424. color: $text-muted;
  425. margin-top: 1.8rem;
  426. }
  427. .offers{
  428. color: $success;
  429. }
  430. }
  431. }
  432. }
  433. .checkout-options{
  434. .options-title{
  435. color: $text-muted;
  436. }
  437. .coupons{
  438. display: flex;
  439. justify-content: space-between;
  440. .coupons-title{
  441. font-weight: 600;
  442. p{
  443. margin-bottom: .5rem;
  444. }
  445. }
  446. .apply-coupon{
  447. color: $primary;
  448. font-weight: 500;
  449. cursor: pointer;
  450. p{
  451. margin-bottom: .5rem;
  452. }
  453. }
  454. }
  455. .price-details{
  456. font-weight: 600;
  457. margin-bottom: .75rem;
  458. }
  459. .detail{
  460. display: flex;
  461. justify-content: space-between;
  462. margin-bottom: .75rem;
  463. .detail-title{
  464. color: $text-muted;
  465. &.detail-total{
  466. color: $body-color;
  467. font-weight: 600;
  468. }
  469. }
  470. .detail-amt{
  471. &.discount-amt{
  472. color: $success;
  473. }
  474. &.emi-details{
  475. color: $primary;
  476. cursor: pointer;
  477. }
  478. &.total-amt{
  479. font-weight: 600;
  480. }
  481. }
  482. }
  483. }
  484. .payment-type{
  485. .gift-card{
  486. cursor: pointer;
  487. i{
  488. position: relative;
  489. top: 3px;
  490. }
  491. }
  492. }
  493. // checkout wizard
  494. .wizard{
  495. &.checkout-tab-steps{
  496. .steps{
  497. ul{
  498. li{
  499. &.error > a{
  500. color: $primary;
  501. .step{
  502. border-color: $primary;
  503. background-color: $primary;
  504. }
  505. }
  506. }
  507. }
  508. }
  509. #checkout-address{
  510. .form-group{
  511. .error{
  512. color: $danger;
  513. }
  514. }
  515. }
  516. }
  517. }
  518. // Media queries to change grid columns in diffrent Screens and to hide search results below 768px
  519. @media(max-width: 1200px){
  520. .app-content{
  521. overflow: scroll;
  522. }
  523. }
  524. @include media-breakpoint-down(md){
  525. .sidebar-left{
  526. .sidebar{
  527. position: absolute;
  528. top: 14rem;
  529. .card{
  530. border-radius: 0;
  531. padding-bottom: 100vh;
  532. padding-bottom: calc(var(--vh, 1vh) * 100);
  533. .card-body{
  534. padding-bottom: 100%;
  535. }
  536. }
  537. .sidebar-shop{
  538. transform: translateX(-112%);
  539. transition: all .25s ease;
  540. position: absolute;
  541. &.show{
  542. transition: all .25s ease;
  543. transform: translateX(0);
  544. }
  545. }
  546. }
  547. }
  548. .ecommerce-header-items{
  549. .result-toggler{
  550. .shop-sidebar-toggler{
  551. position: relative;
  552. top: 1.2rem;
  553. }
  554. }
  555. }
  556. .grid-view{
  557. grid-template-columns: 1fr 1fr;
  558. }
  559. }
  560. @include media-breakpoint-down(md){
  561. // to hide search results
  562. .ecommerce-header-items{
  563. .result-toggler{
  564. .search-results{
  565. display: none;
  566. }
  567. .shop-sidebar-toggler{
  568. top: .5rem;
  569. }
  570. }
  571. .sidebar-shop{
  572. transform: translateX(-123%);
  573. transition: all .2s ease;
  574. z-index: 5;
  575. &.show{
  576. position: absolute;
  577. transform: translateX(0);
  578. transition: all .2s ease;
  579. }
  580. }
  581. }
  582. // List View
  583. .list-view{
  584. .ecommerce-card{
  585. .card-content{
  586. grid-template-columns: 1fr;
  587. .item-img{
  588. padding-top: 2rem;
  589. padding-bottom: 2rem;
  590. }
  591. // to remove card-body border
  592. .card-body{
  593. border: none;
  594. }
  595. }
  596. }
  597. }
  598. }
  599. @media (max-width: 576px){
  600. // shop sidebar
  601. .sidebar-shop {
  602. top: 0;
  603. }
  604. // Grid View
  605. .grid-view{
  606. grid-template-columns: 1fr;
  607. }
  608. }
  609. // To hide toggler on lg and up and grid view for wishlist and list view for checkout
  610. @include media-breakpoint-up(lg){
  611. .ecommerce-header-items{
  612. .shop-sidebar-toggler{
  613. display: none;
  614. }
  615. }
  616. .wishlist-items{
  617. &.grid-view{
  618. grid-template-columns: 1fr 1fr 1fr 1fr;
  619. }
  620. }
  621. .product-checkout{
  622. &.list-view{
  623. grid-template-columns: 2fr 1fr;
  624. column-gap: 20px;
  625. }
  626. }
  627. }
  628. // for below xs screens
  629. @media (max-width: 360px) {
  630. .sidebar-shop{
  631. top: 1.5rem;
  632. }
  633. }
  634. }
  635. // IE Specific
  636. @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  637. // to make cards look like grid
  638. .ecommerce-application{
  639. // grid view
  640. .grid-view{
  641. display: block;
  642. .ecommerce-card{
  643. float: left;
  644. width: 31%;
  645. margin-left: 1%;
  646. margin-right: 1%;
  647. }
  648. }
  649. // list view
  650. .list-view{
  651. display: block;
  652. .ecommerce-card{
  653. .card-content{
  654. display: flex;
  655. .item-options{
  656. .wishlist,.cart{
  657. padding: .8rem 3rem;
  658. display: flex;
  659. justify-content: center;
  660. }
  661. }
  662. }
  663. }
  664. }
  665. #ecommerce-pagination{
  666. .row{
  667. clear: both;
  668. }
  669. }
  670. }
  671. }