summaryrefslogtreecommitdiff
path: root/single.php
diff options
context:
space:
mode:
authorEltrac Koalar <hi@guhub.cn>2022-09-18 23:39:28 +0800
committerEltrac Koalar <hi@guhub.cn>2022-09-18 23:39:28 +0800
commitc63879e641e2f111802d47158ffe48eff74b41a2 (patch)
tree7261fd71371fca987f6921e1c0fd1962fcfa1513 /single.php
parent9328289c964b0f8891886ef7784e09e87b38eefa (diff)
:dizzy: Perf: 优化专注模式
添加了固定位置的开关,中等屏幕上打开专注模式会使页面主体居中
Diffstat (limited to 'single.php')
-rw-r--r--single.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/single.php b/single.php
index b5b03e5..914f90f 100644
--- a/single.php
+++ b/single.php
@@ -12,8 +12,8 @@
<h1 class="post-title post-title-atpage<?php
if($this->is('page')){ ?> page-title-atpage<?php }
?>" itemprop="name headline"><?php
- $this->title();?>
- <button id="focus-mode" title="专注模式"><span class="iconfont">&#xe869;</span></button>
+ $this->title();
+ if($this->is('post')){ ?><button class="focus-mode-btn" title="专注模式"><span class="iconfont">&#xe869;</span></button><?php } ?>
</h1>
<?php if($this->is('post')): ?>
<ul class="post-meta post-meta-atpage">