Files
dev-notes/assets/css/layout.css
Keith Solomon e6f6ea5846
Some checks failed
build-site / build (push) Failing after 6m4s
feature: First working version with dummy content
2025-11-29 12:27:20 -06:00

175 lines
3.5 KiB
CSS

:root {
--bg: #0f1115;
--bg-elevated: #161921;
--panel: #1c202a;
--border: #262a33;
--accent: #7dd3fc;
--accent-strong: #38bdf8;
--text: #e5e7eb;
--muted: #9ca3af;
--shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.35);
--radius: 0.75rem;
--gap: clamp(1rem, 2vw, 2rem);
}
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.08), transparent 25%),
radial-gradient(circle at 80% 0%, rgba(186, 230, 253, 0.06), transparent 30%),
var(--bg);
color: var(--text);
font-family: 'General Sans', system-ui, -apple-system, sans-serif;
}
.page {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.site-header {
position: sticky;
top: 0;
z-index: 20;
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: var(--gap);
padding: 1.125rem var(--gap);
background: rgba(15, 17, 21, 0.9);
backdrop-filter: blur(0.75rem);
border-bottom: 0.0625rem solid var(--border);
box-shadow: var(--shadow);
}
.brand a {
color: var(--text);
font-family: 'Raleway', 'General Sans', sans-serif;
font-weight: 700;
letter-spacing: 0.025rem;
text-decoration: none;
}
.nav {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
}
.nav a {
padding: 0.5rem 0.75rem;
border-radius: 0.625rem;
color: var(--muted);
text-decoration: none;
border: 0.0625rem solid transparent;
transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.nav a:hover,
.nav a.is-active {
color: var(--text);
border-color: var(--border);
background: rgba(56, 189, 248, 0.12);
}
.page-body {
display: grid;
grid-template-columns: minmax(16.25rem, 17.5rem) 1fr;
gap: var(--gap);
width: calc(100vw - 20%);
margin: var(--gap) auto var(--gap);
}
.sidebar {
padding: 1.25rem;
background: var(--panel);
border: 0.0625rem solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
height: fit-content;
position: sticky;
top: 5.375rem;
}
.content {
background: var(--bg-elevated);
border: 0.0625rem solid var(--border);
border-radius: var(--radius);
padding: clamp(1.25rem, 3vw, 2rem);
box-shadow: var(--shadow);
}
.site-footer {
margin-top: auto;
padding: 1rem var(--gap) 1.75rem;
display: flex;
align-items: center;
justify-content: space-between;
color: var(--muted);
border-top: 0.0625rem solid var(--border);
background: rgba(15, 17, 21, 0.9);
}
.site-footer a {
color: var(--accent);
text-decoration: none;
&:hover {
border: none;
color: var(--accent-strong);
text-decoration: none;
}
}
.footer-links {
display: flex;
gap: 0.75rem;
}
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(16.25rem, 1fr));
gap: var(--gap);
}
.card {
background: var(--panel);
border: 0.0625rem solid var(--border);
border-radius: var(--radius);
padding: 1.125rem;
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
gap: 0.625rem;
text-decoration: none;
color: var(--text);
transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
border-color: rgba(125, 211, 252, 0.7);
text-decoration: none;
}
.badge {
display: inline-flex;
align-items: center;
gap: 0.375rem;
padding: 0.25rem 0.625rem;
background: rgba(56, 189, 248, 0.12);
color: var(--accent);
border-radius: 62.4375rem;
border: 0.0625rem solid rgba(56, 189, 248, 0.24);
font-size: 0.8125rem;
}
.divider {
height: 0.0625rem;
width: 100%;
background: var(--border);
margin: 1.125rem 0;
}