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/view/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/app/design/frontend/Cnc/default/web/scss/modules/catalog/view/_view.scss
// ==============================================
// VIEW - Product full view
// ==============================================

// Configuration

$product-media-width:           40%;
$product-info-main-width:       60%;

//
//  Magento native
//  _____________________________________________

.page-layout-1column {

    .product-top.grouped {
        .product-info-main {
            @include breakpoint(md) {
                max-width: none;
            }
        }
    }

    .product-info-main {
        width: 100%;

        @include breakpoint(md) {
            width: $product-info-main-width;
            max-width: 635px;
            margin-top: 80px;

            &.grouped {
                max-width: none;
            }
        }
    }

    .product.media {
        width: 100%;

        @include breakpoint(md) {
            width: $product-media-width;
            padding-right: 30px;
        }
    }
}

.catalog-product-view {

    .page-wrapper {
        overflow-x: hidden;
    }

    // Product title
    .page-title-wrapper {
        @include breakpoint(only-md) {
            width: calc(100% - 80px);
        }
    }

    .page-title {
        font-size: 1.8rem;

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

        margin-bottom: 10px;
    }

    .columns {
        padding-bottom: 0;
    }

    // Print mode
    @media print {

        #cnc-return-link-container,
        .cnc-product-calculate-shipping,
        .product.media > a,
        .fotorama__nav-wrap,
        .block.product-estimate,
        .product-reviews-summary,
        .product-info-main-details,
        .reinsurance-banner,
        .reinsurance-contact,
        .product-info-details-delivery .product.info.delivery,
        .product-info-details-delivery .data.item.title,
        .product-info-details-delivery .data.item.content#additional,
        .admin__data-grid-outer-wrap,
        .additional-attributes-wrapper.table-wrapper,
        .grouped-container .control.qty,
        .grouped-container .price-actions,
        .btn-product-print,
        .product-reviews-wrapper,
        .cnc-banner-image,
        .cookie-notice,
        .page-footer {
            display: none !important;
        }

        .product-top {
            margin-top: 5px !important;
        }

        .product-info-main .grouped-container .warranty {
            max-width: 300px;
            padding: 0;
        }

        .product-info-main .grouped-container .warranty .warranty-label::after {
            content: '-';
        }

        .product-info-main .grouped-container .warranty .tooltip {
            position: static;
            opacity: 1;
            transform: translateY(0);
            padding: 0;
            border: none;
            box-shadow: none;
        }

        .availability,
        .product-info-main .grouped-item .stock.available {
            height: 10px;
            width: 60px;
            background-color: $c-available;
        }

        .product-info-main .grouped-item .saved-money {
            text-align: left;
        }

        .product.media,
        .product-info-main {
            margin-bottom: 20px !important;
        }

        .product-info-details-delivery {
            margin-bottom: 5px !important;
        }

        .grouped-item.product-add-form {
            margin-top: 5px !important;
            margin-bottom: 5px !important;
        }

        .product-info-details-delivery .data.item.content {
            padding: 0;
            border: none;
        }

        .print-logo-container {
            width: 100%;
            max-width: 1440px;
            padding: 0 20px;
            margin: 0 auto;
        }

        .product-info-details-delivery {
            margin-bottom: 5px !important;
        }

        #cnc-logo,
        .product.attribute.description,
        #cnc-product-qr-code-image,
        .print-logo-container {
            display: block !important;
        }

        .product.attribute.description {
            font-size: 12px;
            line-height: 1.5;
        }

        .product.media,
        .product.media .gallery-placeholder,
        .product.media .fotorama__stage__frame,
        .product.media .fotorama-item,
        .product.media .fotorama__img {
            width: 150px !important;
            height: auto !important;
        }

        .product.media {
            padding-right: 0 !important;
        }
    }
}

//
//  Product Container - Media & Description
//  _____________________________________________

.product-top {
    display: flex;
    flex-direction: column;
    margin-top: 50px;
    justify-content: space-between;

    @include breakpoint(md) {
        flex-wrap: wrap;
        flex-direction: row;

        // Element's order
        .product-top-info-main {
            order: 1;
        }
        .product.media {
            order: 2;
        }
        .product-info-main {
            order: 3;
        }
    }

    .soon-qty-updater {
        @include breakpoint(md) {
            font-size: 3rem;
        }
    }

    .action.tocart {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        padding: 6px 24px;

        &:after {
            content: "\e90d";
            @extend %icon-icomoon;
            font-size: 2.3rem;
            margin-left: 10px;
        }
    }
}

//
//  Product visual (skin in _gallery.scss)
//  _____________________________________________

.product {

    // Gallery
    &.media {
        margin-bottom: 30px;
    }
}

//
//  Product description
//  _____________________________________________

.product-top-info-main {
    margin-bottom: 20px;

    @include breakpoint(md) {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }


    // Price
    .product-info-price {
        display: flex;
        flex-direction: column;

        @include breakpoint(only-md) {
            width: calc(100% - 80px);
        }


        @include breakpoint(md) {
            align-items: flex-end;
            margin-left: auto;
        }

        > div {
            margin-bottom: 15px;

            &:last-child {
                margin-bottom: 0;
            }
        }
    }
}

.product-info-main {
    margin-bottom: 30px;

    // Product simple details container
    .product-info-main-details {
        position: relative;

        @include breakpoint(md) {
            display: flex;
            justify-content: flex-end;
            align-items: baseline;

            .product-info-main-attribute {
                padding-right: 20px;
            }
        }

        .btn-product-print {
            margin-left: 2rem;
            font-size: 2.6rem;
            color: $c-blue-dark;
            cursor: pointer;

            &:hover {
                color: $c-blue;
            }

            @include breakpoint(only-md) {
                position: absolute;
                top: -100px;
                right: 0;
                font-size: 2.4rem;
            }
        }

        .soon-social-wrapper {
            margin-left: auto;
        }
    }

    .product-reviews-summary,
    .product-info-price {
        margin-bottom: 20px;
    }

    // Stock
    .stock {
        font-size: 1.8rem;
    }

    // Attributes
    .attribute {
        &.states {
            display: block;
        }

        &.warranty {
            padding: 10px 0 20px;
            font-size: 1.2rem;
            color: $c-blue-dark;

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

    // Add to cart
    .box-tocart {
        .fieldset {

            @include breakpoint(md) {
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
        }

        .field.qty {
            margin-bottom: 28px;

            .label {
                display: none;
            }

            input.qty {
                @include breakpoint(md) {
                    width: 75px;
                    padding: 15px 5px;
                }
            }
        }

        .action.tocart {

            @include breakpoint(md) {
                margin-left: 15px;
                padding: 8px 40px;
                font-size: 1.7rem;
            }
        }
    }

    // Tiers prices
    .box-tocart.with-tp {
        .fieldset {
            display: block;
        }

        .field.qty {

            @include breakpoint(md) {
                display: flex;
                align-items: center;
                justify-content: space-between;
                margin-bottom: 55px;

                > .control {
                    position: relative;
                    top: 14px; // height of prices tier header / 2
                }
            }

            > .control {
                padding: 0 25px;
            }
        }

        .action.tocart {
            margin-left: auto;
        }
    }

    .prices-tier-wrapper {
        flex-grow: 1;
        flex-basis: 0;
        text-align: center;
        color: $c-blue-dark;
        font-weight: $fw-roboto-medium;
        margin-top: 20px;
        margin-bottom: 20px;

        @include breakpoint(md) {
            max-width: 500px;
        }
    }

    .prices-tier {

        &.header > span,
        &.items .item > span {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50%;
            padding: 8px 10px;
        }

        &.header {
            display: flex;
            font-size: 1.2rem;
            text-transform: uppercase;
        }

        &.items {
            border: 1px solid $c-grey;

            .price-including-tax,
            .benefit {
                display: none;
            }

            .item {
                display: flex;
                font-size: 1.6rem;

                &:nth-child(odd) > span:last-of-type {
                    color: $c-blue;
                }

                &:nth-child(even) {
                    background-color: $c-blue;
                    color: $c-white;
                }

                > span:first-of-type {
                    border-right: 1px solid $c-grey;
                }
            }
        }
    }

    // Social
    .product-social-links {
        display: flex;

        .action {
            margin-right: 10px;
        }
    }

    //  Grouped product
    .grouped-container {
        color: $c-blue-dark;

        // Column width
        .state {
            padding-right: 25px;
            width: 65%;

            @include breakpoint(lg) {
                width: 22%;
            }
        }

        .availability {
            width: 35%;

            @include breakpoint(lg) {
                width: 22%;
            }
        }

        .stock,
        .warranty {
            @include breakpoint(only-lg) {
                margin-top: 20px;
            }
        }

        .stock {
            @include breakpoint(lg) {
                padding-right: 20px;
            }

            .print-text {
                display: none;
            }
        }

        .warranty {
            @include breakpoint(only-lg) {
                width: 100%;
            }

            @include breakpoint(lg) {
                padding: 0 10px;
            }
            position: relative;
            cursor: pointer;

            &:hover,
            &:focus {
                .tooltip {
                    z-index: 1;
                    opacity: 1;
                    transform: translateY(0);
                }
            }

            .warranty-label {
                &::after {
                    @extend %icon-icomoon;
                    content: '\e935';
                    font-size: 1.4rem;
                    margin-left: .5rem;
                }
            }

            .tooltip {
                position: absolute;
                z-index: -1;
                top: 100%;
                left: 0;
                right: 0;
                padding: 1rem;
                background: $c-white;
                border: 1px solid $c-grey-border;
                border-radius: .25rem;
                box-shadow: $c-box-shadow;
                font-size: 1.2rem;
                line-height: 1.4;
                opacity: 0;
                transform: translateY(10px);
                transition: opacity .3s, transform .3s;

                @include breakpoint(lg) {
                    right: -55px;
                }
            }
        }

        .price-actions {
            width: 100%;
            font-size: 1.8rem;

            @include breakpoint(lg) {
                max-width: 230px;
                text-align: right;
            }

            .price-box {
                @include breakpoint(only-lg) {
                    justify-content: flex-start;
                    margin-bottom: 0;
                    margin-top: 20px;
                }
            }

            .actions {
                max-width: 205px;
                margin: 0 auto;

                @include breakpoint(only-lg) {
                    margin: 0 auto;
                }
            }
        }
    }

    .grouped-container__header {
        display: none;
        align-items: center;
        padding: 10px 30px;
        width: 100%;
        border: 1px solid transparent;
        color: $c-blue;

        @include breakpoint(lg) {
            display: table;
            table-layout: fixed;
        }

        > * {
            display: table-cell;
            vertical-align: middle;
        }
        .availability {
            padding-left: 10px;
        }

        .direction {
            &:before {
                display: inline-block;
                font-size: 2rem;
            }
        }
    }

    .grouped-item {
        padding: 20px 15px;
        border: 1px solid $c-grey;

        + .grouped-item {
            margin-top: 20px;
        }

        @include breakpoint(lg) {
            padding: 35px 3%;
        }

        form {
            display: flex;
            align-items: center;
            width: 100%;
            font-size: 1.2rem;
            line-height: 1.34;

            @include breakpoint(only-lg) {
                flex-wrap: wrap;

                .price-actions {
                    .actions {
                        text-align: center;
                    }
                }
            }

            > div {
                margin-bottom: 15px;

                &:last-child {
                    margin-bottom: 0;
                }
            }

            .control.qty {
                margin: 0 auto 15px;
            }
        }

        // States
        .attribute.states {
            display: flex;
            flex-direction: column;
            max-width: 130px;
            width: 100%;

            > span {
                padding: 0 0 5px;
            }
        }

        // Stock
        .stock {
            font-size: 1.2rem;
        }

        // Calculate shipping link
        .cnc-product-calculate-shipping {
            display: block;
            @extend .link-1;
        }

        // Set absolute position due to padding self
        .validation-message-box {
            position: absolute;
        }

        .saved-money {
            font-size: 1.2rem;
            text-align: center;

            @include breakpoint(lg) {
                margin-top: 15px;
                text-align: right;
            }
        }
    }
}

//
//  Catalog Product - Soon Social
//  _____________________________________________
.soon-social-wrapper {
    text-align: right;
    position: absolute;
    top: -100px;
    right: 40px;

    @include breakpoint(md) {
        position: static;
    }

    &.is-visible {

        .icon-sharing {
            color: $c-blue;
        }

        > ul {
            opacity: 1;
            visibility: visible;
            transform: translateY(10px);
        }
    }

    .icon-sharing {
        cursor: pointer;
        transition: color .3s linear;
        font-size: 2.4rem;
        color: $c-blue-dark;
        @extend %unselectable;

        &:hover {
            color: $c-blue;
        }

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

    > ul {
        position: absolute;
        right: 0;
        padding: 10px 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(0);
        transition: transform .3s linear, opacity .3s linear;
        border: 1px solid $c-blue-dark;
        text-align: left;
        min-width: 280px;
        z-index: 1;
        background: $c-white;
    }

    li {
        padding: 5px 0;
    }

    a {
        &:hover {
            color: $c-blue;
        }
    }

    .icon {
        display: inline-block;
        vertical-align: middle;
        width: 20px;
        margin-right: 10px;
        color: $c-blue;
        text-align: center;
    }
}

//
//  Product reinsurance banner
//  _____________________________________________

.reinsurance-banner {
    background-color: $c-white-dark;
    margin: 50px -20px 60px;

    @include breakpoint(md) {
        margin: 50px 0 60px;
    }
}

.reinsurance-banner__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;

    @include breakpoint(md) {
        flex-direction: row;
        align-items: center;
    }

    & > li {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-grow: 1;
        flex-basis: 0;
        padding: 15px 25px;
        font-size: 1.4rem;
        color: $c-blue-dark;

        @include breakpoint(md) {
            padding: 30px 10px;
            font-size: 1.6rem;
        }

        .icon {
            width: 50px;
            margin-right: 12px;
            font-size: 4.3rem;
            text-align: center;
        }
    }
}

//
//  Product Info Details & Delivery
//  _____________________________________________

.product-info-details-delivery {
    display: flex;
    flex-direction: column;
    margin-bottom: 70px;

    @include breakpoint(lg) {
        flex-direction: row;
    }

    .info {
        flex-basis: 0;
    }

    // Details
    .info.detailed {
        margin-bottom: 30px;

        @include breakpoint(lg) {
            flex-grow: 3;
            max-width: 915px;
            margin-bottom: 0;
        }

        .product {
            &.attribute {
                &.description {
                    .value {
                        line-height: 1.5;
                    }
                }
            }
        }
    }

    // Delivery
    .info.delivery {
        @include breakpoint(only-md) {
            margin: 0 -15px;
        }

        @include breakpoint(md) {
            flex-grow: 1;
            padding: 0 2% 0 4%;
        }

        .block-title {
            font-weight: $fw-roboto-medium;
            @extend .title-1;

            @include breakpoint(md) {
                text-align: left;
            }
        }

        .block-subtitle {
            display: inline-block;
            padding: 0 15px;
            margin-bottom: 10px;
            color: $c-blue;
            font-size: 1.4rem;

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

        .deliveries-details + .deliveries-details {
            margin-top: 40px;
        }

        ul {
            display: flex;
            margin: 0 -1rem;

            li {
                width: 50%;
                padding: 0 1rem;
            }
        }

        .delivery-item {
            position: relative;
            display: flex;
            align-items: center;
            min-height: 5.5rem;

            .delivery-picture {
                width: 60px;
                margin-right: 1rem;
                text-align: center;

                @include breakpoint(md) {
                    margin-right: 1.2rem;
                }
            }

            .label {
                display: inline-block;
                font-size: 1.4rem;
                font-weight: $fw-roboto-bold;
                color: $c-blue-dark;
                margin-bottom: 5px;
            }

            .delivery-fake-link {
                display: block;
                color: $c-blue;
                font-size: 1.2rem;
                text-decoration: underline;
                cursor: pointer;
            }

            .delivery-description {
                position: absolute;
                z-index: -1;
                top: 100%;
                left: 0;
                right: 0;
                padding: 1rem;
                background: $c-white;
                border: 1px solid $c-grey-border;
                border-radius: .25rem;
                box-shadow: $c-box-shadow;
                font-size: 1.2rem;
                line-height: 1.4;
                opacity: 0;
                transform: translateY(10px);
                transition: opacity .3s, transform .3s;
            }

            .delivery-name {
                cursor: pointer;

                &:hover,
                &:focus {
                    + .delivery-description {
                        z-index: 1;
                        opacity: 1;
                        transform: translateY(0);
                    }
                }
            }
        }
    }
}

//
//  Customer Reviews list
//  _____________________________________________

.product-reviews-wrapper {
    margin-bottom: 20px;

    @include breakpoint(md) {
        margin-bottom: 70px;
    }

    .action {
        display: block;
        margin: 0 auto 20px;

        &.apply {
            @extend .btn--border;
            display: block;

            @include breakpoint(md) {
                float: left;
                position: relative;
                left: calc(50% - 180px);
                margin-bottom: 0;
            }
        }
    }
}

.review-list {
    max-width: 910px;
    margin: 0 auto 20px;

    @include breakpoint(md) {
        margin: 0 auto 40px;
    }

    .block-title {
        span {
            font-weight: $fw-roboto-regular;
        }
    }
}

.review-item {
    border: 1px solid $c-grey;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;

    @include breakpoint(md) {
        flex-direction: row;
        align-items: center;
        padding: 22px 25px;
    }

    & + .review-item {
        border-top: none;
    }
}

.review-title {
    display: none;
}

.review-details {
    padding-right: 20px;

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

    // Reviews Author
    .review-author {
        font-weight: $fw-roboto-bold;
        font-size: 1.6rem;
        color: $c-blue-dark;
        margin-bottom: 0;
    }

    // Reviews Author
    .review-date {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    // Rating
    .rating-summary {
        display: block;
    }
}

// Reviews content description
.review-content {
    flex-grow: 1;
    flex-basis: 0;
    border-top: 1px solid $c-grey;
    margin-top: 15px;
    padding-top: 15px;
    color: $c-blue-dark;
    font-size: 1.2rem;

    @include breakpoint(md) {
        border-left: 1px solid $c-grey;
        border-top: none;
        margin-top: 0;
        padding: 25px 0 25px 35px;
        font-size: 1.4rem;
    }
}

// Popin adding review

.review-field-rating {
    .review-control-vote {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    input[type="radio"] + label {
        width: 50%;

        @include breakpoint(md) {
            margin-right: 10px;
            width: auto;
        }
    }
}

//
//  Modals
//  _____________________________________________

// Hide block before loading modal
.product-info-main .product-estimate,
.product-reviews-wrapper .review-add {
    opacity: 0;
}

.modal-content {
    .block.product-estimate,
    .review-add {
        opacity: 1;
    }


    // Product shipping estimate
    .block.product-estimate {

    }

    #product-estimate {
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        @include breakpoint(md) {
            flex-wrap: wrap;
            flex-direction: row;
        }

        .messages {
            width: 100%;
        }

        @include breakpoint(md) {
            form,
            .source-quotes {
                width: 48%;
            }
        }

        // Shipping methods wrapper
        .source-quotes {}

        .source-info {
            @extend .visually-hidden;
        }

        // Shipping methods
        .source-quote-shipping-methods {
            margin-top: 30px;
            margin-bottom: 30px;
        }

        .item-title {
            margin-bottom: 10px;
        }

        .item-options {
            margin-bottom: 30px;
        }
    }
}

Spamworldpro Mini