heko_webcrawler/app/static/styles.css
2024-11-14 10:30:13 +01:00

322 lines
5.3 KiB
CSS

* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Roboto', sans-serif;
}
body {
display: flex;
flex-direction: column;
min-height: 100vh;
background-color: #f5f5f7;
color: #333;
}
header {
background-color: #007aff;
color: white;
padding: 1em;
}
nav ul {
display: flex;
justify-content: space-around;
list-style: none;
}
nav ul li a {
color: white;
text-decoration: none;
font-weight: 500;
padding: 0.5em 1em;
transition: background-color 0.3s;
}
nav ul li a:hover {
background-color: #005bb5;
border-radius: 4px;
}
/* Vollbild-Layout */
.container {
width: 90%;
margin: 2em auto;
flex: 1;
}
/* Boxed-Design für Login und Signup */
.form-container {
max-width: 400px;
margin: auto;
padding: 2em;
background: white;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
text-align: center;
}
h2 {
font-weight: 500;
color: #1d1d1f;
margin-bottom: 1.5em;
}
label {
display: block;
font-size: 0.9em;
color: #6e6e73;
margin-bottom: 0.5em;
}
input {
width: 100%;
padding: 0.75em;
margin-bottom: 1em;
border: 1px solid #d1d1d6;
border-radius: 8px;
font-size: 1em;
color: #333;
}
input:focus {
border-color: #007aff;
outline: none;
box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}
button {
width: 100%;
padding: 0.75em;
font-size: 1em;
font-weight: 500;
color: white;
background-color: #007aff;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.2s ease-in-out;
}
button:hover {
background-color: #005bb5;
}
p {
text-align: center;
margin-top: 1em;
}
a {
color: #007aff;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.table-container {
width: 90%;
margin: 2em auto;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 1em;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
table, th, td {
border: 1px solid #d1d1d6;
}
th, td {
padding: 0.75em;
text-align: left;
}
th {
background-color: #f1f1f1;
color: #333;
}
td {
background-color: white;
}
tr:nth-child(even) td {
background-color: #f9f9f9;
}
.delete-btn {
background-color: #ff4d4d;
color: white;
padding: 0.5em;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 0.9em;
transition: background-color 0.2s ease;
}
.delete-btn:hover {
background-color: #e60000;
}
/* Flash-Badge Styling */
.flash-badge {
position: fixed;
top: 20px;
right: 20px;
background-color: #f44336; /* Material Design Rot */
color: white;
padding: 12px 24px;
border-radius: 8px;
font-family: 'Roboto', sans-serif;
font-weight: 500;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
z-index: 1000;
opacity: 0;
transform: translateY(-20px);
transition: opacity 0.4s ease, transform 0.4s ease;
}
/* Einblend-Animation */
.flash-badge.show {
opacity: 1;
transform: translateY(0);
}
/* Ausblend-Animation */
.flash-badge.hide {
opacity: 0;
transform: translateY(-20px);
}
.admin-panel {
max-width: 800px;
margin: 2em auto;
padding: 2em;
background: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.admin-panel h2 {
font-weight: 500;
color: #1d1d1f;
margin-bottom: 1em;
}
.user-table {
width: 100%;
border-collapse: collapse;
margin-bottom: 2em;
}
.user-table th, .user-table td {
padding: 0.75em;
text-align: left;
border: 1px solid #d1d1d6;
}
.user-table th {
background-color: #f1f1f1;
color: #333;
}
.user-table td {
background-color: white;
}
.user-table tr:nth-child(even) td {
background-color: #f9f9f9;
}
.reset-btn, .delete-btn, .create-btn {
padding: 0.5em 1em;
font-size: 0.9em;
font-weight: 500;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s ease-in-out;
}
.reset-btn {
background-color: #4caf50;
color: white;
}
.reset-btn:hover {
background-color: #388e3c;
}
.delete-btn {
background-color: #f44336;
color: white;
}
.delete-btn:hover {
background-color: #d32f2f;
}
.create-btn {
background-color: #007aff;
color: white;
padding: 0.75em;
margin-top: 1em;
display: block;
width: 100%;
font-size: 1em;
}
.create-btn:hover {
background-color: #005bb5;
}
.create-user-form {
margin-top: 1.5em;
}
.create-user-form input[type="text"],
.create-user-form input[type="password"] {
width: 100%;
padding: 0.75em;
margin-bottom: 1em;
border: 1px solid #d1d1d6;
border-radius: 8px;
}
.create-user-form label {
font-size: 0.9em;
color: #6e6e73;
display: block;
margin-bottom: 1em;
}
.logo-container {
text-align: center;
margin-bottom: 1em;
}
.logo-container img {
max-width: 100%;
height: auto;
width: 150px; /* Standardbreite für das Logo */
transition: width 0.3s ease;
}
@media (max-width: 768px) {
.logo-container img {
width: 120px; /* Kleinere Breite auf kleineren Bildschirmen */
}
}
@media (max-width: 480px) {
.logo-container img {
width: 100px; /* Noch kleinere Breite auf sehr kleinen Bildschirmen */
}
}