Skip to content

Commit f4908d6

Browse files
stevenjoezhangivan-nginx
authored andcommitted
Optimize stylesheet (theme-next#561)
* Update tag-cloud.styl * Update index.styl * Update busuanzi-counter.swig * Update third-party.styl
1 parent f0c5c42 commit f4908d6

File tree

5 files changed

+16
-37
lines changed

5 files changed

+16
-37
lines changed

layout/_third-party/analytics/busuanzi-counter.swig

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,25 @@
33
<script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
44

55
{% if theme.busuanzi_count.total_visitors %}
6-
<span class="site-uv" title="{{ __('footer.total_visitors') }}">
6+
<span class="post-meta-item-icon">
77
<i class="fa fa-{{ theme.busuanzi_count.total_visitors_icon }}"></i>
8+
</span>
9+
<span class="site-uv" title="{{ __('footer.total_visitors') }}">
810
<span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
911
</span>
1012
{% endif %}
1113

14+
{% if theme.busuanzi_count.total_visitors and theme.busuanzi_count.total_views %}
15+
<span class="post-meta-divider">|</span>
16+
{% endif %}
17+
1218
{% if theme.busuanzi_count.total_views %}
13-
<span class="site-pv" title="{{ __('footer.total_views') }}">
19+
<span class="post-meta-item-icon">
1420
<i class="fa fa-{{ theme.busuanzi_count.total_views_icon }}"></i>
21+
</span>
22+
<span class="site-pv" title="{{ __('footer.total_views') }}">
1523
<span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
1624
</span>
1725
{% endif %}
1826
</div>
1927
{% endif %}
20-

source/css/_common/components/tag-cloud.styl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@
55
display: inline-block;
66
margin: 10px;
77
}
8-
}
8+
9+
a:hover {
10+
color: $link-hover-color !important;
11+
}
12+
}

source/css/_common/components/third-party/busuanzi-counter.styl

Lines changed: 0 additions & 30 deletions
This file was deleted.

source/css/_common/components/third-party/third-party.styl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
@import "gitment" if hexo-config('gitment.enable');
22
@import "han" if hexo-config('han');
33
@import "localsearch";
4-
@import "busuanzi-counter";
54
@import "algolia-search" if hexo-config('algolia_search.enable');
65
@import "needsharebutton" if hexo-config('needmoreshare2.enable');
76
@import "related-posts" if hexo-config('related_posts.enable');

source/css/_schemes/Gemini/index.styl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,7 @@ use_seo = hexo-config('seo');
247247

248248
// Components inside Posts.
249249
.post-button {
250-
margin-top: $sidebar-offset;
251-
//padding-bottom : 15px;
250+
margin: $sidebar-offset 0px;
252251
}
253252
img {
254253
padding: initial !important;

0 commit comments

Comments
 (0)