style: make post_list.liquid responsive to mobile views
This commit is contained in:
1 parent
a574dc2f00
commit
444a098dcb
1 file changed
+4
-4
@@ -18,14 +18,14 @@
|
|||||||
<div class="post-list space-y-4">
|
<div class="post-list space-y-4">
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
<article class="flex items-start">
|
<article class="flex flex-col md:flex-row items-start">
|
||||||
<div class="flex-1 text-left">
|
<div class="flex-1 text-left">
|
||||||
<div>
|
<div>
|
||||||
<p class="mt-0 mb-0.5">
|
<p class="mt-0 mb-0.5">
|
||||||
<strong><a href="{{ post.url }}" class="text-text-title font-normal text-base hover:underline">{{ post.title }}</a></strong>
|
<strong><a href="{{ post.url }}" class="text-text-title font-normal text-base md:text-lg hover:underline">{{ post.title }}</a></strong>
|
||||||
</p>
|
</p>
|
||||||
<div class="mt-2 mb-1 text-sm flex items-center space-x-2">
|
<div class="mt-2 mb-1 text-sm flex flex-col md:flex-row items-center md:space-x-2">
|
||||||
<div class="flex items-center space-x-2">
|
<div class="flex items-center space-x-2 mb-2 md:mb-0">
|
||||||
<span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center">
|
<span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center">
|
||||||
<i class="fa-solid fa-arrow-up mr-1"></i> {{ post.upvotes }}
|
<i class="fa-solid fa-arrow-up mr-1"></i> {{ post.upvotes }}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in new issue
Block a user