fix: meta 区日期在上,评论观看数在下(两行布局)
This commit is contained in:
+4
-2
@@ -35,8 +35,10 @@ $total_pages = ceil($total / $per_page);
|
||||
</div>
|
||||
<div class="article-item__meta">
|
||||
<span class="article-item__date"><?php echo get_the_date('Y-m-d'); ?></span>
|
||||
<span class="article-item__comments">💬 <?php echo (int) get_comments_number(); ?></span>
|
||||
<span class="article-item__views">👁 <?php echo (int) kjweji_get_views(); ?></span>
|
||||
<div class="article-item__stats">
|
||||
<span class="article-item__comments">💬 <?php echo (int) get_comments_number(); ?></span>
|
||||
<span class="article-item__views">👁 <?php echo (int) kjweji_get_views(); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<?php endwhile; ?>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
Theme Name: 空笺未寄
|
||||
Version: 0.15.2
|
||||
Version: 0.15.3
|
||||
Requires at least: 6.0
|
||||
Requires PHP: 7.4
|
||||
License: MIT
|
||||
@@ -276,7 +276,8 @@ body .site { width: 100% !important; }
|
||||
.article-title { font-size:16px; letter-spacing:0.05em; display:block; }
|
||||
.article-item__author { display:inline-flex; align-items:center; gap:4px; font-size:12px; color:var(--ink-lighter); margin-top:4px; }
|
||||
.article-avatar { width:14px !important; height:14px !important; border-radius:50% !important; }
|
||||
.article-item__meta { display:flex; flex-direction:row; align-items:center; gap:12px; font-size:12px; color:var(--ink-lighter); white-space:nowrap; margin-left:24px; }
|
||||
.article-item__meta { display:flex; flex-direction:column; align-items:flex-end; gap:4px; font-size:12px; color:var(--ink-lighter); white-space:nowrap; margin-left:24px; }
|
||||
.article-item__stats { display:flex; gap:10px; }
|
||||
.article-item__date { font-size:12px; color:var(--ink-lighter); }
|
||||
.article-item__views { font-size:11px; color:var(--ink-lighter); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user