css/style.css aktualisiert

This commit is contained in:
M_Viper 2024-02-25 10:46:15 +00:00
parent 38ff5cff91
commit 22ea67b58f
1 changed files with 201 additions and 187 deletions

View File

@ -1,187 +1,201 @@
/* Header CSS */ /* Header CSS */
body { body {
background-color: aliceblue; background-color: aliceblue;
} }
.header { .header {
background-color: #333; background-color: #333;
color: #fff; color: #fff;
padding: 20px 0; padding: 20px 0;
} }
.header-container { .header-container {
width: 80%; width: 80%;
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
.header h1 { .header h1 {
margin: 0; margin: 0;
} }
.header nav ul { .header nav ul {
list-style-type: none; list-style-type: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
.header nav ul li { .header nav ul li {
display: inline; display: inline;
margin-right: 20px; margin-right: 20px;
} }
.header nav ul li:last-child { .header nav ul li:last-child {
margin-right: 0; margin-right: 0;
} }
.header nav ul li a { .header nav ul li a {
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
} }
/* Container CSS */ /* Container CSS */
.container { .container {
width: 80%; width: 80%;
margin: 0 auto; margin: 0 auto;
padding: 20px; padding: 20px;
background-color: #333; background-color: #333;
color: #fff; color: #fff;
border-radius: 5px; border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
margin-top: 40px; margin-top: 40px;
} }
.welcome-container { .welcome-container {
width: 50%; /* Breite des Containers */ width: 50%; /* Breite des Containers */
margin: 40px auto; /* Mittige Ausrichtung */ margin: 40px auto; /* Mittige Ausrichtung */
padding: 20px; /* Innenabstand */ padding: 20px; /* Innenabstand */
background-color: rgb(237, 235, 233); /* Hintergrundfarbe */ background-color: rgb(237, 235, 233); /* Hintergrundfarbe */
border: 2px solid #333; /* Rahmen */ border: 2px solid #333; /* Rahmen */
border-radius: 5px; /* Abrundung der Ecken */ border-radius: 5px; /* Abrundung der Ecken */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Schatten */ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Schatten */
text-align: center; /* Text zentrieren */ text-align: center; /* Text zentrieren */
} }
.welcome-container img { .welcome-container img {
max-width: 100%; /* Bild auf die volle Breite des Containers skalieren */ max-width: 100%; /* Bild auf die volle Breite des Containers skalieren */
height: auto; height: auto;
margin-bottom: 20px; margin-bottom: 20px;
} }
.add-material-box { .add-material-box {
width: 60%; /* Breite der Box */ width: 60%; /* Breite der Box */
margin: 50px auto; /* Zentrierung der Box */ margin: 50px auto; /* Zentrierung der Box */
padding: 10px; /* Innenabstand der Box */ padding: 10px; /* Innenabstand der Box */
background-color: #fff; /* Hintergrundfarbe der Box */ background-color: #fff; /* Hintergrundfarbe der Box */
border-radius: 15px; /* Abrundung der Ecken */ border-radius: 15px; /* Abrundung der Ecken */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Schatten */ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Schatten */
} }
.add-material-box h2 { .add-material-box h2 {
margin-top: 0; /* Abstand oben aufheben */ margin-top: 0; /* Abstand oben aufheben */
} }
.form-group { .form-group {
margin-bottom: 15px; /* Abstand zwischen Formularfeldern */ margin-bottom: 15px; /* Abstand zwischen Formularfeldern */
} }
.form-group label { .form-group label {
display: block; /* Label als Blockelement anzeigen */ display: block; /* Label als Blockelement anzeigen */
margin-bottom: 5px; /* Abstand unterhalb des Labels */ margin-bottom: 5px; /* Abstand unterhalb des Labels */
} }
.form-group input[type="text"], .form-group input[type="text"],
.form-group input[type="number"], .form-group input[type="number"],
.form-group input[type="date"], .form-group input[type="date"],
.form-group input[type="file"] { .form-group input[type="file"] {
width: calc(100% - 10px); /* Breite der Eingabefelder */ width: calc(100% - 10px); /* Breite der Eingabefelder */
padding: 8px; /* Innenabstand der Eingabefelder */ padding: 8px; /* Innenabstand der Eingabefelder */
border: 1px solid #ccc; /* Randstil */ border: 1px solid #ccc; /* Randstil */
border-radius: 3px; /* Abrundung der Ecken */ border-radius: 3px; /* Abrundung der Ecken */
} }
.form-group input[type="submit"] { .form-group input[type="submit"] {
background-color: #007bff; /* Blaue Hintergrundfarbe */ background-color: #007bff; /* Blaue Hintergrundfarbe */
color: white; /* Weiße Textfarbe */ color: white; /* Weiße Textfarbe */
border: none; /* Kein Rand */ border: none; /* Kein Rand */
padding: 10px 20px; /* Innenabstand des Buttons */ padding: 10px 20px; /* Innenabstand des Buttons */
border-radius: 3px; /* Abrundung der Ecken */ border-radius: 3px; /* Abrundung der Ecken */
cursor: pointer; /* Mauszeiger-Form */ cursor: pointer; /* Mauszeiger-Form */
transition: background-color 0.3s ease; /* Animierter Übergang für Hover */ transition: background-color 0.3s ease; /* Animierter Übergang für Hover */
} }
.form-group input[type="submit"]:hover { .form-group input[type="submit"]:hover {
background-color: #0056b3; /* Dunkleres Blau bei Mouseover */ background-color: #0056b3; /* Dunkleres Blau bei Mouseover */
} }
/* Fehlermeldung */ /* Fehlermeldung */
#error-msg { #error-msg {
color: red; /* Rote Schriftfarbe */ color: red; /* Rote Schriftfarbe */
} }
.submit-button { .submit-button {
background-color: #4CAF50; background-color: #4CAF50;
color: white; color: white;
border: none; border: none;
padding: 10px 20px; padding: 10px 20px;
border-radius: 5px; border-radius: 5px;
cursor: pointer; cursor: pointer;
} }
.submit-button:hover { .submit-button:hover {
background-color: #45a049; background-color: #45a049;
} }
.table-container { .table-container {
margin-top: 20px; margin-top: 20px;
} }
table { table {
width: 100%; width: 100%;
border-collapse: collapse; border-collapse: collapse;
} }
/* Schriftfarbe für Tabellenüberschriften */ /* Schriftfarbe für Tabellenüberschriften */
th { th {
color: black; /* Schwarz für Tabellenüberschriften */ color: black; /* Schwarz für Tabellenüberschriften */
background-color: #f2f2f2; background-color: #f2f2f2;
padding: 8px; padding: 8px;
text-align: left; text-align: left;
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
} }
/* Standardaussehen für Tabellenzellen */ /* Standardaussehen für Tabellenzellen */
td { td {
color: white; /* Weiß für Tabellenzellen */ color: white; /* Weiß für Tabellenzellen */
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
padding: 8px; padding: 8px;
text-align: left; text-align: left;
} }
/* Hintergrundfarbe und Schriftfarbe der Zeile bei Hover */ /* Hintergrundfarbe und Schriftfarbe der Zeile bei Hover */
tr:hover { tr:hover {
background-color: white; /* Weiße Hintergrundfarbe bei Hover */ background-color: white; /* Weiße Hintergrundfarbe bei Hover */
} }
/* Schriftfarbe der markierten Zeile */ /* Schriftfarbe der markierten Zeile */
tr:hover td { tr:hover td {
color: black; /* Schwarze Schriftfarbe bei Hover */ color: black; /* Schwarze Schriftfarbe bei Hover */
} }
a { a {
text-decoration: none; text-decoration: none;
color: black; color: black;
} }
a:hover { a:hover {
opacity: 0.6; opacity: 0.6;
} }
th, th,
td { td {
padding: 8px; padding: 8px;
text-align: left; text-align: left;
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
} }
.expiring {
background-color: red;
}
.edit-form {
display: none;
}
/* Mauszeigeränderung, wenn über das Bild gefahren wird */
.edit-form img:hover,
.edit-form a:hover {
cursor: pointer;
}