123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708 |
- // ================================================================================================
- // File Name: app-ecommerce-shop.scss
- // Description: SCSS file for ecommerce shop page.
- // ----------------------------------------------------------------------------------------------
- // Item name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template
- // Author: PIXINVENT
- // Author URL: http://www.themeforest.net/user/pixinvent
- // ================================================================================================
- // Core variables and mixins
- @import "../bootstrap/functions";
- @import "../bootstrap/mixins";
- @import "../bootstrap-extended/mixins";
- // Load variable overrides
- @import "../core/variables/variables";
- @import "../bootstrap/variables";
- // Overrides user variable
- @import "../core/variables/components-variables";
- $wishlist-bg :#f6f6f6;
- .ecommerce-application{
- .content-body{
- position: relative;
- }
- .shop-content-overlay{
- position: absolute;
- top: 4.2rem;
- height: 100%;
- width: 100%;
- background: rgba($pure-black,.2);
- z-index: 0;
- opacity: 0;
- &.show{
- opacity: 1;
- z-index: 1;
- }
- }
- // Shop Sidebar
- .sidebar-shop{
- //close icon
- .sidebar-close-icon {
- position: absolute;
- top: 0.25rem;
- right: 0.25rem;
- font-size: 1.25rem;
- z-index: 5;
- cursor: pointer;
- }
- // for heading
- .filter-heading{
- font-weight: 700;
- color: $body-color;
- position: relative;
- top: -7px;
- }
- // for radio
- .vs-radio-con{
- input:checked ~ span{
- color: $primary;
- }
- }
- // for title
- .filter-title{
- font-weight: 700;
- }
- // for slider
- .range-slider.noUi-horizontal{
- height: .285rem;
- .noUi-base{
- height: .285rem;
- }
- .noUi-handle{
- right: -1.071rem !important;
- top: -.428rem;
- width: 16px;
- height: 16px;
- border-width: .142rem;
- line-height: 1.15;
- cursor: pointer;
- .noUi-tooltip{
- opacity: 0;
- font-size: .75rem;
- background-color: $primary;
- color: $white;
- border-radius: .357rem;
- border: none;
- padding: .142rem .357rem;
- transform: translate(-50%, -50%);
- &:before{
- content: "$ ";
- }
- }
- &:hover{
- transform: scale(1.2);
- }
- &:active{
- transform: scale(1);
- border-width: .5rem;
- transition: .25s ease;
- .noUi-tooltip{
- opacity: 1;
- }
- }
- }
- }
- // for stars in ratingd
- .ratings-list {
- .ratings-list-item{
- font-size: 1.5rem;
- cursor: pointer;
- }
- & ~ .stars-received{
- margin-top: .35rem;
- }
- }
- }
- .sidebar-shop{
- margin-top: 2rem;
- width: $sidebar-width;
- z-index: 4;
- }
- // shop main content
- //ecommerce header
- .ecommerce-header-items{
- display: flex;
- justify-content: space-between;
- .view-options{
- .view-btn-option{
- display: inline-block;
- .btn.view-btn{
- margin-right: 10px;
- background-color: $white;
- padding: .5rem;
- color: $body-color;
- box-shadow: 0 2px 8px 0 rgba($pure-black,.14) !important;
- i{
- font-size: 1.7rem;
- }
- &.active{
- &:hover,&:active{
- color: $primary !important;
- }
- color: $primary !important;
- }
- &:hover,&:active{
- color: $body-color;
- }
- }
- }
- .select2{
- margin-right: 10px;
- width: auto !important;
- .select2-selection--single{
- border: none !important;
- box-shadow: 0 2px 8px 0 rgba($pure-black,.14);
- border-radius: 5px;
- }
- }
- }
- .result-toggler{
- display: flex;
- align-items: flex-end;
- .shop-sidebar-toggler{
- font-size: 1.7rem;
- padding-left: 0;
- margin-left: -6px;
- &:active,&:focus{
- outline: 0;
- }
- .navbar-toggler-icon{
- i{
- color: $body-color;
- vertical-align: middle;
- }
- }
- }
- .search-results{
- font-weight: 700;
- color: $body-color;
- display: inline-block;
- }
- }
- }
- // Product search bar
- .search-product{
- height: 48px;
- border: none;
- box-shadow: 0 2px 8px 0 rgba($pure-black,.14);
- font-size: 1.2rem;
- padding-left: 1rem;
- & ~ .form-control-position{
- top: 10px;
- right: 10px;
- i{
- font-size: 1.5rem;
- }
- }
- &::placeholder{
- font-size: .95rem;
- }
- }
- // main Products
- .ecommerce-card{
- &:hover{
- transform: translateY(-5px);
- box-shadow: 0 4px 25px 0 rgba($pure-black,.25);
- }.item-price{
- font-weight: 700;
- }
- .item-rating{
- i{
- margin-left: .25rem;
- vertical-align: top;
- }
- }
- .item-name{
- font-weight: 600;
- color: $headings-color;
- }
- .item-description{
- font-size: .875rem;
- }
- .wishlist,.cart{
- padding: .8rem 1rem;
- cursor: pointer;
- font-weight: 600;
- font-size: .875rem;
- text-transform: uppercase;
- i{
- font-size: 1rem;
- margin-right: .25rem;
- }
- }
- p{
- color: $body-color;
- }
- .wishlist{
- background-color: $wishlist-bg;
- color: $headings-color;
- user-select: none;
- &.added{
- i{
- color: $danger;
- }
- }
- }
- .cart{
- background-color: $primary;
- color: $white;
- .view-in-cart{
- color: $white;
- }
- }
- }
- // margin for both views
- .grid-view,
- .list-view{
- margin-top: .7rem;
- }
- // Grid View
- .grid-view{
- display: grid;
- grid-template-columns: 1fr 1fr 1fr;
- column-gap: 28px;
- .ecommerce-card{
- overflow: hidden;
- .card-content{
- .item-img{
- padding-top: .5rem;
- min-height: 15.85rem;
- }
- .item-wrapper{
- display: flex;
- justify-content: space-between;
- .item-price{
- position: relative;
- top: 5px;
- }
- .shipping{
- display: none;
- }
- }
- .item-company{
- display: none;
- }
- .item-options{
- display: flex;
- flex-wrap: wrap;
- .cart,.wishlist{
- flex-grow: 1;
- }
- .wishlist{
- padding: .8rem 2rem;
- }
- .item-wrapper{
- .item-rating{
- display: none;
- }
- .item-price{
- display: none;
- }
- }
- }
- .item-name{
- margin-top: 1rem;
- }
- .item-name,.item-description{
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- }
- .card-body{
- padding: 1rem;
- padding-bottom: 0;
- }
- }
- }
- // List View
- .list-view{
- display: grid;
- grid-template-columns: 1fr;
- .ecommerce-card{
- overflow: hidden;
- .card-content{
- display: grid;
- grid-template-columns: 1fr 2fr 1fr;
- .item-img{
- align-self: center;
- padding-left: 1rem;
- padding-right: 1rem;
- display: flex;
- justify-content: center;
- align-items: center;
- height: 100%;
- }
- .card-body{
- padding: 1rem;
- padding-bottom: .5rem;
- border-right: 1px solid $gray-300;
- .item-rating{
- display: none;
- }
- .item-price{
- display: none;
- }
- .item-name{
- margin-bottom: .25rem;
- font-size: .95rem;
- }
- .item-company{
- display: block;
- cursor: pointer;
- font-size: .875rem;
- .company-name{
- color: $primary;
- }
- }
- }
- .item-options{
- padding: 1rem;
- .item-wrapper{
- position: relative;
- .item-rating{
- position: absolute;
- right: 0;
- }
- .item-cost{
- .item-price{
- position: relative;
- top: 55px;
- font-size: 16px;
- }
- }
- }
- .shipping{
- position: relative;
- top: 50px;
- color: $text-muted;
- }
- .wishlist{
- margin-top: 84px;
- margin-bottom: 10px;
- }
- .wishlist,.cart{
- border-radius: 6px;
- }
- }
- }
- }
- }
- // for checkout-items and options
- .checkout-items{
- .ecommerce-card{
- .card-content{
- .item-company{
- margin-bottom: 0;
- }
- .stock-status-in{
- color: $success;
- font-weight: 400;
- font-size: .875rem;
- }
- .stock-status-out{
- color: $danger;
- font-weight: 400;
- font-size: .875rem;
- }
- .item-quantity{
- font-weight: 700;
- font-size: .875rem;
- .quantity-title{
- margin-bottom: 0.5rem;
- }
- .quantity-counter-wrapper{
- margin-left: -10px;
- }
- }
- .delivery-date,
- .offers{
- font-weight: 500;
- margin-bottom: 0;
- font-size: 1rem;
- }
- .delivery-date{
- color: $text-muted;
- margin-top: 1.8rem;
- }
- .offers{
- color: $success;
- }
- }
- }
- }
- .checkout-options{
- .options-title{
- color: $text-muted;
- }
- .coupons{
- display: flex;
- justify-content: space-between;
- .coupons-title{
- font-weight: 600;
- p{
- margin-bottom: .5rem;
- }
- }
- .apply-coupon{
- color: $primary;
- font-weight: 500;
- cursor: pointer;
- p{
- margin-bottom: .5rem;
- }
- }
- }
- .price-details{
- font-weight: 600;
- margin-bottom: .75rem;
- }
- .detail{
- display: flex;
- justify-content: space-between;
- margin-bottom: .75rem;
- .detail-title{
- color: $text-muted;
- &.detail-total{
- color: $body-color;
- font-weight: 600;
- }
- }
- .detail-amt{
- &.discount-amt{
- color: $success;
- }
- &.emi-details{
- color: $primary;
- cursor: pointer;
- }
- &.total-amt{
- font-weight: 600;
- }
- }
- }
- }
- .payment-type{
- .gift-card{
- cursor: pointer;
- i{
- position: relative;
- top: 3px;
- }
- }
- }
- // checkout wizard
- .wizard{
- &.checkout-tab-steps{
- .steps{
- ul{
- li{
- &.error > a{
- color: $primary;
- .step{
- border-color: $primary;
- background-color: $primary;
- }
- }
- }
- }
- }
- #checkout-address{
- .form-group{
- .error{
- color: $danger;
- }
- }
- }
- }
- }
- // Media queries to change grid columns in diffrent Screens and to hide search results below 768px
- @media(max-width: 1200px){
- .app-content{
- overflow: scroll;
- }
- }
- @include media-breakpoint-down(md){
- .sidebar-left{
- .sidebar{
- position: absolute;
- top: 14rem;
- .card{
- border-radius: 0;
- padding-bottom: 100vh;
- padding-bottom: calc(var(--vh, 1vh) * 100);
- .card-body{
- padding-bottom: 100%;
- }
- }
- .sidebar-shop{
- transform: translateX(-112%);
- transition: all .25s ease;
- position: absolute;
- &.show{
- transition: all .25s ease;
- transform: translateX(0);
- }
- }
- }
- }
- .ecommerce-header-items{
- .result-toggler{
- .shop-sidebar-toggler{
- position: relative;
- top: 1.2rem;
- }
- }
- }
- .grid-view{
- grid-template-columns: 1fr 1fr;
- }
- }
- @include media-breakpoint-down(md){
- // to hide search results
- .ecommerce-header-items{
- .result-toggler{
- .search-results{
- display: none;
- }
- .shop-sidebar-toggler{
- top: .5rem;
- }
- }
- .sidebar-shop{
- transform: translateX(-123%);
- transition: all .2s ease;
- z-index: 5;
- &.show{
- position: absolute;
- transform: translateX(0);
- transition: all .2s ease;
- }
- }
- }
- // List View
- .list-view{
- .ecommerce-card{
- .card-content{
- grid-template-columns: 1fr;
- .item-img{
- padding-top: 2rem;
- padding-bottom: 2rem;
- }
- // to remove card-body border
- .card-body{
- border: none;
- }
- }
- }
- }
- }
- @media (max-width: 576px){
- // shop sidebar
- .sidebar-shop {
- top: 0;
- }
- // Grid View
- .grid-view{
- grid-template-columns: 1fr;
- }
- }
- // To hide toggler on lg and up and grid view for wishlist and list view for checkout
- @include media-breakpoint-up(lg){
- .ecommerce-header-items{
- .shop-sidebar-toggler{
- display: none;
- }
- }
- .wishlist-items{
- &.grid-view{
- grid-template-columns: 1fr 1fr 1fr 1fr;
- }
- }
- .product-checkout{
- &.list-view{
- grid-template-columns: 2fr 1fr;
- column-gap: 20px;
- }
- }
- }
- // for below xs screens
- @media (max-width: 360px) {
- .sidebar-shop{
- top: 1.5rem;
- }
- }
- }
- // IE Specific
- @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
- // to make cards look like grid
- .ecommerce-application{
- // grid view
- .grid-view{
- display: block;
- .ecommerce-card{
- float: left;
- width: 31%;
- margin-left: 1%;
- margin-right: 1%;
- }
- }
- // list view
- .list-view{
- display: block;
- .ecommerce-card{
- .card-content{
- display: flex;
- .item-options{
- .wishlist,.cart{
- padding: .8rem 3rem;
- display: flex;
- justify-content: center;
- }
- }
- }
- }
- }
- #ecommerce-pagination{
- .row{
- clear: both;
- }
- }
- }
- }
|