prolog-point-of-sale/style.css

65 lines
961 B
CSS

body {
font-family: sans-serif;
}
main {
display: flex;
}
.products {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
grid-gap: 10px;
flex: 1;
}
.cart {
width: 300px;
}
.product {
height: 110px;
display: flex;
flex-flow: column;
border: 1px solid rgba(0, 0, 0, .2);
border-radius: 5px;
color: rgba(0, 0, 0, .87);
text-decoration: none;
}
.product__name {
display: flex;
justify-content: center;
align-items: center;
flex: 1;
}
.product__price {
display: flex;
justify-content: center;
align-items: center;
background-color: #27ae60;
color: #fff;
height: 30px;
}
.cart__entry {
border-top: 1px solid rgba(0, 0, 0, .12);
display: flex;
}
.cart__entry:last-child {
border-bottom: 1px solid rgba(0, 0, 0, .12);
}
.cart__entry > div {
margin: 12px;
}
.cart__name {
flex: 1;
}
.cart__price {
width: 65px;
}