height: 50px !important;
}
- /* Social share widget */
- .share-widget {
- padding-top: 0.75rem;
- border-top: 1px solid var(--border);
+ /* Sidebar widget — no box, no border */
+ .sidebar-widget {
+ margin-bottom: 1.5rem;
}
- .share-label {
+ /* Sidebar widget title — bash comment style */
+ .sidebar-widget-label {
font-family: var(--font-mono, monospace);
font-size: 0.75rem;
color: var(--text-dim);
margin-bottom: 0.5rem;
}
+ /* Sidebar separator */
+ .sidebar-hr {
+ border: none;
+ border-top: 1px solid var(--border);
+ margin-bottom: 1.5rem;
+ }
+
.share-grid {
display: grid;
grid-template-columns: repeat(3, 50px);
/* Force Feather icons to match size */
-/* Social share widget */
+/* Sidebar widget — no box, no border */
-.share-widget {
- padding-top: 0.75rem;
- border-top: 1px solid var(--border);
+.sidebar-widget {
+ margin-bottom: 1.5rem;
}
-.share-label {
+/* Sidebar widget title — bash comment style */
+
+.sidebar-widget-label {
font-family: var(--font-mono, monospace);
font-size: 0.75rem;
color: var(--text-dim);
margin-bottom: 0.5rem;
}
+/* Sidebar separator */
+
+.sidebar-hr {
+ border: none;
+ border-top: 1px solid var(--border);
+ margin-bottom: 1.5rem;
+}
+
.share-grid {
display: grid;
grid-template-columns: repeat(3, 50px);
<aside class="order-last md:order-none md:col-span-1">
<!-- Author info widget (optional - can be expanded) -->
- <div class="p-4 border border-border/30 rounded mb-6">
- <h3 class="text-lg font-semibold text-accent mb-3">{{ i18n "author" }}</h3>
+ <div class="sidebar-widget">
+ <p class="sidebar-widget-label"># {{ i18n "author" }}</p>
<p class="text-text-dim text-sm leading-relaxed">
{{ .Site.Params.author }}
</p>
</div>
+ <hr class="sidebar-hr">
+
<!-- Social sharing widget -->
{{ partial "social-share.html" (dict "page" . "mode" "sidebar") }}
<!-- Related posts widget (articles only) -->
{{ if and .Site.Params.relatedPosts (eq .Type "articles") }}
{{ $related := first 5 (.Site.RegularPages.Related .) }}
- <div class="p-4 border border-border/30 rounded mb-6">
- <h3 class="text-lg font-semibold text-accent mb-3">{{ i18n "relatedPosts" }}</h3>
+ <hr class="sidebar-hr">
+ <div class="sidebar-widget">
+ <p class="sidebar-widget-label"># {{ i18n "relatedPosts" }}</p>
{{ if $related }}
<ul class="space-y-3">
{{ range $related }}
{{ $gridClass = "flex flex-wrap justify-center gap-1" }}
{{ end }}
-<div class="share-widget mb-6">
- <p class="share-label">// {{ i18n "share" }}</p>
+<div class="sidebar-widget">
+ <p class="sidebar-widget-label"># {{ i18n "share" }}</p>
<nav aria-label="{{ i18n "share" }}">
<div class="{{ $gridClass }}">