Add responsive dashboard styles
This commit is contained in:
1 parent
875768e110
commit
1de6954804
1 file changed
+72
@@ -0,0 +1,72 @@
|
||||
:root {
|
||||
color-scheme: light;
|
||||
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
color: #202b25;
|
||||
background: #f4f6f2;
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
--muted: #65716a;
|
||||
--line: #e1e7e0;
|
||||
--green: #236b4d;
|
||||
--green-soft: #e8f2eb;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
body { margin: 0; min-width: 320px; }
|
||||
|
||||
.topbar {
|
||||
height: 68px;
|
||||
padding: 0 max(24px, calc((100% - 1120px) / 2));
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background: #fff;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-size: 16px; font-weight: 700; text-decoration: none; }
|
||||
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; background: var(--green); font-size: 17px; }
|
||||
.service-label, .muted-label { color: var(--muted); font-size: 13px; }
|
||||
.page-shell { width: min(100% - 40px, 1120px); margin: 0 auto; padding: 44px 0 56px; }
|
||||
.page-heading, .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
|
||||
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
|
||||
h1, h2, h3, p { margin-top: 0; }
|
||||
h1 { margin-bottom: 8px; font-size: clamp(30px, 4vw, 40px); letter-spacing: -.04em; }
|
||||
h2 { margin-bottom: 0; font-size: 20px; letter-spacing: -.02em; }
|
||||
.intro { margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
|
||||
.primary-button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; color: #fff; background: #8ca095; font: inherit; font-size: 14px; font-weight: 650; cursor: not-allowed; }
|
||||
.setup-card { margin-top: 32px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid #dce8df; border-radius: 12px; background: var(--green-soft); }
|
||||
.setup-card h2 { font-size: 28px; }
|
||||
.setup-description { max-width: 620px; margin: 0; color: #43564a; font-size: 14px; line-height: 1.65; }
|
||||
.section-block { margin-top: 40px; }
|
||||
.section-heading { margin-bottom: 16px; align-items: center; }
|
||||
.key-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
|
||||
.key-card, .info-card, .alerts-card, .history-card { border: 1px solid var(--line); border-radius: 11px; background: #fff; }
|
||||
.key-card { min-height: 146px; padding: 18px; }
|
||||
.key-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
||||
.key-number { color: #839087; font-size: 12px; font-weight: 700; }
|
||||
.status { padding: 5px 8px; border-radius: 20px; font-size: 11px; font-weight: 650; }
|
||||
.status-neutral { color: #5e6962; background: #f0f2ef; }
|
||||
.key-card h3 { margin: 20px 0 5px; font-size: 16px; }
|
||||
.key-card p, .info-card p:not(.eyebrow), .history-card > p { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
|
||||
.overview-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
|
||||
.info-card { min-height: 132px; padding: 20px; }
|
||||
.info-card h2 { margin-bottom: 8px; font-size: 17px; }
|
||||
.alerts-card { padding: 20px; }
|
||||
.empty-state { margin: 0; padding: 14px 16px; border-radius: 8px; color: #55645a; background: #f5f7f4; font-size: 13px; line-height: 1.6; }
|
||||
.history-card { margin-top: 20px; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
|
||||
.history-card h2 { font-size: 17px; }
|
||||
.workflow-note { margin: 20px 0 0; color: #768078; font-size: 12px; }
|
||||
.footer { min-height: 58px; padding: 16px max(24px, calc((100% - 1120px) / 2)); display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: var(--muted); background: #fff; font-size: 12px; }
|
||||
|
||||
@media (max-width: 700px) {
|
||||
.page-shell { width: min(100% - 32px, 1120px); padding-top: 32px; }
|
||||
.page-heading { align-items: flex-start; flex-direction: column; }
|
||||
.setup-card { align-items: flex-start; flex-direction: column; gap: 14px; padding: 20px; }
|
||||
.key-grid { grid-template-columns: 1fr; }
|
||||
.key-card { min-height: 130px; }
|
||||
.overview-grid { grid-template-columns: 1fr; }
|
||||
.history-card { align-items: flex-start; flex-direction: column; }
|
||||
.footer { padding-inline: 16px; }
|
||||
}
|
||||
Reference in new issue
Block a user