MediaWiki:Gadget-LabelScan.css: Unterschied zwischen den Versionen
Erscheinungsbild
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
.ados-file- | /* LabelScan – UI */ | ||
#ados-labelscan { | |||
--bg: #f7f7f7; | |||
width: 1px; | --card: #fff; | ||
height: 1px; | --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; } | |||
} | } | ||
Version vom 7. November 2025, 21:27 Uhr
/* 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; }
}