|
|
| (5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) |
| Zeile 1: |
Zeile 1: |
| /* Container */ | | /* ==== LabelScan: gekapseltes Layout ==================================== */ |
| #ados-labelscan { max-width: 960px; margin: 0 auto; } | | #ados-labelscan { |
| | --gap: 12px; |
| | --border: #e6e6e6; |
| | --muted: #f7f7f8; |
| | --card: #ffffff; |
| | --text: #1f2937; |
| | --sub: #6b7280; |
| | --radius: 12px; |
| | max-width: 1200px; |
| | margin-inline: auto; |
| | color: var(--text); |
| | } |
| | #ados-labelscan *, #ados-labelscan *::before, #ados-labelscan *::after { box-sizing: border-box; } |
| | #ados-labelscan img { max-width: 100%; height: auto; display: block; } |
|
| |
|
| /* Uploader */ | | /* Grid */ |
| .ados-scan__uploader{display:flex;justify-content:center} | | #ados-labelscan .scan-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; } |
| .ados-scan__btn{
| | @media (min-width: 900px) { |
| display:flex;align-items:center;justify-content:center;gap:.35rem;
| | #ados-labelscan .scan-grid { grid-template-columns: 1.2fr .8fr; } |
| padding:16px 18px;border:2px dashed #cfcfcf;border-radius:16px;
| |
| background:#fafafa;cursor:pointer;width:100%;max-width:540px;text-align:center | |
| } | | } |
| .ados-scan__btn:hover{background:#f2f2f2} | | #ados-labelscan .col { display: flex; flex-direction: column; gap: var(--gap); } |
|
| |
|
| /* Fortschritt */ | | /* Card */ |
| .ados-scan__progress{margin:.5rem 0;color:#555} | | #ados-labelscan .card { |
| #ados-scan-progress{width:100%;height:10px} | | background: var(--card); |
| | border: 1px solid var(--border); |
| | border-radius: var(--radius); |
| | padding: 12px 14px; |
| | box-shadow: 0 1px 3px rgba(0,0,0,.05); |
| | } |
| | #ados-labelscan h2 { margin: 0 0 .25rem; font-size: 1.4rem; } |
| | #ados-labelscan .sub { color: var(--sub); margin: 0; } |
|
| |
|
| /* Vorschau */ | | /* Dropzone */ |
| .ados-scan__preview img{max-width:100%;height:auto;border-radius:10px;box-shadow:0 2px 10px rgba(0,0,0,.06);margin:.4rem 0} | | #ados-labelscan .ados-drop { |
| | | display: flex; flex-direction: column; align-items: center; gap: .4rem; |
| /* Ergebnisse */
| | padding: 16px; border: 2px dashed #d7d7d9; border-radius: var(--radius); |
| .ados-scan__results{display:grid;grid-template-columns:1fr;gap:8px}
| | background: var(--muted); |
| @media(min-width:700px){.ados-scan__results{grid-template-columns:1fr 1fr}}
| | } |
| .ados-hit{border:1px solid #eee;border-radius:10px;padding:10px;background:#fafafa} | | #ados-labelscan .ados-drop .icon { font-size: 2rem; } |
| .ados-hit .meta{color:#666;font-size:.95em;margin-top:.15rem} | | #ados-labelscan .ados-drop .help { color: var(--sub); font-size: .95em; } |
| | #ados-labelscan .ados-drop.dragover { border-color: #3b82f6; background: #eef5ff; } |
|
| |
|
| /* --- Layout */ | | /* Buttons */ |
| #ados-labelscan { max-width: 920px; margin: 0 auto; } | | #ados-labelscan .btn { |
| .ados-scan__header h2 { margin: .2rem 0 .4rem; font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
| | appearance: none; border: 1px solid var(--border); background: #fff; color: #111; |
| .ados-scan__sub { color: #666; margin: 0 0 .6rem; }
| | padding: .5rem .75rem; border-radius: 999px; cursor: pointer; font-weight: 600; |
| | |
| /* --- Dropzone */
| |
| .ados-scan__drop {
| |
| display: grid; place-items: center; gap: .35rem; | |
| border: 2px dashed #cfcfcf; border-radius: 14px; background: #fafafa;
| |
| padding: 18px; text-align: center; cursor: pointer;
| |
| } | | } |
| .ados-scan__drop:hover { background: #f3f3f3; }
| | #ados-labelscan .btn:hover { background: #f3f4f6; } |
| .ados-scan__drop:focus-within { outline: 2px solid #2d6ca2; outline-offset: 2px; }
| | #ados-labelscan .btn-primary { background: #2563eb; border-color: #2563eb; color: #fff; } |
| .ados-scan__drop-icon { font-size: 1.6rem; }
| | #ados-labelscan .btn-primary:hover { background: #1d4ed8; } |
| .ados-scan__drop-text { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; justify-content: center; }
| | #ados-labelscan .btn-ghost { background: transparent; } |
| | #ados-labelscan .ados-scan__pick { text-align: center; } |
|
| |
|
| /* --- Status + Progress */ | | /* Status / Progress */ |
| .ados-scan__statusrow { display: flex; align-items: center; gap: .6rem; margin: .6rem 0 .3rem; }
| | #ados-labelscan .statusbar { display: flex; align-items: center; gap: .6rem; color: var(--sub); margin-top: .4rem; } |
| .ados-scan__status { color: #444; }
| | #ados-labelscan progress { width: 140px; height: 8px; } |
| .ados-scan__progress { width: 220px; height: 10px; }
| |
|
| |
|
| /* --- Preview */ | | /* Preview */ |
| .ados-scan__preview img { max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.06); margin: .35rem 0; }
| | #ados-labelscan .preview { |
| | | min-height: 180px; display: flex; align-items: center; justify-content: center; |
| /* --- Buttons (Utility) */
| | background: var(--muted); border: 1px dashed #ddd; border-radius: var(--radius); |
| .btn {
| |
| display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
| |
| padding: .6rem .9rem; border-radius: 999px; border: 1px solid #ddd; | |
| background: #fff; color: #111; text-decoration: none; cursor: pointer;
| |
| } | | } |
| .btn:hover { background: #f5f5f5; } | | #ados-labelscan .preview .note { color: var(--sub); } |
| .btn-primary { background: #2d6ca2; color: #fff; border-color: #2d6ca2; } | |
| .btn-primary:hover { background: #1f527e; }
| |
| .btn-secondary { background: #ffffff; }
| |
| .btn-ghost { background: transparent; }
| |
|
| |
|
| /* --- Actions & Results */ | | /* Results */ |
| .ados-scan__actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; }
| | #ados-labelscan .results { display: flex; flex-wrap: wrap; gap: 10px; } |
| .ados-scan__resultswrap h3 { margin: .8rem 0 .4rem; }
| | #ados-labelscan .results .empty { color: var(--sub); } |
| .ados-scan__results { display: grid; grid-template-columns: 1fr; gap: 8px; } | | #ados-labelscan .ados-hit { width: 170px; text-align: center; } |
| @media (min-width: 700px) { .ados-scan__results { grid-template-columns: 1fr 1fr; } }
| | #ados-labelscan .ados-hit img { border-radius: 8px; border: 1px solid var(--border); background: #fff; } |
| .ados-hit { border: 1px solid #eee; border-radius: 12px; padding: 10px; background: #fafafa; } | | #ados-labelscan .ados-hit a { color: inherit; text-decoration: none; } |
| .ados-hit .meta { color: #666; font-size: .95em; margin-top: .15rem; } | | #ados-labelscan .ados-hit a:hover { text-decoration: underline; } |
|
| |
|
| /* --- Kleines Footer-Note */ | | /* Dark mode freundlich */ |
| .ados-scan__note { color: #777; font-size: .9em; margin-top: .6rem; }
| |
| | |
| /* --- Dark Mode freundlich */
| |
| @media (prefers-color-scheme: dark) { | | @media (prefers-color-scheme: dark) { |
| .ados-scan__drop { background: #1f1f1f; border-color: #343434; } | | #ados-labelscan { --border:#2f2f33; --muted:#18181b; --card:#111113; --text:#e5e7eb; --sub:#9ca3af; } |
| .ados-scan__drop:hover { background: #232323; }
| | #ados-labelscan .preview { border-color:#2f2f33; } |
| .ados-hit { background: #1d1d1d; border-color: #333; } | | #ados-labelscan .btn { background:#16161a; color:#e5e7eb; border-color:#2f2f33; } |
| .btn { border-color: #3a3a3a; background: #262626; color: #eee; } | | #ados-labelscan .btn:hover { background:#1b1b21; } |
| .btn:hover { background: #2d2d2d; } | |
| .btn-primary { background: #3a79b1; border-color: #3a79b1; }
| |
| } | | } |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
| .ados-scan { max-width: 820px; margin: 0 auto; padding: 12px; }
| |
| .ados-scan__drop { display:block; border:2px dashed #ddd; border-radius:12px; padding:16px; text-align:center; background:#fafafa; }
| |
| .ados-scan__drop:hover { background:#f3f4f6; }
| |
| .ados-scan__statusrow { display:flex; gap:10px; align-items:center; margin:8px 0; }
| |
| .ados-scan__preview img { max-width: 100%; height:auto; border-radius:8px; box-shadow:0 2px 10px rgba(0,0,0,.08); }
| |
| .ados-scan__actions { display:flex; gap:8px; margin:8px 0 12px; }
| |
| .btn { padding:.55rem .9rem; border-radius:10px; border:1px solid #ddd; background:#fff; cursor:pointer; }
| |
| .btn-primary { background:#2563eb; color:#fff; border-color:#1d4ed8; }
| |
| .btn-secondary { background:#e5e7eb; }
| |
| .btn-ghost { background:#fff; }
| |
| .ados-scan__results .ados-hit { padding:.4rem .2rem; border-bottom:1px dashed #eee; }
| |