Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

这是一款简洁小清新主题,代码托管于此,欢迎fork或star。主题目前只有Typecho版,希望各界高手能帮忙移植到WordPress和EMLOG等博客平台,万分感谢。

详细的介绍及注意事项请看[发布页面](http://ben-lab.com/typecho/1805.html)。
详细的介绍及注意事项请看[发布页面](http://ben-lab.com/typecho/1805.html)。
8 changes: 1 addition & 7 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@
<script src="<?php $this->options->themeUrl(); ?>js/bootstrap.js"></script>
<script src="<?php $this->options->themeUrl(); ?>js/bootstrap-alert.js"></script>
<script type="text/javascript">
$(function () {
$('.post img').hover(
function() {$(this).fadeTo("fast", 0.5);},
function() {$(this).fadeTo("fast", 1.1);
});
});
$(document).ready(function() {
$(".post p:has(img)").css("text-indent","0");
});
</script>
<div data-widget="backtop"><script src="<?php $this->options->themeUrl(); ?>js/backtop.js" charset="utf-8"></script></div>
<?php $this->footer(); ?>
</body>
</html>
</html>
4 changes: 2 additions & 2 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
<?php endwhile; ?>
<?php } ?>
<li><a href="<?php $this->options->feedUrl(); ?>" class="menu-rss" target="_blank">订阅</a></li>
<form style="display:inline;" class="form-search" action="/search" method="get" >
<form style="display:inline;" class="form-search" action="search" method="get" >
<input style="height:13px;width:120px;display:inline;color:#999;float:right" type="text" class="input-medium search-query" name="s" value="回车以搜索..." onfocus="if (value =='回车以搜索...'){value =''}" onblur="if (value ==''){value='回车以搜索...'}" lang="zh-CN" >
</form>
</ul><div id="bottom-bar"></div>
</div>
</div>
41 changes: 3 additions & 38 deletions post.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,43 +19,8 @@
<div class="share2">
<ul class="drop-menu">
<!-- Baidu Button BEGIN -->
<div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
<a class="bds_qzone"></a>
<a class="bds_tsina"></a>
<a class="bds_tqq"></a>
<a class="bds_renren"></a>
<a class="bds_kaixin001"></a>
<a class="bds_tqf"></a>
<a class="bds_douban"></a>
<a class="bds_tsohu"></a>
<a class="bds_taobao"></a>
<a class="bds_sohu"></a>
<a class="bds_t163"></a>
<a class="bds_tfh"></a>
<a class="bds_hx"></a>
<a class="bds_ff"></a>
<a class="bds_xg"></a>
<a class="bds_ty"></a>
<a class="bds_hi"></a>
<a class="bds_msn"></a>
<a class="bds_deli"></a>
<a class="bds_fbook"></a>
<a class="bds_mshare"></a>
<a class="bds_bdhome"></a>
<a class="bds_tieba"></a>
<a class="bds_diandian"></a>
<a class="bds_huaban"></a>
<a class="bds_youdao"></a>
<a class="bds_mail"></a>
<a class="bds_copy"></a>
<span class="bds_more"></span>
<a class="shareCount"></a>
</div>
<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=<?php $this->options->shareid() ?>" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?t=" + new Date().getHours();
</script>
<div class="bdsharebuttonbox"><a href="#" class="bds_qzone" data-cmd="qzone" style="margin-left: 6px;" title="分享到QQ空间"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tieba" data-cmd="tieba" title="分享到百度贴吧"></a><a href="#" class="bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a><a href="#" class="bds_douban" data-cmd="douban" title="分享到豆瓣网"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="#" class="bds_bdhome" data-cmd="bdhome" title="分享到百度新首页"></a><a href="#" class="bds_tqf" data-cmd="tqf" title="分享到腾讯朋友"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a><a href="#" class="bds_hx" data-cmd="hx" title="分享到和讯"></a><a href="#" class="bds_tsohu" data-cmd="tsohu" title="分享到搜狐微博"></a><a href="#" class="bds_isohu" data-cmd="isohu" title="分享到我的搜狐"></a><a href="#" class="bds_ty" data-cmd="ty" title="分享到天涯社区"></a><a href="#" class="bds_diandian" data-cmd="diandian" title="分享到点点网"></a><a href="#" class="bds_huaban" data-cmd="huaban" title="分享到花瓣"></a><a href="#" class="bds_duitang" data-cmd="duitang" title="分享到堆糖"></a><a href="#" class="bds_fbook" data-cmd="fbook" title="分享到Facebook"></a><a href="#" class="bds_twi" data-cmd="twi" title="分享到Twitter"></a><a href="#" class="bds_linkedin" data-cmd="linkedin" title="分享到linkedin"></a><a href="#" class="bds_youdao" data-cmd="youdao" title="分享到有道云笔记"></a><a href="#" class="bds_sdo" data-cmd="sdo" title="分享到麦库记事"></a><a href="#" class="bds_qingbiji" data-cmd="qingbiji" title="分享到轻笔记"></a><a href="#" class="bds_copy" data-cmd="copy" title="分享到复制网址"></a><a href="#" class="bds_mail" data-cmd="mail" title="分享到邮件分享"></a><a href="#" class="bds_print" data-cmd="print" title="分享到打印"></a><a href="#" class="bds_mshare" data-cmd="mshare" title="分享到一键分享"></a><a href="#" class="bds_more" data-cmd="more"></a><a class="bds_count" data-cmd="count"></a> </div>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"1","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=<?php $this->options->shareid() ?>.js?cdnversion='+~(-new Date()/36e5)];</script>
<!-- Baidu Button END -->
</li>
</ul>
Expand All @@ -68,4 +33,4 @@
</div>
<?php $this->need('comments.php'); ?>
<?php $this->need('footer.php'); ?>
<?php }?>
<?php }?>
5 changes: 2 additions & 3 deletions search.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if(strpos($_SERVER["PHP_SELF"],"themes")) header('Location:/');
$this->need('header.php'); ?>
<?php if ($this->have()): ?>
<div class="alert alert-info"><h4><?php $this->archiveTitle(' &lt; ','',''); ?></h4></div>
<div class="alert alert-info"><h4><?php $this->archiveTitle(' &lt; ','',''); ?>” 的搜索结果</h4></div>
<div id="content">
<?php $this->need('index_list.php'); ?>
</div>
Expand All @@ -13,6 +13,5 @@
<small>请更换关键词重新搜索</small></blockquote>
<img style="display:block;margin:0 auto 0 auto" src="<?php $this->options->themeUrl(); ?>img/404.gif" />
<?php endif; ?>

<?php $this->need('footer.php'); ?>
<?php }?>
<?php }?>
16 changes: 13 additions & 3 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
box-shadow:0px 2px 5px rgba(0,0,0,0.15);
padding:30px;
}
li {
list-style:none;
.post ol,.post ul{
padding-left:26px;
}
#Center {
padding:24px 0px 0px 0px;
Expand Down Expand Up @@ -171,6 +171,7 @@ ol.page-navigator a {
line-height:29px;
height:29px;
margin:0;
padding:0;
}
.share2 ul li ul.children {
top:30px;
Expand Down Expand Up @@ -663,4 +664,13 @@ a:hover {
.nothumb {
color:#555;
margin-left: 10px;
}
}
/*The bellow is added by Ding Junyao for print style*/
@media print {
body{background:none;}
#Main{width:100%;}
#Center,#sidebar,.comment-box,.share2{display:none;}
#content a:after,.post a:after {
content:" <" attr(href) "> ";
}
}