fix: Layout and theme

This commit is contained in:
SauravDhakal
2026-04-01 10:33:28 +05:45
parent 38baeb86e8
commit 0c4e6715de
6 changed files with 243 additions and 15 deletions

View File

@@ -271,6 +271,78 @@ main .post-entry:hover {
line-height: 1.5;
}
/* *
* POSTS SECTION - Same compact style as notes but with description
* */
.posts-list {
list-style: none;
padding: 0;
margin: 0;
}
.post-item {
padding: 12px 0;
border-bottom: 1px solid var(--tertiary);
}
.post-item:last-child {
border-bottom: none;
}
.post-item a {
position: relative;
display: flex;
justify-content: space-between;
align-items: baseline;
text-decoration: none !important;
gap: 16px;
padding: 8px 12px;
margin: 0 -12px;
color: inherit;
transition: color 0.3s ease;
z-index: 1;
}
.post-item a::before {
content: "";
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 0;
background-color: var(--green);
z-index: -1;
transition: height 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.post-item a:hover::before {
height: 100%;
}
.post-item a:hover .post-title,
.post-item a:hover .post-date {
color: var(--theme) !important;
}
.post-title {
font-size: 1.1rem;
font-weight: 500;
color: var(--primary);
}
.post-date {
font-size: 0.85rem;
color: var(--secondary);
white-space: nowrap;
}
.post-summary {
margin: 4px 0 0 0;
font-size: 0.96rem;
color: var(--secondary);
line-height: 1.5;
}
/* *
* POST CONTENT SPACINGS
* */