MediaWiki:Gadget-LabelScan.css
Erscheinungsbild
Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.
- Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
- Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
- Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
/* LabelScan – UI */
#ados-labelscan {
--bg: #f7f7f7;
--card: #fff;
--text: #1f2937;
--muted: #6b7280;
--primary: #0ea5e9;
--primary-600: #0284c7;
--ring: rgba(14,165,233,.25);
--radius: 14px;
max-width: 920px;
margin: 0 auto;
padding: 12px;
color: var(--text);
}
#ados-labelscan .card {
background: var(--card);
border: 1px solid #e5e7eb;
border-radius: var(--radius);
box-shadow: 0 2px 10px rgba(0,0,0,.04);
padding: 14px;
}
#ados-labelscan h2 {
margin: 0 0 .25rem;
font-size: clamp(1.25rem, 2.8vw, 1.6rem);
}
#ados-labelscan .sub {
margin: 0;
color: var(--muted);
}
.scan-grid {
display: grid;
gap: 12px;
grid-template-columns: 1fr;
}
@media (min-width: 900px){
.scan-grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
}
/* Dropzone */
.ados-drop {
border: 2px dashed #d1d5db;
border-radius: var(--radius);
background: #fafafa;
padding: 16px;
text-align: center;
transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.ados-drop.is-dragover {
border-color: var(--primary);
background: #f0f9ff;
box-shadow: 0 0 0 4px var(--ring);
}
.ados-drop .icon {
font-size: 38px;
line-height: 1;
margin-bottom: 6px;
}
.ados-drop .help {
color: var(--muted);
margin-top: 4px;
font-size: .95rem;
}
.ados-drop input[type="file"] { display: none; }
/* Buttons */
.btn {
display: inline-flex; align-items: center; justify-content: center;
gap: .5rem;
padding: .6rem .9rem;
border-radius: 999px;
border: 1px solid #d1d5db;
background: #fff;
color: #111827;
font-weight: 600;
cursor: pointer;
text-decoration: none;
transition: background .15s ease, transform .02s ease;
}
.btn:hover { background: #f3f4f6; }
.btn:active { transform: translateY(1px); }
.btn-primary {
border-color: var(--primary);
background: var(--primary);
color: #fff;
}
.btn-primary:hover { background: var(--primary-600); }
.btn-ghost { background: transparent; }
.action-row { display:flex; flex-wrap: wrap; gap: 8px; }
/* Status + Progress */
.statusbar {
display:flex; align-items:center; gap: 10px;
margin-top: 8px;
}
#ados-scan-status { color: var(--muted); }
#ados-scan-progress {
width: 180px; height: 8px; appearance: none;
}
#ados-scan-progress::-webkit-progress-bar { background:#e5e7eb; border-radius: 999px; }
#ados-scan-progress::-webkit-progress-value { background: var(--primary); border-radius: 999px; }
#ados-scan-progress::-moz-progress-bar { background: var(--primary); border-radius: 999px; }
/* Preview */
.preview {
display: grid; place-items: center;
background: #f8fafc;
border: 1px solid #e5e7eb;
border-radius: var(--radius);
min-height: 140px;
overflow: hidden;
}
.preview img { max-width: 100%; height: auto; display: block; }
/* Ergebnisse */
.results .hit {
display: grid; grid-template-columns: 72px 1fr; gap: 10px;
align-items: center;
padding: 10px; border-bottom: 1px dashed #e5e7eb;
}
.results .hit:last-child { border-bottom: 0; }
.results .hit img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid #e5e7eb; }
.results .hit a { font-weight: 700; text-decoration: none; }
.results .hit a:hover { text-decoration: underline; }
.results .empty { color: var(--muted); padding: 8px; }
/* Hinweise */
.note {
font-size: .92rem; color: var(--muted);
}
/* Dark Mode */
@media (prefers-color-scheme: dark){
#ados-labelscan { --bg:#0f1115; --card:#171a21; --text:#e5e7eb; --muted:#a1a1aa; --primary:#38bdf8; --primary-600:#0ea5e9; --ring: rgba(56,189,248,.25); }
.ados-drop { background:#151922; border-color:#2a3343; }
.ados-drop.is-dragover { background:#0b1a25; }
.preview { background:#0f141c; border-color:#2a3343; }
.results .hit img { border-color:#2a3343; }
#ados-labelscan .card { border-color:#2a3343; box-shadow:none; }
.btn { background:#111827; border-color:#2a3343; color:#e5e7eb; }
.btn:hover { background:#0f141c; }
}