2021-03-11 19:45:12 +01:00

296 lines
4.8 KiB
CSS

@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
html {
height: 100%;
}
html body {
height: 100%;
}
html body .hidden {
display: none;
}
html body .loader-container {
position: absolute;
width: 100%;
height: 100%;
z-index: 1000;
background-color: rgba(0,0,0,0.4);
}
html body .loader-container .loader {
width: 30px;
top: 40%;
height: 30px;
margin: auto;
border: 5px solid #f3f3f3;
position: relative;
animation: spin 1s linear infinite;
border-top: 5px solid #3498db;
border-radius: 50%;
}
html body .full-height {
height: 100%;
}
html body .scroll-bar {
position: absolute;
right: 10px;
width: 50px;
}
html body .scroll-bar #scroll-down {
position: fixed;
right: 0;
bottom: 0;
}
html body .popup {
position: fixed;
height: 100%;
width: 100%;
overflow: auto;
z-index: 1;
background-color: rgba(0,0,0,0.4);
}
html body .popup .popup-content {
background-color: #fefefe;
margin: 15% auto;
padding: 20px;
border: 1px solid #888;
width: 15%;
}
html body .popup .popup-content .input-item label {
min-width: 60px;
display: inline-block;
}
html body .popup .popup-content ..popup-form-buttons {
margin: 10px;
}
html body .popup .popup-content ..popup-form-buttons * {
margin: 20px;
}
html body .scroll-button {
display: none;
}
@media (max-width: 800px) {
html body .scroll-bar {
display: none;
}
html body .menu-button {
width: 100%;
font-size: 3em;
display: inherit;
}
html body .popup .popup-content {
background-color: #fefefe;
margin: 3% auto;
padding: 20px;
border: 1px solid #888;
width: 60%;
}
html body .popup .popup-content .product-items-edit {
margin-top: 1.5em;
}
html body .popup .popup-content .product-items-edit .product-item-edit label {
display: none;
}
html body .calendar .day {
min-height: 12em;
}
}
@media (min-width: 800px) {
html body .popup .popup-content {
background-color: #fefefe;
margin: 15% auto;
padding: 20px;
border: 1px solid #888;
width: 15%;
}
html body .calendar {
display: grid;
grid-template-columns: 25% 25% 25% 25%;
grid-template-rows: 50% 50%;
}
}
@media (min-width: 1200px) {
html body .calendar {
display: grid;
grid-template-columns: 14% 14% 14% 14% 14% 14% 14%;
grid-template-rows: 50% 50%;
}
}
html body .calendar .day-header {
border: 2px solid black;
text-align: center;
font-size: 2em;
}
html body .calendar .day.today {
border: 0.4em solid red;
}
html body .calendar .day {
border: 2px solid black;
overflow: auto;
}
html body .calendar .day .day-header {
border: none;
border-bottom: 2px solid black;
}
html body .calendar .day .orders {
padding-left: 25px;
}
html body .calendar .day .orders .actions {
display: none;
float: right;
}
html body .calendar .day .orders .order:hover .actions {
display: inline;
}
html body .calendar .day .orders .order.pending {
color: grey;
}
html body .calendar .day .orders .order.fulfilled {
color: red;
}
html body .calendar .day .orders .who {
font-size: 18px;
font-weight: bold;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
html body .calendar .day .product {
margin-bottom: 5px;
}
html body .calendar .day .product .product-name {
width: 5em;
display: inline-block;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
margin-right: 10px;
}
html body .calendar .day .product .product-amount {
width: 40px;
max-height: 5px;
}
html body .calendar .day .summary {
margin-top: 10px;
}
html body .stock-modal .add-product {
float: right;
}
html body .stock-modal .stock-product {
margin: 1em 0;
}
html body .stock-modal .stock-product .product-name {
display: inline-block;
width: 6em;
}
html body .stock-modal .stock-product .stock-product-amount {
display: inline-block;
}
html body .stock-modal .stock-product .stock-product-amount .input-item {
display: inline;
}
html body .stock-modal .stock-product .stock-product-amount .input-item input {
width: 40px;
}
html body .stock-modal .stock-product .stock-product-amount .input-item label {
display: none;
}
html body .customers-modal details {
padding: 0.5em;
}
html body .customers-modal details.customer-order {
margin-left: 1em;
padding: 0.5em;
}
html body .customers-modal details.customer-order .order-date-picker {
display: inline-block;
width: 75%;
cursor: pointer;
}
html body .customers-modal details.customer-order .product-item-edit {
margin-left: 1em;
}
input::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type=number] {
-moz-appearance: textfield;
}