236 lines
4.6 KiB
CSS
236 lines
4.6 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%;
|
|
}
|
|
|
|
@media (pointer:none), (pointer:coarse), screen and (max-width: 900px) {
|
|
.product-page, .product-display {
|
|
flex-direction: column;
|
|
height: 80%
|
|
}
|
|
|
|
.product-display {
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
}
|
|
|
|
.product-info {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.product-image-container {
|
|
flex-grow: 2;
|
|
width: 90%;
|
|
}
|
|
}
|
|
|
|
.product-info {
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
margin-left: 1em;
|
|
}
|
|
|
|
.product-name {
|
|
font-size: 2em;
|
|
font-weight: bold;
|
|
margin-block-start: 0.83em;
|
|
margin-block-end: 0.83em;
|
|
}
|
|
|
|
.product-tags {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
margin-block-start: 0.83em;
|
|
}
|
|
|
|
.tag {
|
|
padding: 0.3em 1em;
|
|
margin-right: 1em;
|
|
line-height: 1.5em;
|
|
font-size: 0.8em;
|
|
font-weight: bold;
|
|
background-color: #F2CA52;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.product-listing-price {
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.product-listing-price-full {
|
|
text-decoration: line-through;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.product-listing-price-new {
|
|
font-weight: bold;
|
|
color: red;
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.product-description {
|
|
font-size: 1em;
|
|
margin-block-start: 0.83em;
|
|
margin-block-end: 0.83em;
|
|
}
|
|
|
|
.product-quantity-selector {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 1em;
|
|
}
|
|
|
|
.product-quantity-button {
|
|
cursor: pointer;
|
|
font-size: 1.7em;
|
|
border: #1A1A1A solid 1px;
|
|
background-color: #F5F6F6;
|
|
border-radius: 0.2em;
|
|
width: 1.5em;
|
|
height: 1.5em;
|
|
}
|
|
|
|
/* https://www.w3schools.com/howto/howto_css_hide_arrow_number.asp */
|
|
input::-webkit-outer-spin-button,
|
|
input::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
input[type=number] {
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
.quantity-input {
|
|
height: 2.2em;
|
|
width: 3.7em;
|
|
background-color: #F5F6F6;
|
|
border-top: #1A1A1A solid 1px;
|
|
border-bottom: #1A1A1A solid 1px;
|
|
border-right: none;
|
|
border-left: none;
|
|
text-align: center;
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
.product-add-to-basket {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
}
|
|
|
|
.add-to-basket-button {
|
|
margin-block-start: 0.83em;
|
|
margin-block-end: 0.83em;
|
|
margin-right: 1em;
|
|
cursor: pointer;
|
|
background-color: #1A1A1A;
|
|
border: none;
|
|
color: #FFFFFF;
|
|
padding: 0.5em;
|
|
font-size: 1.5em;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.add-to-basket-button:hover {
|
|
background-color: #FFFFFF;
|
|
color: #1A1A1A;
|
|
}
|
|
|
|
.add-to-favorites-button:hover {
|
|
transform: translateY(4px);
|
|
}
|
|
|
|
.product-details-collapsible {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
margin-block-end: 3em;
|
|
}
|
|
|
|
.product-details-header {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-end;
|
|
font-size: 1.5em;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
border-bottom: #1A1A1A solid 1px;
|
|
}
|
|
|
|
.product-details-header-arrow {
|
|
transform: rotate(-180deg);
|
|
margin-left: 0.5em;
|
|
transition: transform 0.2s ease-in-out;
|
|
}
|
|
|
|
/* rotate the arrow down when the details are open */
|
|
.product-details-header-arrow-down {
|
|
margin-left: 0.5em;
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
.product-details-content {
|
|
visibility: hidden;
|
|
width: 100%;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.details-open {
|
|
visibility: visible;
|
|
}
|
|
|
|
.product-details-content-item {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
margin-block-start: 0.83em;
|
|
margin-block-end: 0.83em;
|
|
}
|