saranga / css /styles.css
RHCPP's picture
Deploy batch 1 (1-50 of 812)
b12a0f0 verified
Raw History Blame Contribute Delete
8.56 kB
/* SARANGA database portal — minimalist theme. */
:root {
--bg: #fafafa;
--fg: #1a1a1a;
--muted: #6a6a6a;
--border: #d6d6d6;
--accent: #2e4f8c;
--accent-soft: #e8eef9;
--tier1: #2c8a4d;
--tier2: #b8860b;
--tier3: #6c757d;
--pair: #7a3e9d;
--green: #2c8a4d;
--yellow: #c89a1f;
--gray: #8a8a8a;
--code-bg: #f1f1f1;
}
* { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
background: var(--bg);
color: var(--fg);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
Arial, sans-serif;
font-size: 15px;
line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.site {
background: #fff;
border-bottom: 1px solid var(--border);
padding: 14px 28px;
display: flex;
align-items: baseline;
justify-content: space-between;
}
header.site h1 {
margin: 0;
font-size: 22px;
font-weight: 600;
}
header.site .crumbs {
color: var(--muted);
font-size: 14px;
}
main {
max-width: 1100px;
margin: 0 auto;
padding: 28px;
}
footer.site {
text-align: center;
color: var(--muted);
font-size: 13px;
padding: 24px 28px 36px;
border-top: 1px solid var(--border);
margin-top: 48px;
}
/* Landing page. */
.landing-hero {
text-align: center;
margin: 16px auto 28px;
max-width: 760px;
}
.landing-hero h2 {
font-size: 26px;
margin: 0 0 8px;
}
.landing-hero p {
color: var(--muted);
margin: 0;
}
.section-label {
text-transform: uppercase;
font-size: 12px;
letter-spacing: 0.08em;
color: var(--muted);
margin: 32px 0 12px;
text-align: center;
}
.tier-cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 18px;
margin: 0 auto 24px;
max-width: 880px;
}
.tier-card {
display: block;
background: #fff;
border: 1px solid var(--border);
border-top: 4px solid var(--accent);
border-radius: 6px;
padding: 20px 18px;
text-align: center;
transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.tier-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
text-decoration: none;
}
.tier-card.tier1 { border-top-color: var(--tier1); }
.tier-card.tier2 { border-top-color: var(--tier2); }
.tier-card.tier3 { border-top-color: var(--tier3); opacity: 0.78; }
.tier-card h3 {
margin: 0 0 6px;
font-size: 17px;
color: var(--fg);
}
.tier-card .count {
font-size: 26px;
font-weight: 600;
color: var(--accent);
margin: 8px 0 4px;
}
.tier-card.tier1 .count { color: var(--tier1); }
.tier-card.tier2 .count { color: var(--tier2); }
.tier-card.tier3 .count { color: var(--tier3); }
.tier-card .blurb {
font-size: 13px;
color: var(--muted);
}
.aside-row {
display: flex;
justify-content: center;
margin-top: 18px;
}
.pair-card {
display: block;
background: #fff;
border: 1px solid var(--border);
border-left: 4px solid var(--pair);
border-radius: 6px;
padding: 14px 18px;
text-align: left;
width: 320px;
font-size: 14px;
}
.pair-card:hover {
background: #fbf8fd;
text-decoration: none;
}
.pair-card h4 {
margin: 0 0 4px;
font-size: 15px;
color: var(--pair);
}
.pair-card .blurb {
color: var(--muted);
font-size: 13px;
}
/* List pages. */
.toolbar {
display: flex;
gap: 12px;
align-items: center;
margin-bottom: 14px;
flex-wrap: wrap;
}
.toolbar input[type=text],
.toolbar select {
padding: 6px 10px;
border: 1px solid var(--border);
border-radius: 4px;
font-size: 14px;
background: #fff;
color: var(--fg);
}
.toolbar input[type=text] { min-width: 280px; }
.toolbar .count {
color: var(--muted);
font-size: 13px;
}
table.listing {
width: 100%;
border-collapse: collapse;
background: #fff;
border: 1px solid var(--border);
border-radius: 4px;
}
table.listing th,
table.listing td {
text-align: left;
padding: 8px 10px;
border-bottom: 1px solid var(--border);
vertical-align: top;
font-size: 14px;
}
table.listing th {
background: #f3f3f3;
font-weight: 600;
color: var(--fg);
cursor: pointer;
user-select: none;
}
table.listing tbody tr:hover { background: #f7f9fc; }
table.listing td.types {
color: var(--muted);
font-size: 12px;
}
.relation-pill,
.match-pill {
display: inline-block;
padding: 2px 8px;
border-radius: 10px;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.04em;
background: var(--accent-soft);
color: var(--accent);
}
.match-pill.exact { background: #d8f1de; color: var(--green); }
.match-pill.analogous { background: #fbf0d4; color: var(--yellow); }
.match-pill.none { background: #ececec; color: var(--gray); }
/* Pair status (annotated / ready / partial / pending). */
.status-pill {
display: inline-block;
padding: 2px 8px;
border-radius: 10px;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.04em;
background: #ececec;
color: #555;
border: 1px solid transparent;
}
.status-pill.status-annotated {
background: #d8f1de; color: #1e6d3a; border-color: #b8e3c4;
}
.status-pill.status-ready {
background: #d6e4f5; color: #234e8c; border-color: #b6cce6;
}
.status-pill.status-partial {
background: #fbf0d4; color: #806220; border-color: #ecdca0;
}
.status-pill.status-pending {
background: #ececec; color: #6a6a6a; border-color: #d6d6d6;
}
.status-pill.status-legacy {
/* v1 alignment exists but not v2. Diagonal stripe to signal "old-scheme;
not directly viewable in the current Graph tab". */
background:
repeating-linear-gradient(45deg, #efe7c8, #efe7c8 4px, #f5edd0 4px, #f5edd0 8px);
color: #6a5210; border-color: #d8c780;
}
/* Paper viewer. */
.tab-bar {
display: flex;
gap: 4px;
border-bottom: 1px solid var(--border);
margin-bottom: 18px;
}
.tab-bar button {
background: transparent;
border: 0;
padding: 8px 14px;
cursor: pointer;
font-size: 14px;
color: var(--muted);
border-bottom: 2px solid transparent;
}
.tab-bar button.active {
color: var(--accent);
border-bottom-color: var(--accent);
font-weight: 600;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.meta-grid {
display: grid;
grid-template-columns: 160px 1fr;
row-gap: 6px;
column-gap: 14px;
font-size: 14px;
margin-bottom: 18px;
}
.meta-grid dt { color: var(--muted); }
.meta-grid dd { margin: 0; }
.histogram {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 18px;
}
.histogram .bar {
background: var(--accent-soft);
padding: 4px 10px;
border-radius: 12px;
font-size: 12px;
color: var(--accent);
}
.histogram .bar strong {
margin-right: 4px;
font-weight: 700;
}
details.node-card {
background: #fff;
border: 1px solid var(--border);
border-radius: 4px;
padding: 8px 12px;
margin-bottom: 8px;
}
details.node-card[open] { border-color: var(--accent); }
details.node-card summary {
cursor: pointer;
font-weight: 600;
color: var(--fg);
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
}
details.node-card summary .node-id {
font-family: ui-monospace, "SF Mono", Menlo, monospace;
font-size: 12px;
color: var(--muted);
font-weight: 400;
}
details.node-card .node-body {
margin-top: 8px;
font-size: 14px;
color: #2a2a2a;
}
details.node-card .node-body p { margin: 6px 0; }
details.node-card .node-body .label {
color: var(--muted);
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.04em;
margin-top: 8px;
}
.type-group h3 {
margin: 24px 0 8px;
font-size: 16px;
color: var(--accent);
border-bottom: 1px solid var(--border);
padding-bottom: 4px;
}
pre.raw-json {
background: var(--code-bg);
padding: 12px;
font-size: 12px;
overflow-x: auto;
border-radius: 4px;
border: 1px solid var(--border);
}
/* Pair viewer. */
.pair-header {
background: #fff;
border: 1px solid var(--border);
border-radius: 4px;
padding: 14px 16px;
margin-bottom: 18px;
}
.pair-header h2 {
margin: 0 0 4px;
font-size: 18px;
}
.pair-header .papers {
color: var(--muted);
font-size: 14px;
}
.pair-header .description {
margin-top: 10px;
font-size: 14px;
}
.matches-table td.nodes-cell {
font-family: ui-monospace, "SF Mono", Menlo, monospace;
font-size: 12px;
white-space: pre-wrap;
}
.matches-table td.expl-cell {
font-size: 13px;
max-width: 480px;
}
.notice {
background: #fff8e1;
border: 1px solid #f0d68c;
border-radius: 4px;
padding: 10px 14px;
font-size: 14px;
color: #6b5400;
margin-bottom: 14px;
}
.empty {
color: var(--muted);
font-style: italic;
padding: 12px 0;
}