WMGZON/static/css/products.css

175 lines
3.1 KiB
CSS
Raw Permalink Normal View History

/* Product Information*/
.product-link:after {
content: '';
position: absolute;
bottom: 0;
left: 15%;
width: 0%;
border-bottom: 2px solid var(--fg);
transition: 0.4s;
}
.product-link:hover:after {
width: 70%;
color: var(--hover);
}
.product-link:hover {
color: var(--hover);
}
.product-link:active {
color: var(--header);
}
.product-container {
width: 95%;
background-color: var(--bg-grad-3);
border-radius: 1rem 1rem 0rem 0rem;
display: flex;
flex-wrap: wrap;
flex-direction: row;
gap: 2rem 1.5rem;
padding: 1rem;
transition: all 0.2s;
overflow-y: scroll;
}
.product {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
flex: 4 0 1rem;
max-width: 40%;
gap: .5em .5em;
padding: .5rem 0.2rem;
background: var(--bg-secondary);
border-radius: .5rem .5rem;
border: .1em solid rgba(255, 255, 255, 15%);
transition: all 0.2s;
}
.product-fs {
height: 80%;
width: 90%;
font-size: 150%;
display: flex;
flex-direction: row;
gap: 1em 1em;
justify-content: space-evenly;
padding: .5rem 1rem 2rem 2rem;
/* background: var(--bg-secondary); */
border-radius: .5rem .5rem;
transition: all 0.2s;
}
.product-content-container {
display: flex;
flex-direction: row;
gap: 1em 1em;
padding: 0rem 1rem;
}
.product-image-preview {
height: min-content;
max-width: 150px;
}
.product-image {
height: min-content;
max-width: 500px;
}
.product-image-full {
height: min-content;
max-width: 800px;
}
.product-title {
font-size: 120%;
font-weight: bold;
}
.product-details {
display: flex;
flex-direction: column;
padding: 2% 0;
/* justify-content: center; */
/* align-items: center; */
gap: 1rem 1rem;
}
.product-selection {
width: 60%;
}
.product-description {
font-size: 70%;
}
.hide-overflow {
inline-size: 200px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.product-acquisition-pane {
font-size: 80%;
width: 100rem;
max-width: 20%;
background-color: var(--bg-secondary);
border: .3em solid rgba(255, 255, 255, 15%);
border-radius: .5rem;
padding: 1rem 1rem;
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 1rem 1rem;
}
.product-price {
font-weight: bold;
}
.product-delivery {
font-size: 70%;
}
.product-postage {
font-size: 70%;
}
.product-stock {
display: flex;
flex-direction: row;
font-weight: bold;
justify-content: space-around;
flex-wrap: wrap;
align-items: center;
gap: .5em;
}
.product-quantity {
font-size: 50%;
}
.product-instock {
color: var(--green);
}
.product-nostock {
color: var(--red);
}
.product-add-to-cart {
padding: .25rem .5rem;
margin-top: .25rem;
margin-right: .5rem;
font-size: 1rem;
border: none;
background-color: gray;
2024-02-13 19:05:38 +00:00
color: whitesmoke;
}