diff options
| author | outtime <i@timewk.cn> | 2020-03-30 19:52:00 +0800 |
|---|---|---|
| committer | outtime <i@timewk.cn> | 2020-03-30 19:52:00 +0800 |
| commit | a7951777aa4316cc8e01345410d699a57ef59f86 (patch) | |
| tree | ae4eb4c044e86eea800dcab0677cc4b70f9130df | |
| parent | fc9c0ce3bcaf7f39baf0f3fef27383a072067593 (diff) | |
🪁Perf: 移动提示的位置
| -rw-r--r-- | archive.php | 2 | ||||
| -rw-r--r-- | assets/css/main/component.css | 3 | ||||
| -rw-r--r-- | includes/header.php | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/archive.php b/archive.php index cf637e3..df81393 100644 --- a/archive.php +++ b/archive.php @@ -30,7 +30,7 @@ $this->need('includes/header.php'); } ?> </p> - <p class="post-meta"><i class="iconfont icon-block"></i> <?php $this->category(','); ?> <i class="iconfont icon-comments"></i> <?php $this->commentsNum('还没有评论', '仅有一条评论', '%d'); ?> <i class="iconfont icon-clock"></i> <?php $this->date(); ?></p> + <p class="post-meta"><i class="iconfont icon-block"></i> <?php $this->category(','); ?> <i class="iconfont icon-comments"></i> <?php $this->commentsNum('还没有评论', '仅一条评论', '%d'); ?> <i class="iconfont icon-clock"></i> <?php $this->date(); ?></p> <p class="post-button-box large-screen"><a href="<?php $this->permalink(); ?>" class="button post-button">Read More</a></p> </div> </div></div> diff --git a/assets/css/main/component.css b/assets/css/main/component.css index 64073e8..eac7ab1 100644 --- a/assets/css/main/component.css +++ b/assets/css/main/component.css @@ -34,7 +34,8 @@ button { /* Alert */
.alert {
bottom: 0;
- left: 15px;
+ left: 50%;
+ transform: translate(-50%, 0px);
z-index: 10;
padding: 1em;
position: fixed;
diff --git a/includes/header.php b/includes/header.php index f212a72..2da58a8 100644 --- a/includes/header.php +++ b/includes/header.php @@ -143,7 +143,7 @@ <?php if($this->fields->meta==''): ?> <div class="header-meta-line-one"> <?php if($this->is('post')): ?><i class="iconfont icon-block" title="文章分类"></i> <?php $this->category(','); ?> <?php endif; ?> - <i class="iconfont icon-comments" title="共 <?php $this->commentsNum('0', '1', '%d'); ?> 条评论"></i> <?php $this->commentsNum('None', 'Only 1', '%d'); ?>  + <i class="iconfont icon-comments" title="共 <?php $this->commentsNum('0', '1', '%d'); ?> 条评论"></i> <?php $this->commentsNum('还没有评论', '仅一条评论', '%d'); ?>  </div> <div class="header-meta-line-two"> <i class="iconfont icon-clock" title="该文章发布于 <?php $this->date(); ?>"></i> <?php $this->date(); ?>  |
