110 lines
2.2 KiB
CSS
110 lines
2.2 KiB
CSS
/* Simple blog content styles to improve readability for markdown-rendered posts */
|
|
.post-content {
|
|
color: var(--color-text-primary);
|
|
line-height: 1.8;
|
|
font-size: 1rem;
|
|
/* ensure nice spacing for paragraphs and headings */
|
|
word-break: break-word;
|
|
}
|
|
|
|
.post-content img {
|
|
display: block;
|
|
max-width: 100%;
|
|
border-radius: 0.5rem;
|
|
margin: 1rem 0;
|
|
box-shadow: 0 8px 24px rgba(0,0,0,0.45);
|
|
}
|
|
|
|
.post-content h2 {
|
|
font-size: 1.6rem;
|
|
margin-top: 1.6rem;
|
|
margin-bottom: 0.5rem;
|
|
color: var(--color-accent-primary);
|
|
line-height: 1.15;
|
|
}
|
|
|
|
.post-content h3 {
|
|
margin-top: 1.1rem;
|
|
margin-bottom: 0.45rem;
|
|
}
|
|
|
|
.post-content h1 {
|
|
font-size: 2rem;
|
|
color: var(--color-accent-primary);
|
|
margin-bottom: 0.6rem;
|
|
}
|
|
|
|
.post-content p {
|
|
margin: 0.6rem 0 0.9rem 0;
|
|
color: var(--color-text-muted);
|
|
font-size: 1.02rem;
|
|
}
|
|
|
|
.post-content blockquote {
|
|
border-left: 4px solid rgba(255,255,255,0.12);
|
|
padding: 0.75rem 1rem;
|
|
margin: 1rem 0;
|
|
color: var(--color-text-secondary);
|
|
background: rgba(255,255,255,0.02);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.post-content pre {
|
|
background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.45));
|
|
color: #e6ffed;
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
overflow: auto;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', 'Courier New', monospace;
|
|
font-size: 0.92rem;
|
|
}
|
|
|
|
.post-content code {
|
|
background: rgba(0,0,0,0.28);
|
|
color: #e6ffed;
|
|
padding: 0.18rem 0.4rem;
|
|
border-radius: 6px;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', 'Courier New', monospace;
|
|
}
|
|
|
|
.post-content ul,
|
|
.post-content ol {
|
|
margin-left: 1.25rem;
|
|
margin-bottom: 0.75rem;
|
|
padding-left: 1rem;
|
|
list-style-position: outside;
|
|
}
|
|
|
|
.post-content ul {
|
|
list-style-type: disc;
|
|
}
|
|
|
|
.post-content ol {
|
|
list-style-type: decimal;
|
|
}
|
|
|
|
.post-content li {
|
|
margin-bottom: 0.45rem;
|
|
}
|
|
|
|
.post-content li::marker {
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.post-content a {
|
|
color: var(--color-accent-secondary);
|
|
text-decoration: none;
|
|
border-bottom: 1px dashed rgba(212,255,94,0.18);
|
|
}
|
|
|
|
.post-content a:hover {
|
|
color: var(--color-accent-primary);
|
|
border-bottom-color: rgba(255,254,119,0.35);
|
|
}
|
|
|
|
.post-meta {
|
|
color: var(--color-text-secondary);
|
|
font-size: 0.95rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|