PaperBag/css/index.css

112 lines
2.1 KiB
CSS

:root {
--bg-accent: #19A6A0;
--wsTop: constant(safe-area-inset-top);
--wsTop: env(safe-area-inset-top);
--wsBottom: constant(safe-area-inset-bottom);
--wsBottom: env(safe-area-inset-bottom);
}
html {
height: 100%;
}
body {
height: 100%;
padding-bottom: var(--wsTop);
/* padding-bottom: 50px; */
background-repeat: no-repeat;
background-attachment: fixed;
background-color: var(--bg-accent);
background-image: -o-linear-gradient(to bottom left, #eee 0%, var(--bg-accent) 100%);
background-image: -webkit-linear-gradient(to bottom left, #eee 0%, var(--bg-accent) 100%);
background-image: linear-gradient(to bottom left, #eee 0%, var(--bg-accent) 100%);
}
.navbar {
padding-top: var(--wsTop);
margin-bottom: 5px;
}
.card {
margin: 5px 10px;
}
#home .card {
min-height: 250px;
}
.iconWrapper {
float: right;
margin-top: -30px;
margin-right: 10px;
}
.iconWrapper img {
margin-left: 10px;
}
.iconWrapper img, .iconBtn {
cursor: pointer;
height: 20px;
width: 20px;
}
.card-columns .card {
display: inline-block;
}
.card li, .card .subtotal {
text-align: left;
}
.card li:nth-child(odd){
background-color: #3331;
}
span.price {
float: right;
font-family: var(--bs-font-monospace);
font-size: 0.9rem;
}
.subtotal {
font-weight: bold;
}
.addItemForm div.form-control {
transition: width 0.5s;
}
/* .addItemForm div.form-control:not([type="submit"],[type="image"]):focus-within { */
.addItemForm div.form-control:focus-within {
width: 40%;
}
.addItemForm div.form-control input {
border: none;
}
.addItemForm input[type="image"] {
padding-left: 5px;
padding-right: 5px;
height: 100%;
}
.remItem {
height: 20px;
width: 20px;
cursor: pointer;
transition: transform 0.5s;
}
.remItem.confirm {
transform: rotate(90deg);
filter: invert(28%) sepia(93%) saturate(1776%) hue-rotate(334deg) brightness(89%) contrast(94%);
/* filter color source: https://codepen.io/sosuke/full/Pjoqqp */
}
.drag-over {
border-bottom: dashed 3px red;
border-bottom-width: 1px;
}