From 7f912b27763d689114560f9f4fd7367589df3f13 Mon Sep 17 00:00:00 2001 From: Mashiro Date: Fri, 25 Jan 2019 22:30:25 +0800 Subject: [PATCH] fix --- cdn/theme/github.css | 19 ++++++++++++++++--- options.php | 18 +++++++++--------- 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/cdn/theme/github.css b/cdn/theme/github.css index f49a0d5..1edfbaf 100644 --- a/cdn/theme/github.css +++ b/cdn/theme/github.css @@ -716,6 +716,20 @@ background-color: #21252b !important } +.entry-content pre table.hljs-ln::-webkit-scrollbar { + height: 10x !important; + width: 10x !important; + background-color: #1d1f21 !important; +} +.entry-content pre table.hljs-ln::-webkit-scrollbar-track { + background-color: #41454a; +} +.entry-content pre table.hljs-ln::-webkit-scrollbar-thumb { + border-radius: 10px !important; + -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .5) !important; + background-color: #21252b !important; +} + .entry-content pre.highlight-wrap code { background: #1d1f21; color: #fff; @@ -832,7 +846,7 @@ } .entry-content pre .hljs-ln { - margin: 6px 0 0 6px !important + margin: 6px 0 0 0 !important } .entry-content pre td .hljs-ln-numbers { @@ -853,8 +867,7 @@ } .entry-content pre .hljs-ln-code .hljs-ln-line { - margin-left: 6px; - padding-left: 16px + margin-left: 22px; } .entry-content pre .hljs-ln-code .hljs-ln-line:hover { diff --git a/options.php b/options.php index e8ee5e5..16b8296 100644 --- a/options.php +++ b/options.php @@ -43,11 +43,11 @@ function optionsframework_options() { // 复选框数组 $multicheck_array = array( - 'one' => __('椎名真白', 'options_framework_theme'), - 'two' => __('时崎狂三', 'options_framework_theme'), - 'three' => __('西木野真姬', 'options_framework_theme'), - 'four' => __('黑泽露比', 'options_framework_theme'), - 'five' => __('渡边曜', 'options_framework_theme') + 'one' => __('1', 'options_framework_theme'), + 'two' => __('2', 'options_framework_theme'), + 'three' => __('3', 'options_framework_theme'), + 'four' => __('4', 'options_framework_theme'), + 'five' => __('5', 'options_framework_theme') ); // 复选框默认值 @@ -59,7 +59,7 @@ function optionsframework_options() { // 背景默认值 $background_defaults = array( 'color' => '', - 'image' => '', + 'image' => 'https://view.moezx.cc/images/2018/12/23/knights-of-the-frozen-throne-8k-qa.jpg', 'repeat' => 'repeat', 'position' => 'top center', 'attachment'=>'scroll' ); @@ -130,7 +130,7 @@ function optionsframework_options() { 'name' => __("主题风格", 'akina'), 'id' => 'theme_skin', 'std' => "#FE9600", - 'desc' => __('自定义主题颜色(此功能没有优化,建议使用#FE9600)', ''), + 'desc' => __('自定义主题颜色', ''), 'type' => "color" ); @@ -263,7 +263,7 @@ function optionsframework_options() { 'name' => __('页脚信息', 'options_framework_theme'), 'desc' => __('页脚说明文字,支持HTML代码', 'options_framework_theme'), 'id' => 'footer_info', - 'std' => '© 2018', + 'std' => 'Copyright © by Mashiro All Rights Reserved.', 'type' => 'textarea'); $options[] = array( @@ -746,7 +746,7 @@ function optionsframework_options() { $options[] = array( 'name' => __('关于', 'options_framework_theme'), - 'desc' => __('Theme Sakura v'.SAKURA_VERSION.' | 主题说明 | 源码', 'options_framework_theme'), + 'desc' => __('Theme Sakura v'.SAKURA_VERSION.' | 主题说明 | 源码GitHub release', 'options_framework_theme'), 'id' => 'theme_intro', 'std' => '', 'type' => 'typography ');