332 lines
5.4 KiB
CSS
332 lines
5.4 KiB
CSS
body {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
background: #fcf6e3;
|
|
color: #5b4636;
|
|
font-size: 22px;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.container {
|
|
width: 90%;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Buttons */
|
|
.custom-button {
|
|
display: inline-block;
|
|
padding: 10px 20px;
|
|
background-color: #bb7e19;
|
|
color: white;
|
|
text-decoration: none;
|
|
border-radius: 5px;
|
|
font-size: 1em;
|
|
margin-right: 10px;
|
|
margin-bottom: 10px;
|
|
border: none;
|
|
cursor: pointer;
|
|
text-align: center;
|
|
}
|
|
|
|
.custom-button:hover {
|
|
background-color: #a06f15;
|
|
}
|
|
|
|
.delete-btn {
|
|
background-color: #d65c5c;
|
|
}
|
|
|
|
.delete-btn:hover {
|
|
background-color: #b83d3d;
|
|
}
|
|
|
|
/* Search Bar */
|
|
.search-container {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.search-container form {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.search-container input[type="text"] {
|
|
padding: 8px;
|
|
font-size: 18px;
|
|
width: 15ch;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.search-container button {
|
|
padding: 8px 16px;
|
|
background: #bb7e19;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.search-container button:hover {
|
|
background: #a06d15;
|
|
}
|
|
|
|
/* Table */
|
|
.table-aufgaben {
|
|
width: 900px;
|
|
margin: 0 auto;
|
|
border-collapse: collapse;
|
|
table-layout: fixed;
|
|
background: #fff;
|
|
}
|
|
|
|
.table-aufgaben th,
|
|
.table-aufgaben td {
|
|
padding: 8px;
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
white-space: normal;
|
|
text-align: center;
|
|
}
|
|
|
|
.table-aufgaben th:first-child,
|
|
.table-aufgaben td:first-child {
|
|
width: 10%;
|
|
text-align: center;
|
|
}
|
|
|
|
.table-aufgaben th a {
|
|
color: #8b5a2b;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.table-aufgaben th a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.table-aufgaben td.bezeichnung {
|
|
text-align: left;
|
|
}
|
|
|
|
.table-aufgaben td.bezeichnung a {
|
|
color: #c17e1b;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.table-aufgaben td.bezeichnung a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.table-aufgaben th.kategorie,
|
|
.table-aufgaben td.kategorie {
|
|
width: 30%;
|
|
text-align: left;
|
|
}
|
|
|
|
.table-aufgaben tr {
|
|
background: #fbeee6;
|
|
}
|
|
|
|
/* Form */
|
|
.form-container {
|
|
width: 80%;
|
|
margin: 0 auto;
|
|
background: #fff;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.form-container table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.form-container th,
|
|
.form-container td {
|
|
padding: 10px;
|
|
text-align: left;
|
|
border-bottom: 1px solid #ddd;
|
|
color: #8b5a2b;
|
|
}
|
|
|
|
.form-container input[type="text"],
|
|
.form-container input[type="number"],
|
|
.form-container textarea,
|
|
.form-container select {
|
|
width: 100%;
|
|
padding: 8px;
|
|
font-size: 18px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
color: #5b4636;
|
|
}
|
|
|
|
.form-container textarea {
|
|
height: 100px;
|
|
resize: vertical;
|
|
}
|
|
|
|
/* Images */
|
|
.bilder-container {
|
|
margin-top: 15px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.bild-vorschau {
|
|
position: relative;
|
|
width: 80px;
|
|
height: 80px;
|
|
}
|
|
|
|
.bild-vorschau img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.bild-loeschen {
|
|
position: absolute;
|
|
top: 5px;
|
|
right: 5px;
|
|
background: rgba(255, 255, 255, 0.8);
|
|
border: none;
|
|
border-radius: 50%;
|
|
width: 20px;
|
|
height: 20px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
color: #d65c5c;
|
|
line-height: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Lightbox */
|
|
#lightbox {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 9999;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
text-align: center;
|
|
padding-top: 50px;
|
|
}
|
|
|
|
#lightbox img {
|
|
max-width: 80%;
|
|
max-height: 80%;
|
|
margin: auto;
|
|
display: block;
|
|
}
|
|
|
|
#lightbox .close {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 30px;
|
|
color: #fff;
|
|
font-size: 35px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Recipe View */
|
|
.recipe-container {
|
|
width: 800px;
|
|
margin: 0 auto;
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.recipe-container img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.recipe-container img.oben {
|
|
width: 500px;
|
|
}
|
|
|
|
.recipe-container img.vergroesserbar {
|
|
width: 200px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.recipe-container img.vergroessert {
|
|
width: 400px !important;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.recipe-container pre.zutaten {
|
|
font-size: 1.2em;
|
|
font-family: Arial, sans-serif;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.recipe-container .unter {
|
|
font-size: 1.4em;
|
|
}
|
|
|
|
.recipe-container .title {
|
|
font-size: 1.6em;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.neu-container {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-top: 22px;
|
|
}
|
|
|
|
.neu {
|
|
background: #bb7e19;
|
|
color: #fff;
|
|
padding: 10px 22px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
text-decoration: none;
|
|
font-size: 1.5em;
|
|
box-shadow: 1px 1px 4px #efd7b1;
|
|
}
|
|
|
|
.file-upload-container {
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: inline-block;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.file-upload-container input[type="file"] {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
opacity: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.file-upload-btn {
|
|
background: #bb7e19;
|
|
color: white;
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
}
|