CameraBuy / web / assets / css / product.css
product.css
Raw
#product_showroom {
    display: flex;
    height: 60vh;
    padding: 1rem 4rem;
    background-color: var(--main-color);
    
    & .image_gallery {
        width: 50%;
        padding: 1rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;



        & #preview {
            display: flex;
            justify-content: center;
            width: 80%;
            height: 100%;

            & img {
                width: 100%;
                object-fit:contain;
            }
        }

        & #gallery {
            width: 20%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            overflow-y: scroll;
            & img {
                width: 100px;
                height: 100px;
                object-fit:cover;
                border-radius: 1rem;
                cursor: pointer;
                margin: 1rem 0;
            }
        }
    }

    & #product_keyinfos {
        padding: 1rem;
        flex-basis: 50%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
    
        & .tag {
            background-color: var(--accent-color);
            border-radius: 1rem;
            color: var(--main-color);
            width: fit-content;
            padding: 0.2rem 0.4rem 0.2rem 0.4rem;
        }

        & h3
        {
            font-family: Winco;
            font-size: 3rem;
        }

        & #warenkorb_preis {
            display: flex;
            align-items: center;
            flex-wrap: wrap;

            & button {
                margin: 0 2rem 0 0;
                background-color: var(--contrast-color);
                color: var(--main-color);
                border: 0;
            }

            & button:hover {
                background-color: var(--accent-color);
                cursor: pointer;
            }

            & .price {
                font-family: Winco;
                font-size: 2rem;
            }
        }

        & .service_info {
            font-size: 0.7rem;

            & a {
                font-size: 0.7rem;
                text-decoration: underline;
            }
        }
    
    }
}

#description {
    padding: 1.5rem 6rem;
    background-color: var(--variant-color);

    & h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
}

#specifications {
    background-color: var(--variant-color);
    padding: 0.5rem;

    > div {
        margin: 1.5rem 6rem;
        padding: 1rem;
        border: 1px solid var(--contrast-color);
        border-radius: 1rem;
        display: flex;
        flex-wrap: wrap;
        justify-content:space-between;

        & h2 {
            flex-basis: 100%;
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }

        & .specification {
            display: flex;
            width: 48%;
            margin: 0.8rem 0;
            padding-bottom: 0.3rem;
            border-bottom: 2px solid var(--contrast-color);


            & p {
                width: 50%;
            }

            & .specification_key {
                font-weight: 600;
            }
        }
    }
}