Files
gimmiCoffee/static/style.css
2025-05-09 18:36:01 +00:00

315 lines
5.4 KiB
CSS

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: Arial, sans-serif;
background: #f7f7f7;
color: #333;
}
/* Header oben, volle Breite */
header {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
background: #444;
color: #fff;
padding: 15px 30px;
position: sticky;
top: 0;
z-index: 10;
}
.site-title {
font-size: 1.5em;
font-weight: bold;
}
.site-title:hover {
text-decoration: none;
color: #fff;
cursor: pointer;
}
.user-actions {
display: flex;
align-items: center;
gap: 10px;
}
.logout {
background: #e74c3c;
color: white;
padding: 6px 12px;
border-radius: 6px;
text-decoration: none;
font-weight: bold;
transition: background 0.3s;
}
.logout:hover {
background: #c0392b;
cursor: pointer;
}
.main-container {
display: flex;
margin: 30px;
gap: 30px;
}
.left {
flex: 3;
display: flex;
flex-direction: column;
gap: 25px;
height: 86vh;
}
.right {
flex: 1;
display: flex;
flex-direction: column;
gap: 20px;
height: 86vh;
overflow-y: hidden;
}
/* Infozeile größer */
.info {
background: #ddd;
height: 120px;
display: flex;
align-items: center;
padding: 0 20px;
border-radius: 6px;
font-size: 1.2em;
}
/* Großer Button */
.action-button {
background: #3498db;
color: white;
padding: 10px;
text-align: center;
border-radius: 8px;
font-weight: bold;
font-size: 30px;
cursor: pointer;
transition: background 0.3s;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
}
.action-button:hover {
background: #2980b9;
cursor: pointer;
}
/* Grid für 6 Buttons */
.button-grid {
display: flex;
flex-wrap: wrap;
gap: 20px;
max-height: 73vh;
}
.grid-button {
flex: 1 1 calc(50% - 15px);
background: #818e8f;
/* color: white; */
height: 22vh;
display: flex;
align-items: center;
justify-content: center;
padding: 10px;
border-radius: 8px;
cursor: pointer;
transition: background 0.3s;
position: relative;
}
/* Rahmen + Titel für den rechten Block */
.stats-box {
border: 2px solid #000;
padding: 20px;
border-radius: 10px;
background: #c4c4c4;
overflow-y: auto;
}
.stats-title {
font-size: 1.3em;
margin-bottom: 10px;
font-weight: bold;
color: #111;
}
/* Rechte Seite mit klickbaren Feldern */
.clickable {
position: relative;
width: 100%;
border-radius: 10px;
background: #5f5f5f;
font-family: Arial, sans-serif;
margin-bottom: 16px;
display: flex;
align-items: center;
justify-content: center;
color: rgb(255, 255, 255);
flex: none;
height: 25vh;
transition: background 0.3s;
}
.clickable:hover {
background: #505050;
cursor: pointer;
}
.not:hover {
background: #5f5f5f;
cursor: default;
}
.clickable .top-left-text {
position: absolute;
top: 10px;
left: 12px;
font-size: 24px;
color: #ffffff;
}
.clickable .center-number {
font-size: 48px;
font-weight: bold;
color: #ffffff;
}
.grid-button .top-left-text {
position: absolute;
top: 10px;
left: 16px;
font-size: 24px;
color: #000000;
}
.grid-button .center-number {
margin-top: 85px;
width: 100%;
height: 80%;
font-size: 48px;
font-weight: bold;
color: #222;
text-align: center;
}
.defaultGray:hover {
background: #6a7274;
}
.blink-orange {
background-color: orange;
animation: pulse-orange 1.0s infinite;
}
@keyframes pulse-orange {
0% { background-color: orange; }
50% { background-color: #fdbb57; } /* etwas heller */
100% { background-color: orange; }
}
.initBackRed {
background-color: red;
}
.initBackRed:Hover{
background-color: rgb(252, 47, 47);
}
.initBackGreen {
background-color: green;
}
.initBackGreen:hover {
background-color: rgb(0, 151, 0);
}
.deniePress:hover{
cursor: not-allowed;
}
.initBackRed:hover.deniePress {
background-color: red !important;
cursor: not-allowed;
}
.validationButtonOuter{
display: flex;
align-items: center;
justify-content: center;
flex: 1;
}
.validButt{
background-color: green;
padding: 10px;
border-radius: 5px;
transition: background 0.3s;
}
.validButt:hover{
cursor: pointer;
background-color: rgb(0, 151, 0);
}
.validButt:hover.deniePress{
background-color: green !important;
}
.initBackGreen:hover.deniePress {
background-color: green !important;
cursor: not-allowed;
}
.deniePress:hover{
cursor: not-allowed;
}
/* STYLING FOR COFFEES MADE*/
table {
width: 100%;
border-collapse: collapse;
}
th, td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
th {
background-color: #f4f4f4;
}
.homeBut {
background-color: #3498db;
color: white;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 5px;
}
/* STYLING FOR BEANS AND WATER*/
.container {
font-family: Arial, sans-serif;
max-width: 600px;
margin: 50px auto;
padding: 20px;
border: 1px solid #ccc;
border-radius: 10px;
background-color: #f9f9f9;
text-align: center;
}
.status p {
font-size: 1.2em;
margin: 10px 0;
}
.actions {
margin-top: 20px;
}