app-ecommerce.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632
  1. // ================================================================================================
  2. // File Name: app-ecommerce.scss
  3. // Description: SCSS file for ecommerce shop, wishlist and checkout page.
  4. // ----------------------------------------------------------------------------------------------
  5. // Item Name: Vuexy - Vuejs, React, Angular, HTML & Laravel Admin Dashboard Template
  6. // Author: PIXINVENT
  7. // Author URL: http://www.themeforest.net/user/pixinvent
  8. // ================================================================================================
  9. @import '../bootstrap-extended/include'; // Bootstrap includes
  10. @import '../components/include'; // Components includes
  11. $search-bar-height: 48px;
  12. .ecommerce-application {
  13. .content-body {
  14. position: relative;
  15. }
  16. // To overlay in whole page
  17. .body-content-overlay {
  18. position: fixed !important;
  19. z-index: 12 !important;
  20. }
  21. // Shop Sidebar
  22. .sidebar-shop {
  23. margin-top: 0.85rem;
  24. width: $sidebar-width;
  25. z-index: 998;
  26. // for heading
  27. .filter-heading {
  28. margin-bottom: 1.75rem;
  29. }
  30. // for title
  31. .filter-title {
  32. margin-bottom: 1rem;
  33. margin-top: 2.5rem;
  34. }
  35. // Sidebar price range and categories list
  36. .price-range,
  37. .categories-list {
  38. li:not(:last-child) {
  39. margin-bottom: 0.75rem;
  40. }
  41. }
  42. // Sidebar brand list
  43. .brand-list {
  44. li {
  45. display: flex;
  46. justify-content: space-between;
  47. align-items: center;
  48. margin-bottom: 0.75rem;
  49. }
  50. }
  51. // Sidebar for slider
  52. .range-slider.noUi-horizontal {
  53. .noUi-handle {
  54. .noUi-tooltip {
  55. opacity: 0;
  56. transform: translate(-50%, -15%);
  57. &:before {
  58. content: '$ ';
  59. }
  60. }
  61. &:active {
  62. .noUi-tooltip {
  63. opacity: 1;
  64. }
  65. }
  66. }
  67. }
  68. // for stars in rating
  69. .ratings-list {
  70. display: flex;
  71. justify-content: space-between;
  72. margin-bottom: 0.5rem;
  73. &:last-child {
  74. margin-bottom: 2.5rem;
  75. }
  76. ul {
  77. margin-bottom: 0;
  78. .ratings-list-item {
  79. svg,
  80. i {
  81. width: 1.25rem;
  82. height: 1.25rem;
  83. font-size: 1.25rem;
  84. }
  85. }
  86. }
  87. }
  88. }
  89. // ratings style
  90. .filled-star {
  91. fill: $warning;
  92. stroke: $warning;
  93. color: $warning;
  94. }
  95. .unfilled-star {
  96. stroke: $gray-100;
  97. color: $gray-100;
  98. }
  99. // E-commerce shop main content area
  100. //ecommerce header
  101. .ecommerce-header-items {
  102. display: flex;
  103. justify-content: space-between;
  104. .result-toggler {
  105. display: flex;
  106. align-items: center;
  107. // Sidebar toggler
  108. .shop-sidebar-toggler {
  109. padding-left: 0;
  110. &:active,
  111. &:focus {
  112. outline: 0;
  113. }
  114. .navbar-toggler-icon {
  115. height: auto;
  116. i,
  117. svg {
  118. color: $body-color;
  119. height: 1.5rem;
  120. width: 1.5rem;
  121. font-size: 1.5rem;
  122. }
  123. }
  124. }
  125. // Search result title
  126. .search-results {
  127. font-weight: $font-weight-bold;
  128. color: $headings-color;
  129. }
  130. }
  131. }
  132. // Product search bar
  133. .ecommerce-searchbar {
  134. .input-group {
  135. box-shadow: 0 2px 8px 0 rgba($black, 0.14);
  136. border-radius: 0.3rem;
  137. }
  138. }
  139. // Search bar
  140. .search-product,
  141. .input-group-text {
  142. height: $search-bar-height;
  143. border: none;
  144. font-size: 0.95rem;
  145. padding-left: 1.25rem;
  146. &::placeholder {
  147. font-size: 0.95rem;
  148. }
  149. }
  150. // main Products
  151. .ecommerce-card {
  152. &:hover {
  153. transform: translateY(-5px);
  154. box-shadow: 0 4px 25px 0 rgba($black, 0.25);
  155. }
  156. // ratings
  157. .item-rating {
  158. ul {
  159. margin-bottom: 0;
  160. }
  161. svg,
  162. i {
  163. height: 1.143rem;
  164. width: 1.143rem;
  165. font-size: 1.143rem;
  166. }
  167. }
  168. // Item name
  169. .item-name {
  170. margin-bottom: 0;
  171. a {
  172. font-weight: $font-weight-bolder;
  173. display: -webkit-box;
  174. -webkit-line-clamp: 1;
  175. -webkit-box-orient: vertical;
  176. overflow: hidden;
  177. text-overflow: ellipsis;
  178. }
  179. }
  180. .item-description {
  181. font-size: 0.875rem;
  182. }
  183. // buttons style
  184. .btn-wishlist,
  185. .btn-cart {
  186. span {
  187. vertical-align: text-top;
  188. }
  189. i,
  190. svg {
  191. margin-right: 0.25rem;
  192. vertical-align: text-top;
  193. &.text-danger {
  194. fill: $danger;
  195. }
  196. }
  197. }
  198. }
  199. // margin for both views
  200. .grid-view,
  201. .list-view {
  202. &:not(.wishlist-items) {
  203. margin-top: 2rem;
  204. }
  205. }
  206. // Grid View Specific style
  207. .grid-view {
  208. display: grid;
  209. grid-template-columns: 1fr 1fr 1fr;
  210. column-gap: 2rem;
  211. &.wishlist-items {
  212. grid-template-columns: 1fr 1fr 1fr 1fr;
  213. }
  214. .ecommerce-card {
  215. overflow: hidden;
  216. // Item Image
  217. .item-img {
  218. padding-top: 0.5rem;
  219. min-height: 15.85rem;
  220. display: flex;
  221. align-items: center;
  222. }
  223. // Item content wrapper
  224. .item-wrapper {
  225. display: flex;
  226. justify-content: space-between;
  227. align-items: baseline;
  228. }
  229. // Hiding list view items
  230. .shipping,
  231. .item-company,
  232. .item-options .item-price {
  233. display: none;
  234. }
  235. .item-options {
  236. display: flex;
  237. flex-wrap: wrap;
  238. .btn-cart,
  239. .btn-wishlist {
  240. flex-grow: 1;
  241. border-radius: 0;
  242. }
  243. }
  244. .item-name {
  245. margin-top: 0.75rem;
  246. }
  247. // Item Description
  248. .item-description {
  249. overflow: hidden;
  250. white-space: nowrap;
  251. text-overflow: ellipsis;
  252. margin-top: 0.2rem;
  253. }
  254. .item-price {
  255. font-weight: $font-weight-bolder;
  256. }
  257. .card-body {
  258. padding: 1rem;
  259. }
  260. }
  261. }
  262. // List View Specific style
  263. .list-view {
  264. display: grid;
  265. grid-template-columns: 1fr;
  266. .ecommerce-card {
  267. overflow: hidden;
  268. display: grid;
  269. grid-template-columns: 1fr 2fr 1fr;
  270. // list view image
  271. .item-img {
  272. display: flex;
  273. justify-content: center;
  274. align-items: center;
  275. height: 100%;
  276. }
  277. .card-body {
  278. padding: 1.5rem 1rem;
  279. border-right: 1px solid $border-color;
  280. display: flex;
  281. flex-direction: column;
  282. // item name and ratings order
  283. .item-wrapper {
  284. order: 2;
  285. }
  286. .item-name {
  287. order: 1;
  288. }
  289. // List view description
  290. .item-description {
  291. order: 3;
  292. display: -webkit-box;
  293. -webkit-line-clamp: 5;
  294. -webkit-box-orient: vertical;
  295. overflow: hidden;
  296. text-overflow: ellipsis;
  297. }
  298. // .item-rating,
  299. .item-price {
  300. display: none;
  301. }
  302. // ratings
  303. .item-rating {
  304. margin-bottom: 0.3rem;
  305. }
  306. }
  307. // Common for list-view, checkout and wishlist
  308. .item-company {
  309. display: inline-flex;
  310. font-weight: $font-weight-normal;
  311. margin: 0.3rem 0 0.5rem;
  312. font-size: 0.875rem;
  313. .company-name {
  314. font-weight: $font-weight-bolder;
  315. margin-left: 0.25rem;
  316. }
  317. }
  318. // price and btn area of list view
  319. .item-options {
  320. padding: 1rem;
  321. display: flex;
  322. flex-direction: column;
  323. justify-content: center;
  324. .item-wrapper {
  325. position: relative;
  326. .item-cost {
  327. .item-price {
  328. color: $primary;
  329. margin-bottom: 0;
  330. }
  331. }
  332. }
  333. // Shipping free tag
  334. .shipping {
  335. margin-top: 0.75rem;
  336. }
  337. // List view btn spacing
  338. .btn-wishlist,
  339. .btn-cart {
  340. margin-top: 1rem;
  341. }
  342. }
  343. }
  344. }
  345. // for checkout-items and options
  346. // Remove padding from stepper header & content area
  347. .checkout-tab-steps {
  348. .bs-stepper-header,
  349. .bs-stepper-content {
  350. padding: 0;
  351. margin: 0;
  352. }
  353. }
  354. // Checkout items list
  355. .checkout-items {
  356. .ecommerce-card {
  357. .item-img {
  358. img {
  359. width: 200px;
  360. }
  361. }
  362. // adding order as we have updated order for shop list view
  363. .item-name {
  364. order: 0 !important;
  365. }
  366. .item-company,
  367. .item-rating {
  368. margin-bottom: 0.4rem !important;
  369. }
  370. .item-quantity {
  371. display: flex;
  372. align-items: center;
  373. }
  374. .delivery-date {
  375. margin-top: 1.2rem;
  376. margin-bottom: 0.25rem;
  377. }
  378. // Item options button
  379. .item-options {
  380. .btn {
  381. display: flex;
  382. align-items: center;
  383. justify-content: center;
  384. }
  385. }
  386. }
  387. }
  388. .checkout-options {
  389. .coupons {
  390. &:focus-within {
  391. box-shadow: none;
  392. }
  393. input {
  394. border: none;
  395. padding-left: 0;
  396. color: $body-color;
  397. font-weight: $font-weight-bolder;
  398. &::placeholder {
  399. color: $body-color;
  400. font-weight: $font-weight-bolder;
  401. }
  402. }
  403. .input-group-append {
  404. margin: 0;
  405. }
  406. .input-group-text {
  407. height: auto;
  408. font-weight: $font-weight-bolder;
  409. padding: inherit;
  410. }
  411. }
  412. .price-details {
  413. .price-title {
  414. font-weight: $font-weight-bolder;
  415. margin-bottom: 0.75rem;
  416. margin-top: 1.5rem;
  417. }
  418. .price-detail {
  419. display: flex;
  420. justify-content: space-between;
  421. margin-bottom: 0.75rem;
  422. .detail-title {
  423. &.detail-total {
  424. font-weight: $font-weight-bolder;
  425. }
  426. }
  427. }
  428. }
  429. }
  430. .payment-type {
  431. .gift-card {
  432. cursor: pointer;
  433. }
  434. }
  435. // checkout wizard
  436. .checkout-tab-steps {
  437. background-color: transparent !important;
  438. box-shadow: none !important;
  439. .bs-stepper-header {
  440. border: none;
  441. }
  442. }
  443. // To hide toggler on lg and up and grid view for btn-wishlist and list view for checkout
  444. @include media-breakpoint-up(lg) {
  445. .ecommerce-header-items {
  446. // Hide toggler in > lg screen
  447. .shop-sidebar-toggler {
  448. display: none;
  449. }
  450. }
  451. // Checkout list view
  452. .product-checkout {
  453. &.list-view {
  454. grid-template-columns: 2fr 1fr;
  455. column-gap: 2rem;
  456. }
  457. }
  458. }
  459. }
  460. // Media queries to change grid columns in different Screens and to hide search results below 768px
  461. @include media-breakpoint-down(lg) {
  462. .ecommerce-application {
  463. // Header item area
  464. .ecommerce-header-items {
  465. .btn-group {
  466. align-items: center;
  467. .btn-icon {
  468. padding: 0.6rem 0.736rem;
  469. }
  470. }
  471. }
  472. .grid-view.wishlist-items {
  473. grid-template-columns: 1fr 1fr 1fr;
  474. }
  475. // overlay style for e-commerce page
  476. .body-content-overlay {
  477. position: fixed;
  478. opacity: 0;
  479. width: 100%;
  480. height: 100%;
  481. top: 0;
  482. left: 0;
  483. right: 0;
  484. bottom: 0;
  485. &.show {
  486. opacity: 1;
  487. }
  488. }
  489. // Horizontal Menu scss
  490. &.horizontal-layout {
  491. .body-content-overlay {
  492. z-index: 998 !important;
  493. }
  494. .sidebar-shop {
  495. z-index: 999 !important;
  496. }
  497. }
  498. }
  499. }
  500. @include media-breakpoint-down(md) {
  501. .ecommerce-application {
  502. .sidebar-left {
  503. .sidebar {
  504. // removed radius and margin as showing sidebar in full height
  505. .card {
  506. border-radius: 0;
  507. margin: 0;
  508. }
  509. // Sidebar style
  510. .sidebar-shop {
  511. transform: translateX(-112%);
  512. transition: all 0.25s ease;
  513. position: fixed;
  514. top: 0;
  515. left: 0;
  516. height: 100%;
  517. overflow-y: scroll;
  518. margin: 0;
  519. &.show {
  520. transition: all 0.25s ease;
  521. transform: translateX(0);
  522. }
  523. }
  524. }
  525. }
  526. // Grid view for responsive
  527. .grid-view {
  528. grid-template-columns: 1fr 1fr;
  529. }
  530. // to hide search results
  531. .ecommerce-header-items {
  532. .result-toggler {
  533. .search-results {
  534. display: none;
  535. }
  536. }
  537. }
  538. }
  539. }
  540. @include media-breakpoint-down(sm) {
  541. .ecommerce-application {
  542. .grid-view.wishlist-items {
  543. grid-template-columns: 1fr 1fr;
  544. }
  545. // List View
  546. .list-view {
  547. .ecommerce-card {
  548. grid-template-columns: 1fr;
  549. .item-img {
  550. padding-top: 2rem;
  551. padding-bottom: 2rem;
  552. }
  553. // to remove card-body border
  554. .card-body {
  555. border: none;
  556. }
  557. }
  558. }
  559. }
  560. }
  561. @include media-breakpoint-down(xs) {
  562. .ecommerce-application {
  563. // Grid View
  564. .grid-view,
  565. .grid-view.wishlist-items {
  566. grid-template-columns: 1fr;
  567. }
  568. }
  569. }