29 lines
2.3 KiB
CSS
29 lines
2.3 KiB
CSS
:root { --gap: 16px; --radius: 12px; --muted: #6b7280; }
|
|
* { box-sizing: border-box; }
|
|
body { font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji"; margin:0; background:#f6f7fb; }
|
|
.container { max-width: 1100px; margin: 0 auto; padding: 16px; }
|
|
header.container { display:flex; align-items:center; justify-content:space-between; }
|
|
header h1 { margin:0; font-size: 20px; }
|
|
nav a { margin-right: 12px; text-decoration:none; color:#111827; }
|
|
nav a:hover { text-decoration: underline; }
|
|
.card { background:white; padding:16px; border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,0.06); margin-bottom:16px; }
|
|
.grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gap); }
|
|
.product { display:flex; gap:12px; border: 1px solid #e5e7eb; border-radius: var(--radius); padding:10px; background:#fff; color:inherit; text-decoration:none; }
|
|
.product img { width:72px; height:72px; object-fit:cover; border-radius:8px; border:1px solid #eee; }
|
|
.placeholder { width:72px; height:72px; background:#eef2ff; border:1px dashed #c7d2fe; display:flex; align-items:center; justify-content:center; border-radius:8px; color:#6366f1; font-size:12px; }
|
|
.meta .name { font-weight:600; }
|
|
.muted { color: var(--muted); }
|
|
.stock.warn { color:#dc2626; font-weight:600; }
|
|
.actions { margin-top:8px; }
|
|
.btn { background:#111827; color:white; border:0; padding:8px 12px; border-radius:8px; cursor:pointer; text-decoration:none; display:inline-block; }
|
|
.btn:hover { filter: brightness(1.1); }
|
|
.btn.sm { padding:6px 10px; font-size: 14px; }
|
|
.btn.danger { background:#dc2626; }
|
|
.table { width:100%; border-collapse: collapse; background:white; }
|
|
.table th, .table td { border-bottom:1px solid #e5e7eb; padding:8px; text-align:left; }
|
|
.tinyimg img { width:42px; height:42px; object-fit:cover; border-radius:8px; border:1px solid #eee; }
|
|
.flex { display:flex; gap:12px; align-items:center; }
|
|
.flex-between { display:flex; align-items:center; justify-content:space-between; gap:12px; }
|
|
.form-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); }
|
|
.form-inline { display:flex; gap:12px; align-items:end; flex-wrap:wrap; }
|
|
.cover { width:96px; height:96px; object-fit:cover; border-radius:8px; border:1px solid #eee; } |