clause agent mode "make it look like papermod"
Some checks failed
CSS Code Linting / Lint CSS (push) Has been cancelled
JS Code Linting / Lint JS (push) Has been cancelled
PHP Code Linting / Parallel lint (push) Has been cancelled
PHP Code Linting / PHPCS check (push) Has been cancelled

This commit is contained in:
gribse 2025-07-26 16:24:01 +02:00
parent 1c59bd66ea
commit 582e4491c0
91 changed files with 2139 additions and 202 deletions

295
sass/components/content/_posts-and-pages.scss Normal file → Executable file
View file

@ -1,23 +1,298 @@
// PaperMod inspired post and page styles
.sticky {
display: block;
position: relative;
&::before {
content: '📌';
position: absolute;
top: 1rem;
right: 1rem;
font-size: 1.2rem;
z-index: 10;
}
}
.post,
.page {
margin: 0 0 1.5em;
margin: 0 0 2rem;
background: var(--color-bg-card);
border-radius: 8px;
overflow: hidden;
transition: var(--transition-default);
&:hover {
box-shadow: var(--shadow-hover);
transform: translateY(-2px);
}
// Archive/blog page card layout
.home &,
.archive &,
.search-results & {
box-shadow: var(--shadow-card);
.entry-header {
padding: 1.5rem 1.5rem 0;
}
.entry-content,
.entry-summary {
padding: 0 1.5rem;
}
.entry-footer {
padding: 0 1.5rem 1.5rem;
}
}
// Single post/page layout
.single &,
.page & {
box-shadow: none;
background: transparent;
&:hover {
transform: none;
box-shadow: none;
}
}
}
.entry-header {
margin-bottom: 1rem;
.entry-title {
margin: 0 0 0.5rem;
line-height: $font__line-height-heading;
a {
color: var(--color-text-primary);
text-decoration: none;
border: none;
&:hover {
color: var(--color-link);
border: none;
}
}
// Different sizes for different contexts
.home &,
.archive &,
.search-results & {
font-size: 1.5rem;
}
.single &,
.page & {
font-size: 2.5rem;
margin-bottom: 1rem;
}
}
.entry-meta {
display: flex;
flex-wrap: wrap;
gap: 1rem;
font-size: 0.875rem;
color: var(--color-text-secondary);
margin-bottom: 1rem;
.posted-on,
.byline,
.cat-links,
.tags-links,
.comments-link {
display: flex;
align-items: center;
gap: 0.25rem;
a {
color: var(--color-text-secondary);
&:hover {
color: var(--color-link);
}
}
}
// Icons before meta items (using pseudo-elements)
.posted-on::before {
content: '📅';
}
.byline::before {
content: '👤';
}
.cat-links::before {
content: '📁';
}
.tags-links::before {
content: '🏷️';
}
.comments-link::before {
content: '💬';
}
}
}
.entry-content,
.entry-summary {
margin: 1rem 0;
line-height: $font__line-height-body;
p {
margin-bottom: 1.5rem;
&:last-child {
margin-bottom: 0;
}
}
// Better spacing for content elements
> * {
margin-bottom: 1.5rem;
&:last-child {
margin-bottom: 0;
}
}
// Improved blockquote styling
blockquote {
margin: 2rem 0;
padding: 1rem 1.5rem;
border-left: 4px solid var(--color-link);
background: var(--color-bg-secondary);
border-radius: 0 8px 8px 0;
p {
margin-bottom: 1rem;
font-style: italic;
&:last-child {
margin-bottom: 0;
}
}
cite {
display: block;
margin-top: 1rem;
font-size: 0.875rem;
color: var(--color-text-secondary);
font-style: normal;
&::before {
content: '';
}
}
}
// Code styling
code {
background: var(--color-bg-secondary);
padding: 0.2rem 0.4rem;
border-radius: 4px;
font-family: $font__code;
font-size: 0.875em;
}
pre {
background: var(--color-bg-secondary);
padding: 1rem;
border-radius: 8px;
overflow-x: auto;
line-height: $font__line-height-pre;
code {
background: none;
padding: 0;
}
}
}
.entry-footer {
margin-top: 1.5rem;
padding-top: 1rem;
border-top: 1px solid var(--color-border-primary);
.cat-links,
.tags-links {
margin-bottom: 0.5rem;
a {
display: inline-block;
padding: 0.25rem 0.75rem;
background: var(--color-bg-secondary);
color: var(--color-text-secondary);
text-decoration: none;
border-radius: 20px;
font-size: 0.875rem;
margin-right: 0.5rem;
margin-bottom: 0.5rem;
transition: var(--transition-fast);
border: none;
&:hover {
background: var(--color-link);
color: var(--color-bg-primary);
border: none;
}
}
}
}
.page-content {
margin: 1.5rem 0 0;
}
.page-links {
clear: both;
margin: 2rem 0;
text-align: center;
a,
span {
display: inline-block;
padding: 0.5rem 1rem;
margin: 0 0.25rem;
border-radius: 4px;
text-decoration: none;
transition: var(--transition-fast);
}
a {
background: var(--color-bg-secondary);
color: var(--color-text-primary);
border: none;
&:hover {
background: var(--color-link);
color: var(--color-bg-primary);
border: none;
}
}
span {
background: var(--color-link);
color: var(--color-bg-primary);
}
}
.updated:not(.published) {
display: none;
}
.page-content,
.entry-content,
.entry-summary {
margin: 1.5em 0 0;
}
.page-links {
clear: both;
margin: 0 0 1.5em;
// Reading time indicator
.reading-time {
font-size: 0.875rem;
color: var(--color-text-secondary);
&::before {
content: '⏱️ ';
}
}