pyc-kernel-lab / assets /css /inference.css
Allanatrix's picture
Publish PyC performance site
85928ca verified
Raw
History Blame Contribute Delete
5.03 kB
:root {
--bg: #f1f7ff;
--bg-deep: #d9ecff;
--text: #10233e;
--muted: #3f5676;
--accent: #0077d6;
--accent-strong: #0055a6;
--accent-soft: #deefff;
--border: #bfd6f4;
--surface: rgba(255, 255, 255, 0.76);
--surface-strong: #ffffff;
--surface-soft: #f6fbff;
--code-bg: #eef6ff;
}
:root[data-theme="dark"] {
--bg: #050b17;
--bg-deep: #07172e;
--text: #e8f0ff;
--muted: #a1b7d8;
--accent: #62b6ff;
--accent-strong: #3e95e0;
--accent-soft: #0f2d4a;
--border: #244464;
--surface: rgba(10, 22, 42, 0.78);
--surface-strong: #0f1f38;
--surface-soft: #0d1a2f;
--code-bg: #0b1a2f;
color-scheme: dark;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
color: var(--text);
font-family: "Source Sans 3", "Segoe UI", sans-serif;
line-height: 1.62;
background:
radial-gradient(980px 560px at -6% -12%, #d6ebff 0%, transparent 66%),
radial-gradient(860px 500px at 102% 5%, #d0f5ff 0%, transparent 62%),
linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}
.page {
width: min(1160px, 94vw);
margin: 0 auto;
padding: 24px 0 72px;
}
.site-header {
position: sticky;
top: 10px;
z-index: 30;
display: grid;
gap: 10px;
padding: 13px 14px;
border-radius: 16px;
border: 1px solid var(--border);
background: var(--surface);
backdrop-filter: blur(8px);
}
.top {
display: flex;
justify-content: space-between;
align-items: center;
gap: 14px;
}
.actions {
display: flex;
align-items: center;
gap: 10px;
}
.eyebrow {
margin: 0;
font-size: 11px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--muted);
}
.site-nav {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.site-nav a,
.back-link {
border: 1px solid var(--border);
border-radius: 999px;
background: var(--surface-strong);
color: var(--text);
text-decoration: none;
padding: 7px 14px;
font-size: 13px;
font-weight: 600;
}
.site-nav a.active {
color: var(--accent);
border-color: var(--accent);
background: var(--accent-soft);
}
.theme-toggle {
border: 1px solid var(--border);
background: var(--surface-strong);
color: var(--text);
border-radius: 10px;
padding: 7px 12px;
font: inherit;
font-size: 13px;
cursor: pointer;
}
h1,
h2,
h3 {
font-family: "Source Serif 4", Georgia, serif;
}
h1 {
margin: 24px 0 10px;
font-size: clamp(2rem, 4.1vw, 3.1rem);
line-height: 1.08;
max-width: 21ch;
}
h2 {
margin: 26px 0 10px;
font-size: clamp(1.6rem, 2.7vw, 2.2rem);
line-height: 1.18;
}
section {
margin-top: 24px;
padding: 22px 22px 18px;
border-radius: 18px;
border: 1px solid var(--border);
background: var(--surface);
}
.lead,
.muted,
.status,
.path,
figcaption {
color: var(--muted);
}
a {
color: var(--accent);
}
.paper-text {
max-width: 84ch;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 12px;
border-radius: 12px;
overflow: hidden;
border: 1px solid var(--border);
background: var(--surface-strong);
}
th,
td {
border-bottom: 1px solid var(--border);
text-align: left;
padding: 8px 10px;
font-size: 14px;
}
th {
color: var(--muted);
font-weight: 700;
background: var(--surface-soft);
}
.points {
padding-left: 18px;
}
.gallery {
margin-top: 12px;
display: grid;
grid-template-columns: 1fr;
gap: 16px;
}
figure {
margin: 0;
}
figure img {
width: 100%;
display: block;
border: 1px solid var(--border);
border-radius: 12px;
background: var(--surface-strong);
}
.reports,
.json-list {
margin-top: 12px;
display: grid;
gap: 12px;
}
details {
border: 1px solid var(--border);
border-radius: 12px;
background: var(--surface-strong);
padding: 8px 10px;
}
summary {
cursor: pointer;
font-weight: 700;
}
pre {
margin: 10px 0 0;
padding: 12px;
overflow-x: auto;
border: 1px solid var(--border);
border-radius: 10px;
background: var(--code-bg);
font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
font-size: 12px;
}
.report-content {
margin-top: 10px;
font-size: 14px;
}
.report-content h1,
.report-content h2,
.report-content h3 {
margin: 14px 0 8px;
font-size: 20px;
}
.report-content h2 {
font-size: 18px;
}
.report-content h3 {
font-size: 16px;
}
.report-content p {
margin: 8px 0;
}
.report-content ul,
.report-content ol {
margin: 8px 0;
padding-left: 20px;
}
.report-content li {
margin: 4px 0;
}
.report-content code {
background: var(--code-bg);
border: 1px solid var(--border);
border-radius: 4px;
padding: 1px 4px;
}
.report-content pre {
margin: 10px 0;
}
@media (max-width: 900px) {
.page {
width: min(100%, 96vw);
padding-top: 12px;
}
.site-header {
top: 0;
border-radius: 12px;
}
.top {
align-items: flex-start;
flex-direction: column;
}
.actions {
width: 100%;
justify-content: space-between;
}
section {
padding: 18px 14px 14px;
border-radius: 14px;
}
table {
display: block;
overflow-x: auto;
white-space: nowrap;
}
}