74 lines
1.1 KiB
CSS
74 lines
1.1 KiB
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;
|
|
}
|
|
|
|
.login__reason {
|
|
padding: 8px 8px;
|
|
margin: 16px 0;
|
|
border-radius: 2px;
|
|
border: 1px solid #bee5eb;
|
|
background: #d1ecf1;
|
|
color: #0c5460;
|
|
}
|