diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-09-18 23:39:28 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-09-18 23:39:28 +0800 |
| commit | c63879e641e2f111802d47158ffe48eff74b41a2 (patch) | |
| tree | 7261fd71371fca987f6921e1c0fd1962fcfa1513 /single.php | |
| parent | 9328289c964b0f8891886ef7784e09e87b38eefa (diff) | |
:dizzy: Perf: 优化专注模式
添加了固定位置的开关,中等屏幕上打开专注模式会使页面主体居中
Diffstat (limited to 'single.php')
| -rw-r--r-- | single.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"></span></button> + $this->title(); + if($this->is('post')){ ?><button class="focus-mode-btn" title="专注模式"><span class="iconfont"></span></button><?php } ?> </h1> <?php if($this->is('post')): ?> <ul class="post-meta post-meta-atpage"> |
