fix: Stylign change in post page
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -161,12 +161,17 @@ main a:hover:not(.entry-link, .anchor),
|
|||||||
stroke: var(--theme) !important;
|
stroke: var(--theme) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Active Nav State - remain thick underline */
|
#menu .active {
|
||||||
nav #menu .active span::before {
|
border-bottom: none !important;
|
||||||
height: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nav #menu .active a:hover span::before {
|
/* Active Nav State - 3x underline (6px) with same green shade */
|
||||||
|
nav #menu a span.active::before {
|
||||||
|
height: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav #menu a:hover span.active::before,
|
||||||
|
nav #menu a:hover span::before {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -307,7 +312,7 @@ main .post-entry:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* *
|
/* *
|
||||||
* POSTS SECTION - Same compact style as notes but with description
|
* POSTS SECTION - Compact list style with title and date stacked
|
||||||
* */
|
* */
|
||||||
.posts-list {
|
.posts-list {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
@@ -316,21 +321,17 @@ main .post-entry:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.post-item {
|
.post-item {
|
||||||
padding: 12px 0;
|
padding: 10px 0;
|
||||||
border-bottom: 1px solid var(--tertiary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-item:last-child {
|
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-item a {
|
.post-item a {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex !important;
|
||||||
justify-content: space-between;
|
flex-direction: column;
|
||||||
align-items: baseline;
|
align-items: flex-start;
|
||||||
text-decoration: none !important;
|
text-decoration: none !important;
|
||||||
gap: 16px;
|
gap: 4px;
|
||||||
padding: 8px 12px;
|
padding: 8px 12px;
|
||||||
margin: 0 -12px;
|
margin: 0 -12px;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
@@ -364,12 +365,13 @@ main .post-entry:hover {
|
|||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: var(--primary);
|
color: var(--primary);
|
||||||
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-date {
|
.post-date {
|
||||||
font-size: 0.85rem;
|
font-size: 1.1rem;
|
||||||
color: var(--secondary);
|
color: var(--secondary);
|
||||||
white-space: nowrap;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-summary {
|
.post-summary {
|
||||||
@@ -380,8 +382,7 @@ main .post-entry:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Common list styles */
|
/* Common list styles */
|
||||||
.note-item a,
|
.note-item a {
|
||||||
.post-item a {
|
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
@@ -11,13 +11,9 @@
|
|||||||
{{- range .Pages }}
|
{{- range .Pages }}
|
||||||
<li class="post-item">
|
<li class="post-item">
|
||||||
<a href="{{ .Permalink }}">
|
<a href="{{ .Permalink }}">
|
||||||
<span class="post-title"># {{ .Title }}</span>
|
<span class="post-title">{{ .Title }}</span>
|
||||||
<span class="delimiter">•</span>
|
|
||||||
<span class="post-date">{{ .Date.Format "Jan 2, 2006" }}</span>
|
<span class="post-date">{{ .Date.Format "Jan 2, 2006" }}</span>
|
||||||
</a>
|
</a>
|
||||||
{{- if .Summary }}
|
|
||||||
<p class="post-summary">{{ .Summary | plainify | truncate 150 }}</p>
|
|
||||||
{{- end }}
|
|
||||||
</li>
|
</li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user