Skip to content

Commit ba498f2

Browse files
committed
1.0.4
1 parent 351a560 commit ba498f2

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

functions.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3675,6 +3675,7 @@ function themeoptions_page(){
36753675
<button id="headindex_toggler" onclick="$('#headindex_box').toggleClass('folded');"><?php _e('收起', 'argon');?></button>
36763676
<div id="headindex"></div>
36773677
</div>
3678+
<div id="scroll_navigation"><button onclick="$('body,html').animate({scrollTop: 0}, 300);"><?php _e('到顶部', 'argon');?></button><button onclick="$('body,html').animate({scrollTop: $(document).height()-$(window).height()+10}, 300);"><?php _e('到底部', 'argon');?></button></div>
36783679
<div id="exported_settings_json_box" class="closed"><div><?php _e('请复制并保存导出后的 JSON', 'argon');?></div><textarea id="exported_settings_json" readonly="true" onclick="$(this).select();"></textarea><div style="width: 100%;margin: auto;margin-top: 15px;cursor: pointer;user-select: none;" onclick="$('#exported_settings_json_box').addClass('closed');"><?php _e('确定', 'argon');?></div></div>
36793680
<style>
36803681
.radio-with-img {
@@ -3760,6 +3761,23 @@ function themeoptions_page(){
37603761
display: none;
37613762
}
37623763
}
3764+
#scroll_navigation {
3765+
position: fixed;
3766+
right: 10px;
3767+
bottom: 10px;
3768+
z-index: 99;
3769+
user-select: none;
3770+
}
3771+
#scroll_navigation button {
3772+
color: #555;
3773+
background: #fff;
3774+
box-shadow: 0 1px 0 #ccc;
3775+
outline: none !important;
3776+
border: 1px solid #ccc;
3777+
border-radius: 2px;
3778+
cursor: pointer;
3779+
font-size: 14px;
3780+
}
37633781
#exported_settings_json_box{
37643782
position: fixed;
37653783
z-index: 99999;

info.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version" : "1.0.3",
2+
"version" : "1.0.4",
33
"details_url" : "https://github.com/solstice23/argon-theme/releases",
4-
"download_url" : "https://github.com/solstice23/argon-theme/releases/download/v1.0.3/argon.zip"
4+
"download_url" : "https://github.com/solstice23/argon-theme/releases/download/v1.0.4/argon.zip"
55
}

style.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Theme Name: argon
33
Author: solstice23
44
Author URI: https://solstice23.top/
55
Description: 轻盈、简洁、美观的 Wordpress 主题
6-
Version: 1.0.3
6+
Version: 1.0.4
77
License: GNU General Public License v3.0
88
License URI: https://www.gnu.org/licenses/gpl-3.0.html
99
Tags: 简约, 两栏, 侧栏在左边, 浮动侧栏, 文章目录, 自适应, 夜间模式, 可自定义
@@ -4229,6 +4229,12 @@ html.darkmode.amoled-dark #content:before , html.darkmode.amoled-dark #content:a
42294229
z-index: 1049;
42304230
background: transparent;
42314231
}
4232+
4233+
.navbar-nav:not(#navbar_search_btn_mobile) > .nav-item i:not(.d-lg-none){
4234+
margin-right: 8px;
4235+
text-align: center;
4236+
width: 14px;
4237+
}
42324238
}
42334239
@media screen and (min-width:900px) and (max-width:990px){
42344240
#leftbar_part2.sticky {

0 commit comments

Comments
 (0)