Das DocuWare-Passwort wird nicht mehr in storage.local abgelegt. Das Hintergrundskript fungiert als Auth-Broker und hält den OAuth-Token nur im Speicher der TB-Sitzung. Der Ablage-Dialog fragt das Passwort einmalig per Overlay ab, holt darüber den Token und verwirft das Passwort sofort. - store.js: password aus DEFAULTS entfernt; Settings.set() löscht password defensiv - auth.js: setToken/currentToken für Token-Transfer, Cookie-Modus als Sentinel - background.js: Broker (auth:status/auth:logon/auth:logout) - dialog: ensureAuth() + Passwort-Overlay statt direktem Auth.logon - options: Passwort nur transient für Test/Diagnose, nicht gespeichert; Export ohne Passwort - manifest: lib/store.js + lib/auth.js ins Hintergrundskript geladen Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
85 lines
3.8 KiB
CSS
85 lines
3.8 KiB
CSS
* { box-sizing: border-box; }
|
|
body {
|
|
font: 13px/1.45 "Segoe UI", system-ui, sans-serif;
|
|
margin: 0; color: #1a1a1a; background: #fff;
|
|
display: flex; flex-direction: column; height: 100vh;
|
|
}
|
|
|
|
/* Titel-Leiste wie im Connect-to-Outlook-Dialog */
|
|
.titlebar {
|
|
background: #2b3a44; color: #fff;
|
|
padding: 8px 14px; font-weight: 600; font-size: 13px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
header { padding: 12px 18px 6px; border-bottom: 1px solid #e5e7eb; flex-shrink: 0; }
|
|
header h1 { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
|
|
|
|
.toolbar { display: flex; align-items: center; gap: 14px; }
|
|
.toolbar .spacer { flex: 1; }
|
|
button.link {
|
|
background: none; border: 0; color: #1f2937; cursor: pointer;
|
|
font: inherit; padding: 4px 2px; display: inline-flex; align-items: center; gap: 5px;
|
|
}
|
|
button.link:hover { color: #2563eb; }
|
|
button.primary {
|
|
background: #f4b400; color: #1a1a1a; border: 0; border-radius: 3px;
|
|
padding: 7px 22px; font-weight: 600; cursor: pointer;
|
|
}
|
|
button.primary:hover { background: #e0a500; }
|
|
button:disabled { opacity: .5; cursor: default; }
|
|
|
|
main { flex: 1; overflow-y: auto; padding: 14px 18px; }
|
|
|
|
.target { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 10px; margin-bottom: 12px; }
|
|
.target > label { text-align: right; color: #374151; font-weight: 500; }
|
|
|
|
/* Indexfelder: rechtsbündiges Label links, Eingabe rechts */
|
|
.fields { display: flex; flex-direction: column; gap: 8px; }
|
|
.field { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 10px; }
|
|
.field > label { text-align: right; color: #374151; font-weight: 500; padding-top: 2px; }
|
|
.field.full { grid-template-columns: 150px 1fr; align-items: start; }
|
|
.field .req { color: #b91c1c; }
|
|
|
|
select, input[type="text"], input[type="number"], input[type="date"], textarea {
|
|
width: 100%; padding: 6px 9px; border: 1px solid #b9c0c8; border-radius: 3px; font: inherit; background: #fff;
|
|
}
|
|
select:focus, input:focus, textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 2px #2563eb33; }
|
|
textarea { resize: vertical; min-height: 56px; }
|
|
|
|
/* Vorbefüllte (aus der Mail übernommene) Felder dezent kennzeichnen */
|
|
.field.prefilled input, .field.prefilled textarea { background: #f3f4f6; color: #4b5563; }
|
|
|
|
.options { margin: 0; }
|
|
.radio, .check { display: flex; align-items: center; gap: 8px; margin: 5px 0; font-weight: 400; }
|
|
.radio input, .check input { accent-color: #2563eb; }
|
|
|
|
.att-list { list-style: none; margin: 6px 0 0 26px; padding: 0; max-height: 110px; overflow-y: auto; }
|
|
.att-list li { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 2px 0; color: #374151; }
|
|
|
|
/* Footer bleibt fix sichtbar, nur der Felderbereich (main) scrollt. */
|
|
footer { border-top: 1px solid #e5e7eb; padding: 10px 18px; background: #fafafa; flex-shrink: 0; }
|
|
.muted { color: #6b7280; font-size: 12px; }
|
|
.err { color: #b91c1c; } .ok { color: #15803d; }
|
|
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #b91c1c; }
|
|
|
|
/* Passwort-Abfrage (Sitzungs-Login, nicht gespeichert) */
|
|
.overlay {
|
|
position: fixed; inset: 0; background: rgba(0, 0, 0, .35);
|
|
display: flex; align-items: center; justify-content: center; z-index: 50;
|
|
}
|
|
.overlay[hidden] { display: none; }
|
|
.overlay-box {
|
|
background: #fff; border-radius: 6px; padding: 18px 20px; width: 340px;
|
|
box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
|
|
}
|
|
.overlay-box h2 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
|
|
.overlay-box input[type="password"] {
|
|
width: 100%; padding: 7px 9px; border: 1px solid #b9c0c8; border-radius: 3px;
|
|
font: inherit; margin-top: 8px;
|
|
}
|
|
.overlay-box input[type="password"]:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 2px #2563eb33; }
|
|
.overlay-box .err { min-height: 1em; margin-top: 6px; }
|
|
.overlay-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 10px; }
|
|
.overlay-box .pw-note { margin-top: 10px; }
|