mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-21 20:03:18 -06:00
Improve categories list page layout
This commit is contained in:
parent
8d81f5e37c
commit
466c91a980
@ -153,21 +153,27 @@
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
@media (max-width: 360px) {
|
||||
.category-list-left {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.category-list li {
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.category-list-left {
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
|
||||
.category-list p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.category-list .category-metadata {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.category-list a,
|
||||
.category-list .category-metadata {
|
||||
white-space: nowrap;
|
||||
|
@ -10,11 +10,13 @@
|
||||
{{ range . }}
|
||||
{{ with .Page }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">
|
||||
<p>{{ .Title | markdownify }}</p>
|
||||
</a>
|
||||
<div class="category-list-left">
|
||||
<a href="{{ .Permalink }}">
|
||||
<p>{{ .Title | markdownify }}</p>
|
||||
</a>
|
||||
{{ partial "post-metadata/category.html" . }}
|
||||
</div>
|
||||
{{ partial "description-or-summary.html" . }}
|
||||
{{ partial "post-metadata/category.html" . }}
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue
Block a user