portfolio/static/css/custom.css
Nik Afiq ddf013b6b3
All checks were successful
CI / build-check (push) Has been skipped
CI / build-and-push (push) Successful in 1m37s
initial hugo site with terminal theme
2026-03-17 23:30:49 +09:00

217 lines
4.2 KiB
CSS

/* ─── CV page ─────────────────────────────────────────────────────────────── */
.cv-download {
margin-bottom: 2rem;
}
.cv-download-btn {
display: inline-block;
padding: 0.4rem 1rem;
border: 1px solid var(--accent);
color: var(--accent);
text-decoration: none;
font-size: 0.9rem;
letter-spacing: 0.05em;
transition: background 0.15s, color 0.15s;
}
.cv-download-btn:hover {
background: var(--accent);
color: var(--background);
}
/* ─── Projects list ────────────────────────────────────────────────────────── */
.projects-page .page-intro {
margin-bottom: 2.5rem;
color: var(--color);
opacity: 0.8;
}
.project-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.5rem;
margin-top: 2rem;
}
.project-card {
border: 1px solid var(--border-color);
padding: 1.25rem 1.5rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.project-card__title {
margin: 0;
font-size: 1.1rem;
}
.project-card__title a {
color: var(--accent);
text-decoration: none;
}
.project-card__title a:hover {
text-decoration: underline;
}
.project-card__desc {
margin: 0;
font-size: 0.9rem;
opacity: 0.85;
flex: 1;
}
/* ─── Tags (shared by list and detail) ────────────────────────────────────── */
.project-tags {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
}
.project-tags li {
font-size: 0.75rem;
padding: 0.15rem 0.5rem;
border: 1px solid var(--border-color);
opacity: 0.75;
}
/* ─── Project links (shared) ───────────────────────────────────────────────── */
.project-card__links,
.project-links {
display: flex;
flex-wrap: wrap;
gap: 1rem;
font-size: 0.85rem;
}
.project-card__links a,
.project-links a {
color: var(--accent);
text-decoration: none;
}
.project-card__links a:hover,
.project-links a:hover {
text-decoration: underline;
}
/* ─── Project detail page ──────────────────────────────────────────────────── */
.project-header {
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--border-color);
}
.project-description {
font-size: 1rem;
opacity: 0.85;
margin: 0.5rem 0 1rem;
}
.post-footer {
margin-top: 3rem;
padding-top: 1rem;
border-top: 1px solid var(--border-color);
font-size: 0.9rem;
}
.post-footer a {
color: var(--accent);
text-decoration: none;
}
.post-footer a:hover {
text-decoration: underline;
}
/* ─── Homepage ─────────────────────────────────────────────────────────────── */
.index-hero {
margin-bottom: 2.5rem;
padding-bottom: 1.5rem;
border-bottom: 1px solid var(--border-color);
}
.index-intro {
margin: 0 0 1.5rem;
font-size: 1rem;
line-height: 1.6;
opacity: 0.85;
}
.index-nav {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
gap: 0.5rem 2rem;
}
.index-nav li {
font-size: 0.9rem;
}
.index-nav .prompt {
opacity: 0.5;
margin-right: 0.4rem;
}
.index-nav a {
color: var(--accent);
text-decoration: none;
}
.index-nav a:hover {
text-decoration: underline;
}
.index-posts h2 {
margin-bottom: 1rem;
}
.post-preview {
display: flex;
align-items: baseline;
gap: 1rem;
margin-bottom: 0.6rem;
}
.post-preview time {
font-size: 0.8rem;
opacity: 0.5;
flex-shrink: 0;
}
.post-preview a {
color: var(--color);
text-decoration: none;
}
.post-preview a:hover {
color: var(--accent);
}
.index-all-posts {
margin-top: 1.25rem;
font-size: 0.9rem;
}
.index-all-posts a {
color: var(--accent);
text-decoration: none;
}
.index-all-posts a:hover {
text-decoration: underline;
}