Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/app/design/frontend/Cnc/default/web/scss/modules/catalog/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/app/design/frontend/Cnc/default/web/scss/modules/catalog/_item.scss
// ==============================================
// PRODUCT ITEM
// ==============================================

// Product Item Line
.product-item-info {
    display: flex;
    height: 100%;
    position: relative;
    background-color: $c-white;
    border: 1px solid $c-grey;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.29);
    transition: box-shadow .3s linear;

    &:hover {
        box-shadow: 0 2px 8px -3px rgba(0, 0, 0, 0.29);
    }

    //
    //  Discount stickers
    //  _____________________________________________

    .discount-percent {
        position: absolute;
        top: 0;
        left: 0;
        background-color: $c-pink;
        color: $c-white;
        padding: 5px 10px 5px 5px;
        font-weight: $fw-roboto-regular;
        font-size: 1.1rem;
    }

    //
    //  Visual
    //  _____________________________________________

    .product-item-photo {
        display: flex;
        justify-content: center;
        padding: 15px 15px 20px;

        img {
            display: block;
            width: 100%;
            max-width: 254px;
        }
    }

    //
    //  Details
    //  _____________________________________________

    .product-item-details {
        display: flex;
        align-items: center;
    }

    .details__name {
        padding: 0 15px 5px;
    }

    .details__status-price {
        display: flex;
        flex-direction: column;
        margin-top: auto;
    }

    // Title
    .product-item-name {
        display: block;
        width: 100%;
        margin-bottom: 8px;
        font-size: 1.4rem;
        font-weight: $fw-roboto-regular;

        @include breakpoint(md) {
            font-size: 1.6rem;
        }
    }

    // Stock and Delivery details
    .stock-delivery {

        .stock {
            display: flex;
            align-items: center;
            line-height: 1.4;
        }

        .stock-label::after {
            content:"-";
            display: inline-block;
            margin-left: 3px;
            color: $c-blue-dark;
            font-weight: $fw-roboto-regular;
        }
    }

    // Delivery details
    .delivery-label {
        @include breakpoint(only-md) {
            display: block;
        }
    }

    // Tier Price
    .tier-price {
        margin-top: auto;
        padding: 0 10px;

        @include breakpoint(md) {
            padding: 0;
        }

        span {
            display: inline-block;
            padding: 5px;
            background-color: $c-tier-price;
            color: $c-white;
            font-size: 1.2rem;


            @include breakpoint(md) {
                font-size: 1.4rem;
            }
        }

        & + .price-actions {
            margin-top: 12px;
        }
    }

    // Price & action
    .price-actions {
        display: flex;
        justify-content: space-between;
        margin-top: auto;

        > .price-box {
            align-items: center;
            padding: 10px 15px;

            @include breakpoint(md) {
                height: 56px;
            }
        }
    }

    // Price
    .price-box {
        .price-wrapper {
            &.price-including-tax {
                display: none;
            }
        }
    }

    // Options
    .swatch-attribute {
        &.color {
            margin-bottom: 10px;
        }
    }

    // Actions
    .product-item-actions {
        display: flex;
        align-items: center;
        height: 100%;
        min-height: 40px;

        .actions-primary {
            height: 100%;

            .action {
                background-color: $c-pink;
                color: $c-white;
                padding: 8px 14px;
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: center;

                @include breakpoint(md) {
                    width: 64px;
                }

                &::before  {
                    content:"\e914";
                    @extend %icon-icomoon;
                    font-size: 1.6rem;

                    @include breakpoint(md) {
                        font-size: 2.3rem;
                    }
                }

                &::after {
                    content: '';
                    position: absolute;
                    top: 0;
                    right: 0;
                    bottom: 0;
                    left: 0;
                    cursor: pointer;
                }

                > span {
                    @extend .visually-hidden;
                }
            }
        }

        .actions-secondary {
            .action {
                padding: 5px;

                span {
                    @extend .visually-hidden;
                }
            }
        }
    }
}

//
//  Push product item
//  _____________________________________________

// Common block title

.widget,
.block.related,
.block.upsell,
.block.crosssell {

    .block-title {
        @extend .title-1;
        text-align: center;
    }
}


// Related & Upsell Product
.block {
    &.related,
    &.upsell,
    &.crosssell {
        @extend .inner-container;
        padding: 20px 0;
        clear: both;

        // Set order for mobile position
        @include breakpoint(only-md) {
            order: 4;
        }

        @include breakpoint(md) {
            padding: 55px 0 20px;
        }

        .block-title {
            // Use breakpoint "only-md" to override common css on block title
            @include breakpoint(only-md) {
                text-align: left;
            }
        }
    }

    &.related {
        position: relative;

        &:before {
            content: "";
            display: block;
            position: absolute;
            top: 0;
            bottom: 0;
            width: 100vw;
            left: 50%;
            transform: translateX(-50%);
            @extend .bg-gradient-top;
        }

        // Use to manage layer with before element
        .block-title,
        .block-content {
            position: relative;
        }
    }
}

// Recently viewed products
.block-viewed-products-grid,
.products-crosssell {
    padding: 30px 0;

    @include breakpoint(md) {
        padding: 60px 0 75px;
    }

    .product-item-details {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 15px 5px;
        flex-grow: 1;
    }

    .product-item-info {
        .stock {
            margin-top: auto;
        }

        .product-item-photo {
            padding: 12px;
        }
    }
}

// Common push product item
.products-upsell,
.block-viewed-products-grid,
.products-crosssell {
    .product-item-info {
        box-shadow: $c-box-shadow;
    }
}

.products-upsell,
.products-related,
.block-viewed-products-grid,
.products-crosssell,
.cs-block__content {
    .product-items {
        display: flex;
        justify-content: center;
    }
}

// Product Item Column
.slick-list,
.products-upsell,
.products-related,
.block-viewed-products-grid,
.products-crosssell,
.cs-block__content {
    .product-item {
        @include breakpoint(md) {
            padding: 0 10px;
        }
    }

    .product-item-info {
        flex-direction: column;
        max-width: 330px;
        margin: 0 auto;
        border: none;
        border-radius: 4px;
        box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.06);

        &:hover {
            box-shadow: 0 2px 8px -3px rgba(0, 0, 0, 0.29);
        }

        .details__name {
            margin-top: auto;
        }
    }

    .status-titles-grid {
        padding: 0 15px;
    }

    .price-actions {
        background-color: $c-blue;
        border-radius: 0 0 4px 4px;
    }

    .price-box span,
    .price-box .special-price span {
        color: $c-white;
    }

    .product-item-actions .actions-primary .action {
        border-radius: 0 0 4px 0;
    }
}

.slick-list {
    .product-item {
        height: 100%;
    }
}

//
//  Common details's styles of all products item
//  _____________________________________________

.delivery-label {
    color: $c-blue-dark;
    font-size: 1.2rem;
    font-weight: $fw-roboto-bold;
}

Spamworldpro Mini