391 lines
No EOL
8.6 KiB
CSS
391 lines
No EOL
8.6 KiB
CSS
/* Public Domain */
|
|
|
|
:root {
|
|
/* Farben */
|
|
--primary-color: #ff9999;
|
|
--primary-color-hover: #ff7777;
|
|
--success-color: #d2f8d2;
|
|
--success-color-hover: #b8e9b8;
|
|
--background-color: #fafafa;
|
|
--header-background: #FFFFE3;
|
|
--modal-background: #fff;
|
|
--modal-background-export: #f9f9f9;
|
|
--item-background: #f1f1f1;
|
|
--item-hover: #e6e6e6;
|
|
--button-background: #f0f0f0;
|
|
--button-hover: #e0e0e0;
|
|
--button-color: #fff;
|
|
--border-color: #ddd;
|
|
--text-color: #333;
|
|
--text-color-light: #666;
|
|
--text-color-lighter: #ccc;
|
|
--shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
--modal-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
|
|
/* Schriftfamilie */
|
|
--font-family: Arial, sans-serif;
|
|
|
|
/* Layout Fix */
|
|
--header-height: 130px;
|
|
--padding-top: calc(var(--header-height) + 20px);
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-family);
|
|
text-align: center;
|
|
margin: 0;
|
|
padding: 20px;
|
|
padding-top: var(--padding-top);
|
|
background-color: var(--background-color);
|
|
}
|
|
|
|
.header {
|
|
background-color: var(--header-background);
|
|
height: var(--header-height);
|
|
padding-bottom: 10px;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
z-index: 1000;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.titel {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.titel img {
|
|
height: 30px;
|
|
width: auto;
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.stop-button {
|
|
background-color: var(--primary-color);
|
|
color: var(--button-color);
|
|
font-weight: bold;
|
|
border: none;
|
|
border-radius: 5px;
|
|
height: 30px;
|
|
padding: 4px 10px;
|
|
font-size: 18px;
|
|
margin-left: auto;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
position: relative;
|
|
top: -2px;
|
|
font-family: var(--font-family);
|
|
}
|
|
|
|
.stop-button:hover {
|
|
background-color: var(--primary-color-hover);
|
|
}
|
|
|
|
.stop-button:focus {
|
|
outline: none;
|
|
box-shadow: 0 0 5px rgba(255, 77, 77, 0.75);
|
|
}
|
|
|
|
#aktueller-sender {
|
|
background-color: var(--success-color);
|
|
border-radius: 5px;
|
|
padding: 10px 20px;
|
|
display: inline-block; /* Balken wächst mit dem Text */
|
|
max-width: 90%; /* Verhindert, dass er über den Bildschirmrand geht */
|
|
white-space: nowrap; /* Verhindert Zeilenumbruch */
|
|
overflow: hidden; /* Schneidet Text ab, falls er zu lang ist */
|
|
text-overflow: ellipsis; /* Fügt ... am Ende ein, falls zu lang */
|
|
font-weight: bold;
|
|
font-size: 0.95em; /* Schrift minimal verkleinern, damit mehr Text passt */
|
|
}
|
|
|
|
.preset-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
grid-gap: 20px;
|
|
margin: 30px auto;
|
|
max-width: 1200px;
|
|
padding: 0 10px;
|
|
}
|
|
|
|
.preset-item {
|
|
background-color: var(--item-background);
|
|
padding: 0 15px;
|
|
border-radius: 5px;
|
|
box-shadow: var(--shadow);
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
min-height: 50px;
|
|
}
|
|
|
|
.preset-item h3 {
|
|
margin: 0;
|
|
flex: 1;
|
|
text-align: left;
|
|
word-break: break-word;
|
|
font-family: var(--font-family);
|
|
}
|
|
|
|
.preset-item:hover {
|
|
background-color: var(--item-hover);
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.button-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
margin: 0 auto;
|
|
padding-top: 15px;
|
|
}
|
|
|
|
.button-container button {
|
|
padding: 10px 20px;
|
|
min-width: 120px;
|
|
border: none;
|
|
border-radius: 5px;
|
|
background-color: var(--button-background);
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
font-family: var(--font-family);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.button-container button:hover {
|
|
background-color: var(--button-hover);
|
|
}
|
|
|
|
/* Spezifische Klassen für farbige Buttons */
|
|
.btn-ok {
|
|
background-color: var(--success-color) !important;
|
|
color: var(--text-color) !important;
|
|
border: 1px solid var(--border-color) !important;
|
|
}
|
|
|
|
.btn-ok:hover {
|
|
background-color: var(--success-color-hover) !important;
|
|
}
|
|
|
|
.btn-cancel {
|
|
background-color: var(--button-background) !important;
|
|
color: var(--text-color) !important;
|
|
border: 1px solid var(--border-color) !important;
|
|
}
|
|
|
|
.btn-cancel:hover {
|
|
background-color: var(--button-hover) !important;
|
|
}
|
|
|
|
.footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 20px 0;
|
|
font-size: 12px;
|
|
color: var(--text-color-light);
|
|
}
|
|
|
|
.footer a {
|
|
color: var(--text-color-light);
|
|
text-decoration: none;
|
|
margin: 0 5px;
|
|
font-family: var(--font-family);
|
|
}
|
|
|
|
.footer a:hover {
|
|
color: var(--text-color);
|
|
}
|
|
|
|
/* ===== Modal Styles ===== */
|
|
.modal {
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background-color: var(--modal-background);
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
box-shadow: var(--modal-shadow);
|
|
z-index: 1000;
|
|
max-width: 800px;
|
|
width: 90%;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
display: none;
|
|
}
|
|
|
|
.modal-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
font-family: var(--font-family);
|
|
}
|
|
|
|
.modal-content h2 {
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.modal-content table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.modal-content th,
|
|
.modal-content td {
|
|
border: 1px solid var(--border-color);
|
|
padding: 8px;
|
|
font-family: var(--font-family);
|
|
}
|
|
|
|
.modal-content th {
|
|
background-color: var(--button-background);
|
|
}
|
|
|
|
.modal-content .drag-handle {
|
|
cursor: grab;
|
|
text-align: center;
|
|
}
|
|
|
|
.modal-content input[type="text"] {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
font-family: var(--font-family);
|
|
}
|
|
|
|
.modal-content th:nth-child(1),
|
|
.modal-content td:nth-child(1) { min-width: 10px; max-width: 10px; }
|
|
.modal-content th:nth-child(4),
|
|
.modal-content td:nth-child(4) { min-width: 10px; max-width: 10px; text-align: center; }
|
|
|
|
.delete-btn {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
color: var(--text-color-light);
|
|
padding: 0;
|
|
line-height: 1;
|
|
font-family: var(--font-family);
|
|
}
|
|
|
|
.delete-btn:hover { color: var(--primary-color); }
|
|
|
|
.find-sender-link {
|
|
display: inline-block;
|
|
padding: 10px 15px;
|
|
border-radius: 5px;
|
|
color: var(--text-color);
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
border: 1px solid var(--border-color);
|
|
font-size: 14px;
|
|
font-family: var(--font-family);
|
|
}
|
|
|
|
.find-sender-link:hover { background-color: var(--button-background); }
|
|
|
|
/* ===== Import/Export Section ===== */
|
|
.share-details {
|
|
margin-top: 20px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 5px;
|
|
padding: 15px;
|
|
background-color: var(--modal-background-export);
|
|
}
|
|
|
|
.share-details h3 {
|
|
font-weight: bold;
|
|
color: var(--text-color);
|
|
margin-top: 0;
|
|
margin-bottom: 15px;
|
|
font-family: var(--font-family);
|
|
}
|
|
|
|
.share-content { display: flex; flex-direction: column; gap: 15px; }
|
|
.share-section { margin-bottom: 10px; }
|
|
.share-section h4 { margin: 0 0 8px 0; font-size: 14px; color: var(--text-color); font-family: var(--font-family); }
|
|
|
|
.input-group {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
color: var(--text-color-lighter);
|
|
}
|
|
|
|
.input-group input {
|
|
flex: 1;
|
|
padding: 8px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
font-family: monospace;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.input-group button {
|
|
padding: 8px 12px;
|
|
background-color: var(--button-background);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
transition: background-color 0.2s ease;
|
|
font-family: var(--font-family);
|
|
}
|
|
|
|
.input-group button:hover { background-color: var(--button-hover); }
|
|
|
|
#export-string-field, #import-string-field {
|
|
font-family: monospace;
|
|
font-size: 12px;
|
|
min-height: 36px;
|
|
}
|
|
|
|
/* Benutzerdefiniertes Modal für Meldungen */
|
|
.custom-modal {
|
|
position: fixed;
|
|
top: 0; left: 0;
|
|
width: 100%; height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 3000;
|
|
}
|
|
|
|
.custom-modal-content {
|
|
background-color: var(--modal-background);
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
box-shadow: var(--modal-shadow);
|
|
text-align: center;
|
|
max-width: 400px;
|
|
width: 90%;
|
|
font-family: var(--font-family);
|
|
}
|
|
|
|
.custom-modal-buttons {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.custom-modal-buttons button {
|
|
padding: 8px 15px;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
font-family: var(--font-family);
|
|
} |