Skip to content

Commit

Permalink
Update Style
Browse files Browse the repository at this point in the history
更新了子页面、引用、分隔线的样式,修复了 footer  的错误输出。
  • Loading branch information
Dreamer-Paul committed Nov 15, 2018
1 parent bcdacec commit 02f9a7f
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 38 deletions.
17 changes: 8 additions & 9 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@
?>
<main>
<div class="wrap min">
<section class="board head">
<h3><?php $this->archiveTitle(array(
'category' => _t('<i class="fa fa-folder"></i>%s'),
'search' => _t('<i class="fa fa-search"></i>搜索结果:%s'),
'tag' => _t('<i class="fa fa-tags"></i>%s'),
'author' => _t('<i class="fa fa-user"></i>%s 的文章')
), '', ''); ?></h3>
</section>
<section class="board">
<div class="post-head">
<h3><?php $this->archiveTitle(array(
'category' => _t('“%s”'),
'search' => _t('“%s”的搜索结果'),
'tag' => _t('含标签“%s”的文章'),
'author' => _t('“%s”发布的文章')
), '', ''); ?></h3>
<?php if ($this->is('category')) : ?><p><?php echo $this->getDescription(); ?></p><?php endif; ?>
</div>
<?php if ($this->have()): ?>
<?php while($this->next()): ?>
<div class="post-item">
Expand Down
1 change: 0 additions & 1 deletion footer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
</main>
<footer>
<section class="foot-widget">
<div class="wrap min">
Expand Down
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function paul_update($name, $version){

echo "</div>";
}
paul_update("Fantasy", "1.0");
paul_update("Fantasy", "1.1");

// 自定义站点图标
$favicon = new Typecho_Widget_Helper_Form_Element_Text('favicon', NULL, NULL, _t('站点图标'), _t('在这里填入一张 png 图片地址(<a>192x192px</a>),不填则使用默认图标'));
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @package Fantasy Theme
* @author Dreamer-Paul
* @version 1.0
* @version 1.1
* @link https://paugram.com
*/

Expand Down
34 changes: 10 additions & 24 deletions static/fantasy.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Fantasy Theme
# By: Dreamer-Paul
# Last Update: 2018.10.19
# Last Update: 2018.11.15
一个优美梦幻的动漫风 Typecho 博客主题。
Expand All @@ -25,19 +25,14 @@ em{ background: #ffa9be }

h1, h2, h3{ font-weight: normal }

hr{ border-top: 2px #ccc dashed }

blockquote{
border: none;
position: relative;
color: #999;
padding: 1em;
border-radius: 1em;
background: #fff4fb;
}
blockquote:after{
top: .15em;
right: .15em;
opacity: .5;
content: '”';
position: absolute;
font: 4em/1em fantasy;
background: #fafafa;
border: 2px #ccc dashed;
}

/* 1 - 页眉
Expand Down Expand Up @@ -300,19 +295,10 @@ header, main{ margin-left: 8em; margin-bottom: 3em }
background: #fff;
border-radius: 1.5em;
}
.board + .board{
margin-top: 2em;
}
.board + .board{ margin-top: 2em }

.post-head{
text-align: center;
margin-bottom: 2em;
}
.post-head h3{
padding: .75em;
border-radius: 1em;
background: #ffeef2;
}
.board.head{ display: inline-block }
.board.head .fa{ margin-right: .75em }

.post-item, .post-title{
margin-bottom: 1.5em;
Expand Down
3 changes: 1 addition & 2 deletions static/fantasy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Fantasy Theme
# By: Dreamer-Paul
# Last Update: 2018.10.19
# Last Update: 2018.11.15
一个优美梦幻的动漫风 Typecho 博客主题。
Expand Down Expand Up @@ -32,7 +32,6 @@ var fantasy = new function () {
};

element.search.btn.onclick = function () {
console.log(element.search.input);
element.search.input.focus();
element.search.window.classList.toggle("active");
};
Expand Down

0 comments on commit 02f9a7f

Please sign in to comment.