Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Commit

Permalink
1.2.2
Browse files Browse the repository at this point in the history
- iconfont库 增加了新图标
- 修复搜索框文字光标方向错误
  • Loading branch information
痞子鱼 committed Jan 20, 2017
1 parent 9850134 commit d7a492f
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 82 deletions.
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
###更新(2017年1月20日)

- iconfont库 增加了新图标
- 修复搜索框文字光标方向错误( 感谢 @FaithPatrick 提交 )

###更新(2017年1月19日)

- 增加对 Hanny 友链插件的支持(没用插件的直接编辑源文件来修改友链)
Expand All @@ -8,20 +13,21 @@ PS:因为友链插件输出的原因,如果要和本站一样效果,需要
1、修改 Links 插件目录 Plugin.php 文件的 267行 替换为

```php
} else if ($pattern == "SHOW_JUNICHI") {
$pattern = "<li><a href=\"{url}\" target=\"_blank\">{name}</a><span class=\"more\">({title})</span></li>\n";
}
} else if ($pattern == "SHOW_JUNICHI") {
$pattern = "<li><a href=\"{url}\" target=\"_blank\">{name}</a><span class=\"more\">({title})</span></li>\n";
}
```
2、修改主题目录 page-links.php 文件的 18行 替换为

```php
<ul class="links iconfont">
<?php Links_Plugin::output('SHOW_JUNICHI',0,'https'); ?>
</ul>
<ul>
<?php Links_Plugin::output('SHOW_JUNICHI',0,'http'); ?>
</ul>
<ul class="links iconfont">
<?php Links_Plugin::output('SHOW_JUNICHI',0,'https'); ?>
</ul>
<ul>
<?php Links_Plugin::output('SHOW_JUNICHI',0,'http'); ?>
</ul>
```

3、添加友链的时候 若是 https 的链接添加链接分类为 https,否则链接分类为 http。

###更新(2017年1月16日)
Expand Down
4 changes: 2 additions & 2 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<link rel="shortcut icon" href="<?php if($this->options->favicon): $this->options->favicon(); else: $this->options->themeUrl('images/touxiang.png');endif; ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('style.css?v=170119'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('style.css?v=170120'); ?>">
<title><?php $this->archiveTitle(array(
'category' => _t(' %s '),
'search' => _t(' %s '),
Expand Down Expand Up @@ -67,7 +67,7 @@
<?php endif; ?>
<a id="search-toggle" class="social search" href="javascript:"><i class="iconfont icon-sousuo"></i></a>
<form id="search" method="post" action="/" role="search">
<input type="text" class="input" name="s" required="true" placeholder="...Search" dir="rtl">
<input type="text" class="input" name="s" required="true" placeholder="...Search">
</form>
<div id="wechat">
<img src="<?php $this->options->socialwechat(); ?>" />
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Junichi Theme
* @author Jet Li
* @version 1.2.1
* @version 1.2.2
* @link https://uefeng.com
*/

Expand Down
88 changes: 18 additions & 70 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,33 +45,37 @@ a:hover {
text-decoration: underline
}


@font-face {font-family: "iconfont";
src: url('//at.alicdn.com/t/font_iyzw7tg1eaeb3xr.eot?t=1484529418544'); /* IE9*/
src: url('//at.alicdn.com/t/font_iyzw7tg1eaeb3xr.eot?t=1484529418544#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('//at.alicdn.com/t/font_iyzw7tg1eaeb3xr.woff?t=1484529418544') format('woff'), /* chrome, firefox */
url('//at.alicdn.com/t/font_iyzw7tg1eaeb3xr.ttf?t=1484529418544') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
url('//at.alicdn.com/t/font_iyzw7tg1eaeb3xr.svg?t=1484529418544#iconfont') format('svg'); /* iOS 4.1- */
src: url('//at.alicdn.com/t/font_7xfbg1ri4tpgb9.eot?t=1484874598852'); /* IE9*/
src: url('//at.alicdn.com/t/font_7xfbg1ri4tpgb9.eot?t=1484874598852#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('//at.alicdn.com/t/font_7xfbg1ri4tpgb9.woff?t=1484874598852') format('woff'), /* chrome, firefox */
url('//at.alicdn.com/t/font_7xfbg1ri4tpgb9.ttf?t=1484874598852') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
url('//at.alicdn.com/t/font_7xfbg1ri4tpgb9.svg?t=1484874598852#iconfont') format('svg'); /* iOS 4.1- */
}

.iconfont {
font-family:"iconfont" !important;
font-size:16px;
font-style:normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
vertical-align: sub;
font-style: normal;
font-size: 24px;
font-family: iconfont!important
}

.icon-wechat:before { content: "\e675"; }

.icon-rss:before { content: "\e600"; }

.icon-instagram:before { content: "\e616"; }

.icon-facebook:before { content: "\e63c"; }

.icon-linkedin:before { content: "\e64d"; }

.icon-twitter:before { content: "\e6a4"; }

.icon-aboutus:before { content: "\e601"; }

.icon-zhihu:before { content: "\e609"; }

.icon-weibo:before { content: "\e64c"; }

.icon-google:before { content: "\e6b7"; }
Expand All @@ -84,6 +88,8 @@ a:hover {

.icon-https:before { content: "\e6cb"; }

.icon-liuyan:before { content: "\e693"; }

.icon-sousuo:before { content: "\e605"; }

.icon-links:before { content: "\e606"; }
Expand All @@ -92,62 +98,6 @@ a:hover {

.icon-qq:before { content: "\e6f6"; }


.iconfont {
vertical-align: sub;
font-style: normal;
font-size: 24px;
font-family: iconfont!important
}

.icon-rss:before {
content: "\e600"
}

.icon-facebook:before {
content: "\e63c"
}

.icon-twitter:before {
content: "\e6a4"
}

.icon-aboutus:before {
content: "\e601"
}

.icon-weibo:before {
content: "\e64c"
}

.icon-google:before {
content: "\e6b7"
}

.icon-collect:before {
content: "\e603"
}

.icon-home:before {
content: "\e604"
}

.icon-sousuo:before {
content: "\e605"
}

.icon-links:before {
content: "\e606"
}

.icon-github:before {
content: "\ee80"
}

.icon-https:before {
content: "\e6cb"
}

.left-col {
position: fixed;
width: 270px;
Expand Down Expand Up @@ -1031,6 +981,4 @@ pre[class*=language-] {

.token.entity {
cursor: help
}
Contact GitHub API Training Shop Blog About
© 2017 GitHub, Inc. Terms Privacy Security Status Help
}

0 comments on commit d7a492f

Please sign in to comment.