113 lines
2.0 KiB
CSS
113 lines
2.0 KiB
CSS
.product-page {
|
|
display: flex;
|
|
position: relative;
|
|
margin-block-start: 0.83em;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.back-button {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.back-button-svg {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.product-display {
|
|
flex-grow: 100;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.product-image-container {
|
|
aspect-ratio: 1;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.active-image {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
@media (pointer:none), (pointer:coarse), screen and (max-width: 900px) {
|
|
.product-page, .product-display {
|
|
flex-direction: column;
|
|
height: 80%
|
|
}
|
|
|
|
.product-display {
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.product-image-container {
|
|
aspect-ratio: 1;
|
|
flex-grow: 2;
|
|
width: 90%;
|
|
}
|
|
}
|
|
|
|
.product-info {
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.product-name {
|
|
font-size: 2em;
|
|
font-weight: bold;
|
|
margin-block-start: 0.83em;
|
|
margin-block-end: 0.83em;
|
|
}
|
|
|
|
.product-price {
|
|
font-size: 1.5em;
|
|
font-weight: bold;
|
|
margin-block-start: 0.83em;
|
|
margin-block-end: 0.83em;
|
|
}
|
|
|
|
.product-description {
|
|
font-size: 1.5em;
|
|
margin-block-start: 0.83em;
|
|
margin-block-end: 0.83em;
|
|
}
|
|
|
|
.product-quantity {
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.quantity-input {
|
|
width: 5em;
|
|
text-align: center;
|
|
}
|
|
|
|
.add-to-cart-button {
|
|
margin-block-start: 0.83em;
|
|
margin-block-end: 0.83em;
|
|
cursor: pointer;
|
|
background-color: #1A1A1A;
|
|
border: none;
|
|
color: #FFFFFF;
|
|
padding: 0.5em;
|
|
font-size: 1.5em;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.add-to-cart-button:hover {
|
|
background-color: #FFFFFF;
|
|
color: #1A1A1A;
|
|
}
|
|
|
|
.add-to-cart-button:active {
|
|
|
|
}
|