Files
espid2sensor/public/styles.css

199 lines
2.8 KiB
CSS

/* Tab Navigation */
.tabs {
display: flex;
gap: 0.5rem;
margin-bottom: 1.5rem;
}
.tab-btn {
background: #eee;
border: none;
padding: 0.7rem 2rem;
font-size: 1.1rem;
border-radius: 6px 6px 0 0;
cursor: pointer;
color: #333;
font-weight: 500;
transition: background 0.2s, color 0.2s;
}
.tab-btn.active {
background: #007bff;
color: #fff;
font-weight: bold;
box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
/* Modal Fehlerfenster */
.custom-modal-popup {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0,0,0,0.4);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
.custom-modal-box {
background: #fff;
padding: 3rem;
border-radius: 12px;
box-shadow: 0 4px 16px rgba(0,0,0,0.25);
text-align: center;
min-width: 350px;
max-width: 90vw;
}
.custom-modal-msg {
margin-bottom: 2rem;
font-size: 1.5rem;
color: red;
}
.custom-modal-btn {
padding: 0.8rem 2.5rem;
font-size: 1.1rem;
background: #007bff;
color: #fff;
border: none;
border-radius: 6px;
cursor: pointer;
}
body {
font-family: system-ui, sans-serif;
padding: 20px;
max-width: 800px;
margin: auto;
}
input, button {
font-size: 1rem;
padding: 8px;
margin: 2px;
}
.card {
border: 1px solid #ddd;
padding: 12px;
border-radius: 8px;
margin-bottom: 12px;
}
#result {
margin-top: 10px;
}
.controls {
margin-bottom: 8px;
}
.controls input {
width: 50px;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
text-align: left;
padding: 8px;
border-bottom: 1px solid #eee;
}
#tdDate {
width: 8em;
}
#tdBeschreibung {
width: 10em;
}
#tdAktionen {
width: 20em;
}
.controls input#page,
.controls input#limit {
width: 50px;
margin-left: 10px;
}
.error {
color: red;
font-weight: bold;
margin: 10px 0;
}
form {
max-width: 400px;
margin: 0 auto;
padding: 1rem;
border-radius: 8px;
background: #f9f9f9;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
display: flex;
flex-direction: column;
gap: 0.5rem;
}
label {
font-weight: bold;
}
input {
padding: 0.4rem;
border: 1px solid #ccc;
border-radius: 4px;
}
button {
padding: 0.6rem;
border: none;
border-radius: 4px;
background: #007bff;
color: white;
font-size: 1rem;
cursor: pointer;
}
button:hover {
background: #0056b3;
}
#saveBtn {
margin-top: 20px;
}
p.error {
color: red;
font-weight: bold;
text-align: center;
}
.card form {
display: flex;
flex-direction: column;
align-items: flex-start; /* Links bündig */
gap: 0.5rem;
}
.card form label {
font-weight: bold;
}
.card form input,
.card form textarea {
width: 100%;
max-width: 400px; /* gleiche Breite */
padding: 0.4rem;
border: 1px solid #ccc;
border-radius: 4px;
}
.card form textarea {
min-height: 60px;
resize: vertical;
}