clause agent mode "make it look like papermod"
This commit is contained in:
parent
1c59bd66ea
commit
582e4491c0
91 changed files with 2139 additions and 202 deletions
0
sass/components/_components.scss
Normal file → Executable file
0
sass/components/_components.scss
Normal file → Executable file
0
sass/components/comments/_comments.scss
Normal file → Executable file
0
sass/components/comments/_comments.scss
Normal file → Executable file
295
sass/components/content/_posts-and-pages.scss
Normal file → Executable file
295
sass/components/content/_posts-and-pages.scss
Normal file → Executable 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: '⏱️ ';
|
||||
}
|
||||
}
|
||||
|
|
0
sass/components/media/_captions.scss
Normal file → Executable file
0
sass/components/media/_captions.scss
Normal file → Executable file
0
sass/components/media/_galleries.scss
Normal file → Executable file
0
sass/components/media/_galleries.scss
Normal file → Executable file
0
sass/components/media/_media.scss
Normal file → Executable file
0
sass/components/media/_media.scss
Normal file → Executable file
102
sass/components/navigation/_footer.scss
Normal file
102
sass/components/navigation/_footer.scss
Normal file
|
@ -0,0 +1,102 @@
|
|||
// PaperMod inspired footer styles
|
||||
.site-footer {
|
||||
margin-top: auto;
|
||||
background: var(--color-bg-secondary);
|
||||
border-top: 1px solid var(--color-border-primary);
|
||||
|
||||
.footer-container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem 1.5rem 1rem;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
padding: 1.5rem 1rem 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.footer-widgets {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.footer-widget {
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-size: 1.125rem;
|
||||
font-weight: $font__weight-semibold;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
li {
|
||||
margin-bottom: 0.5rem;
|
||||
|
||||
a {
|
||||
color: var(--color-text-secondary);
|
||||
transition: var(--transition-fast);
|
||||
|
||||
&:hover {
|
||||
color: var(--color-link);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
color: var(--color-text-secondary);
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.site-info {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-top: 1rem;
|
||||
border-top: 1px solid var(--color-border-primary);
|
||||
font-size: 0.875rem;
|
||||
color: var(--color-text-secondary);
|
||||
|
||||
@media (max-width: 768px) {
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--color-text-secondary);
|
||||
|
||||
&:hover {
|
||||
color: var(--color-link);
|
||||
}
|
||||
}
|
||||
|
||||
.copyright {
|
||||
@media (max-width: 768px) {
|
||||
order: 2;
|
||||
}
|
||||
}
|
||||
|
||||
.theme-credit {
|
||||
@media (max-width: 768px) {
|
||||
order: 1;
|
||||
}
|
||||
}
|
||||
}
|
307
sass/components/navigation/_header.scss
Normal file
307
sass/components/navigation/_header.scss
Normal file
|
@ -0,0 +1,307 @@
|
|||
// PaperMod inspired header styles
|
||||
.site-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
background: var(--color-bg-header);
|
||||
backdrop-filter: blur(10px);
|
||||
border-bottom: 1px solid var(--color-border-primary);
|
||||
transition: var(--transition-default);
|
||||
|
||||
.header-container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 1rem 1.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 2rem;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
padding: 0.75rem 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.site-branding {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
flex-shrink: 0;
|
||||
|
||||
.site-title {
|
||||
margin: 0;
|
||||
font-size: 1.5rem;
|
||||
font-weight: $font__weight-bold;
|
||||
line-height: 1.2;
|
||||
|
||||
a {
|
||||
color: var(--color-text-primary);
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
|
||||
&:hover {
|
||||
color: var(--color-link);
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.site-description {
|
||||
display: none;
|
||||
margin: 0;
|
||||
font-size: 0.875rem;
|
||||
color: var(--color-text-secondary);
|
||||
|
||||
@media (min-width: 768px) {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.custom-logo {
|
||||
display: block;
|
||||
max-height: 50px;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
// Navigation styles
|
||||
.main-navigation {
|
||||
position: relative;
|
||||
|
||||
.menu-toggle {
|
||||
display: none;
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 0.5rem;
|
||||
border-radius: 4px;
|
||||
transition: var(--transition-fast);
|
||||
|
||||
&:hover {
|
||||
background: var(--color-bg-secondary);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.hamburger-icon {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
|
||||
span {
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 2px;
|
||||
background: var(--color-text-primary);
|
||||
transition: var(--transition-fast);
|
||||
border-radius: 1px;
|
||||
}
|
||||
|
||||
.menu-toggle[aria-expanded="true"] & {
|
||||
span:nth-child(1) {
|
||||
transform: rotate(45deg) translate(5px, 5px);
|
||||
}
|
||||
|
||||
span:nth-child(2) {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
span:nth-child(3) {
|
||||
transform: rotate(-45deg) translate(7px, -6px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.primary-menu {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2rem;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
right: 0;
|
||||
background: var(--color-bg-card);
|
||||
box-shadow: var(--shadow-card);
|
||||
border-radius: 8px;
|
||||
padding: 1rem;
|
||||
min-width: 200px;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
|
||||
&.toggled {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
li {
|
||||
position: relative;
|
||||
|
||||
a {
|
||||
display: block;
|
||||
padding: 0.5rem 0;
|
||||
color: var(--color-text-primary);
|
||||
font-weight: $font__weight-medium;
|
||||
transition: var(--transition-fast);
|
||||
border: none;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
padding: 0.75rem;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: var(--color-link);
|
||||
border: none;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
background: var(--color-bg-secondary);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.current_page_item > a,
|
||||
&.current-menu-item > a {
|
||||
color: var(--color-link);
|
||||
position: relative;
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -2px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 2px;
|
||||
background: var(--color-link);
|
||||
border-radius: 1px;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Dropdown menus
|
||||
.sub-menu {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
background: var(--color-bg-card);
|
||||
box-shadow: var(--shadow-card);
|
||||
border-radius: 8px;
|
||||
padding: 0.5rem;
|
||||
min-width: 200px;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transform: translateY(-10px);
|
||||
transition: var(--transition-fast);
|
||||
z-index: 1000;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
position: static;
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transform: none;
|
||||
box-shadow: none;
|
||||
background: var(--color-bg-secondary);
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
li a {
|
||||
padding: 0.75rem;
|
||||
border-radius: 4px;
|
||||
|
||||
&:hover {
|
||||
background: var(--color-bg-secondary);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
li:hover .sub-menu {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Theme toggle button
|
||||
.theme-toggle {
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 0.5rem;
|
||||
border-radius: 50%;
|
||||
transition: var(--transition-fast);
|
||||
color: var(--color-text-primary);
|
||||
position: relative;
|
||||
|
||||
&:hover {
|
||||
background: var(--color-bg-secondary);
|
||||
color: var(--color-link);
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: 2px solid var(--color-link);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
svg {
|
||||
display: block;
|
||||
transition: var(--transition-fast);
|
||||
}
|
||||
|
||||
.moon-icon {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
opacity: 0;
|
||||
|
||||
[data-theme="dark"] & {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.sun-icon {
|
||||
opacity: 1;
|
||||
|
||||
[data-theme="dark"] & {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Skip link
|
||||
.skip-link {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
top: 1rem;
|
||||
z-index: 999999;
|
||||
padding: 0.5rem 1rem;
|
||||
background: var(--color-text-primary);
|
||||
color: var(--color-bg-primary);
|
||||
text-decoration: none;
|
||||
border-radius: 4px;
|
||||
|
||||
&:focus {
|
||||
left: 1rem;
|
||||
}
|
||||
}
|
10
sass/components/navigation/_navigation.scss
Normal file → Executable file
10
sass/components/navigation/_navigation.scss
Normal file → Executable file
|
@ -1,6 +1,9 @@
|
|||
.main-navigation {
|
||||
display: block;
|
||||
width: 100%;
|
||||
// Import modern navigation styles
|
||||
@import "header";
|
||||
@import "footer";
|
||||
|
||||
// Legacy navigation styles (can be removed after testing)
|
||||
/*
|
||||
|
||||
ul {
|
||||
display: none;
|
||||
|
@ -107,3 +110,4 @@
|
|||
flex: 1 0 50%;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
|
0
sass/components/widgets/_widgets.scss
Normal file → Executable file
0
sass/components/widgets/_widgets.scss
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue