.article-nav-links {
display: flex;
- align-items: center;
- justify-content: space-between;
+ flex-direction: column;
+ gap: 1rem;
font-family: JetBrains Mono, monospace;
font-size: 0.875rem;
line-height: 1.25rem;
}
+@media (min-width: 768px) {
+ .article-nav-links {
+ flex-direction: row;
+ align-items: center;
+ justify-content: space-between;
+ gap: 0px;
+ }
+}
+
.article-nav-link {
color: var(--text);
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
max-width: 80rem;
}
-.max-w-\[45\%\] {
- max-width: 45%;
-}
-
.max-w-lg {
max-width: 32rem;
}
width: 12rem;
}
+ .md\:max-w-\[45\%\] {
+ max-width: 45%;
+ }
+
.md\:grid-cols-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
{{/* ---- Previous (left side) ---- */}}
{{ if $prev }}
<a href="{{ $prev.Permalink }}"
- class="article-nav-link truncate max-w-[45%]"
+ class="article-nav-link truncate md:max-w-[45%] text-left"
rel="prev"
title="{{ $prev.Title }}">
◄ {{ $prev.Title }}
</a>
{{ else }}
- <span class="article-nav-placeholder" aria-label="Beginning of articles">
+ <span class="article-nav-placeholder text-left" aria-label="Beginning of articles">
◄ (beginning)
</span>
{{ end }}
{{/* ---- Next (right side) ---- */}}
{{ if $next }}
<a href="{{ $next.Permalink }}"
- class="article-nav-link truncate max-w-[45%] text-right"
+ class="article-nav-link truncate md:max-w-[45%] text-right"
rel="next"
title="{{ $next.Title }}">
{{ $next.Title }} ►