170 lines
3.0 KiB
CSS
170 lines
3.0 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;
|
|
}
|
|
.iconWrapper .page-link {
|
|
padding: 0.35rem 0.4rem;
|
|
}
|
|
.iconWrapper li img {
|
|
margin: 0;
|
|
}
|
|
.iconWrapper li.active img {
|
|
filter: invert(100%);
|
|
}
|
|
|
|
.card-columns .card {
|
|
display: inline-block;
|
|
}
|
|
|
|
.card li, .card .subtotal {
|
|
text-align: left;
|
|
}
|
|
|
|
.card li:nth-child(odd){
|
|
background-color: #3331;
|
|
}
|
|
|
|
#stores .card-header {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.priceWrapper {
|
|
float: right;
|
|
text-align: right;
|
|
}
|
|
span.price {
|
|
font-family: var(--bs-font-monospace);
|
|
font-size: 0.9rem;
|
|
padding-right: 3px;
|
|
}
|
|
span.price::after {
|
|
content: ' kr';
|
|
}
|
|
|
|
body.dollars span.price::before {
|
|
content: "$";
|
|
}
|
|
body.dollars span.price::after {
|
|
content: '';
|
|
}
|
|
|
|
.subtotal {
|
|
font-weight: bold;
|
|
}
|
|
|
|
|
|
.itemAmountWrapper {
|
|
clear: both;
|
|
}
|
|
.itemAmountText {
|
|
font-size: 0.9rem;
|
|
}
|
|
.itemAmount.itemAmountBtn {
|
|
-webkit-appearance: none;
|
|
-moz-appearance: textfield;
|
|
width: 29px;
|
|
padding: 0 5px;
|
|
text-align: center;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
#totalPriceWrapper {
|
|
/*position: fixed;*/
|
|
/*bottom: 0;*/
|
|
/*right: 0;*/
|
|
/*color: #fff;*/
|
|
|
|
background: #fff;
|
|
padding: 10px;
|
|
margin: 25px auto 0;
|
|
width: 90vw;
|
|
text-align: left;
|
|
max-width: 20rem;
|
|
border-radius: 30px;
|
|
font-weight: bold;
|
|
}
|
|
/*}*/ |