Merge pull request #75 from LIlGG/feat/nightmode
feat(dark): 新增黑夜模式及其他一些小玩意
This commit is contained in:
commit
1c3e1648df
26
footer.ftl
26
footer.ftl
|
@ -24,21 +24,23 @@
|
|||
<div class="footertext">
|
||||
<p class="foo-logo"
|
||||
style="background-image: url('${settings.footer_logo?default('${cdn_base_url!}/img/Sakura/images/sakura.svg')}');"></p>
|
||||
<@global.footer />
|
||||
</div>
|
||||
<div class="footer-device">
|
||||
<!-- 请尊重作者,请务必保留版权 -->
|
||||
<p style="font-family: 'Ubuntu', sans-serif;">
|
||||
<span style="color: #666666;">Powered
|
||||
<span>Powered
|
||||
<i class="fa fa-vimeo animated" style="color: #e74c3c;"></i>
|
||||
by
|
||||
<a rel="me" target="_blank" href="http://halo.run" title="一个优秀的开源博客发布应用" style="color: #000000;text-decoration:none;">Halo</a>
|
||||
<a rel="me" target="_blank" href="http://halo.run" title="一个优秀的开源博客发布应用" style="text-decoration:none;">Halo</a>
|
||||
</span>
|
||||
•
|
||||
<span style="color: #666666;">Crafted with
|
||||
<span>Crafted with
|
||||
<i class="fa fa-heart animated" style="color: #e74c3c;"></i>
|
||||
by
|
||||
<a rel="me" target="_blank" href="https://github.com/LIlGG/halo-theme-sakura" style="color: #000000;text-decoration:none;">LIlGG</a>
|
||||
<a rel="me" target="_blank" href="https://github.com/LIlGG/halo-theme-sakura" style="text-decoration:none;">LIlGG</a>
|
||||
</span>
|
||||
</p>
|
||||
<@global.footer />
|
||||
<p>
|
||||
© ${.now?string("yyyy")} ${(user.nickname)!}
|
||||
<#if settings.footer_case_number?? && settings.footer_case_number != "">
|
||||
|
@ -46,8 +48,6 @@
|
|||
</#if>
|
||||
</p>
|
||||
</div>
|
||||
<div class="footer-device">
|
||||
</div>
|
||||
</div><!-- .site-info -->
|
||||
</footer><!-- #colophon -->
|
||||
<div class="openNav">
|
||||
|
@ -154,7 +154,6 @@
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<canvas id="night-mode-cover"></canvas>
|
||||
</#if>
|
||||
<!-- theme-change end -->
|
||||
<!-- 定义全局属性 -->
|
||||
|
@ -193,21 +192,14 @@
|
|||
desc = (("settings.bg_desc_" + i)?eval)?default(""),
|
||||
url = (("settings.bg_url_" + i)?eval)?default(""),
|
||||
strategy = (("settings.bg_img_strategy_" + i)?eval)?default(""),
|
||||
isSkinSecter = (("settings.bg_skin_secter_" + i)?eval)?default(""),
|
||||
isNight = (("settings.bg_night_" + i)?eval)?default(""),
|
||||
isNightMode = (("settings.bg_night_mode_" + i)?eval)?default(""),
|
||||
opacity = (("settings.bg_opacity_" + i)?eval)?default("1") />
|
||||
isNight = (("settings.bg_night_" + i)?eval)?default("") />
|
||||
|
||||
"bg_${i}": {
|
||||
"name": "${name}",
|
||||
"desc": "${desc}",
|
||||
"url": "${url}",
|
||||
"strategy": "${strategy}",
|
||||
"isSkinSecter": "${(isSkinSecter!false)?string('true', '')}",
|
||||
"isNight": "${(isNight!true)?string('true', '')}",
|
||||
"isNightMode": "${(isNightMode!true)?string('true', '')}",
|
||||
"opacity": "${opacity}"
|
||||
|
||||
"isNight": "${(isNight!true)?string('true', '')}"
|
||||
},
|
||||
</#list>
|
||||
};
|
||||
|
|
13
header.ftl
13
header.ftl
|
@ -39,12 +39,19 @@
|
|||
<section id="main-container">
|
||||
<#if settings.head_focus!true>
|
||||
<div class="headertop ${settings.focus_img_filter!'filter-nothing'}">
|
||||
<#include "layouts/imgbox.ftl">
|
||||
<#if settings.bgvideo!false>
|
||||
<#include "layouts/imgbox.ftl">
|
||||
<!-- 背景视频 -->
|
||||
<#if settings.bgvideo!false>
|
||||
<#if settings.bgvideo_url?? && settings.bgvideo_url!= '' || settings.bgvideo_id?? && settings.bgvideo_id!= ''>
|
||||
<#include "layouts/videobox.ftl">
|
||||
</#if>
|
||||
</#if>
|
||||
</#if>
|
||||
<!-- 首页下拉箭头 -->
|
||||
<#if settings.godown!true>
|
||||
<div class="headertop-down faa-float animated" onclick="headertop_down()">
|
||||
<span><i class="fa fa-chevron-down" aria-hidden="true"></i></span>
|
||||
</div>
|
||||
</#if>
|
||||
</div>
|
||||
</#if>
|
||||
<div id="page" class="site wrapper">
|
||||
|
|
138
inc/decorate.ftl
138
inc/decorate.ftl
|
@ -103,13 +103,13 @@
|
|||
color: ${settings.theme_skin!};
|
||||
}
|
||||
}
|
||||
<#if settings.tag_cloud!true>
|
||||
@media (min-width: 860px) {
|
||||
.chip-container {
|
||||
margin-top: -60px;;
|
||||
<#if settings.tag_cloud!true>
|
||||
@media (min-width: 860px) {
|
||||
.chip-container {
|
||||
margin-top: -60px;;
|
||||
}
|
||||
}
|
||||
}
|
||||
</#if>
|
||||
</#if>
|
||||
</#if>
|
||||
<#if settings.site_custom_style??>
|
||||
${settings.site_custom_style!}
|
||||
|
@ -181,5 +181,131 @@
|
|||
color: ${(settings.journal_color_font_2)!'block'};
|
||||
}
|
||||
</#if>
|
||||
|
||||
|
||||
/*黑夜模式控件透明度*/
|
||||
body.dark .header-info,
|
||||
body.dark .top-social img {
|
||||
color:#fff;
|
||||
background:rgba(0,0,0,${(settings.dark_widget_tmd)!0.7});
|
||||
}
|
||||
|
||||
body.dark .notification,
|
||||
body.dark .the-feature.from_left_and_right .info {
|
||||
background-color: rgba(0,0,0,${(settings.dark_widget_tmd)!0.7});
|
||||
}
|
||||
|
||||
body.dark .skin-menu {
|
||||
background-color:rgba(0,0,0,${(settings.dark_widget_tmd)!0.7}) !important;
|
||||
}
|
||||
|
||||
/*黑夜模式图像亮度*/
|
||||
body.dark img,
|
||||
body.dark .highlight-wrap,
|
||||
body.dark iframe,
|
||||
body.dark .entry-content .aplayer {
|
||||
filter:brightness(${(settings.dark_imgbri)!0.7});
|
||||
}
|
||||
|
||||
/*黑夜模式主题色*/
|
||||
body.dark .ar-time i,
|
||||
body.dark span.ar-circle,
|
||||
body.dark .scrollbar,
|
||||
body.dark .butterBar-message,
|
||||
body.dark .aplayer .aplayer-list ol li:hover {
|
||||
background: ${settings.theme_dark!} !important;
|
||||
}
|
||||
|
||||
body.dark .aplayer .aplayer-list ol li.aplayer-list-light .aplayer-list-cur,
|
||||
body.dark .user-menu-option a:hover ,
|
||||
body.dark .menu-list li:hover ,
|
||||
body.dark .font-family-controls button:hover ,
|
||||
body.dark .openNav .icon,
|
||||
body.dark .openNav .icon:before ,
|
||||
body.dark .openNav .icon:after ,
|
||||
body.dark .openNav .icon:after ,
|
||||
body.dark .site-top ul li a:after {
|
||||
background-color: ${settings.theme_dark!};
|
||||
}
|
||||
body.dark #archives-temp h3,
|
||||
body.dark #moblieGoTop,
|
||||
body.dark #changskin,
|
||||
body.dark .the-feature.from_left_and_right a:hover .info p,
|
||||
body.dark .the-feature.from_left_and_right .info,
|
||||
body.dark .ins-section .ins-search-item:hover,
|
||||
body.dark .ins-section .ins-search-item:hover .ins-slug,
|
||||
body.dark .ins-section .ins-search-item:hover .ins-search-preview,
|
||||
body.dark .ins-section .ins-search-item:hover .iconfont ,
|
||||
body.dark .float-content i:hover,
|
||||
body.dark .menhera-container .emoji-item:hover ,
|
||||
body.dark .comment-respond .logged-in-as a:hover ,
|
||||
body.dark .site-top ul li a:hover ,
|
||||
body.dark i.iconfont.js-toggle-search.iconsearch:hover {
|
||||
color: ${settings.theme_dark!};
|
||||
}
|
||||
|
||||
body.dark .aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon:hover path {
|
||||
fill: ${settings.theme_dark!}
|
||||
}
|
||||
|
||||
body.dark #moblieGoTop:hover ,
|
||||
body.dark #changskin:hover {
|
||||
color: ${settings.theme_dark!};
|
||||
opacity:.8;
|
||||
}
|
||||
|
||||
body.dark .focusinfo .header-tou img {
|
||||
box-shadow: inset 0 0 10px ${settings.theme_dark!};
|
||||
}
|
||||
</style>
|
||||
|
||||
<style id="comment-style" type="text/css" media="noexist">
|
||||
.halo-comment.dark button,
|
||||
.halo-comment.dark input,
|
||||
.halo-comment.dark select,
|
||||
.halo-comment.dark textarea,
|
||||
.halo-comment.dark i.iconfont.js-toggle-search.iconsearch,
|
||||
.halo-comment.dark .comment-textarea .input-label,
|
||||
.halo-comment.dark #emotion-toggle span,
|
||||
.halo-comment.dark .emotion-box,
|
||||
.halo-comment.dark .emotion-box .motion-container .emoji-item {
|
||||
color: #eee !important;
|
||||
}
|
||||
|
||||
.halo-comment.dark .body p {
|
||||
color: #bebebe !important;
|
||||
}
|
||||
|
||||
.halo-comment.dark input[type=color]:focus,
|
||||
.halo-comment.dark input[type=date]:focus,
|
||||
.halo-comment.dark input[type=datetime-local]:focus,
|
||||
.halo-comment.dark input[type=datetime]:focus,
|
||||
.halo-comment.dark input[type=email]:focus,
|
||||
.halo-comment.dark input[type=month]:focus,
|
||||
.halo-comment.dark input[type=number]:focus,
|
||||
.halo-comment.dark input[type=password]:focus,
|
||||
.halo-comment.dark input[type=range]:focus,
|
||||
.halo-comment.dark input[type=search]:focus,
|
||||
.halo-comment.dark input[type=tel]:focus,
|
||||
.halo-comment.dark input[type=text]:focus,
|
||||
.halo-comment.dark input[type=time]:focus,
|
||||
.halo-comment.dark input[type=url]:focus,
|
||||
.halo-comment.dark input[type=week]:focus,
|
||||
.halo-comment.dark textarea:focus {
|
||||
color: #eee !important;
|
||||
background-color: #31363b !important;
|
||||
}
|
||||
|
||||
.halo-comment.dark .comment .info,
|
||||
.halo-comment.dark .comment .comment-time,
|
||||
.halo-comment.dark .comment-respond .logged-in-as,
|
||||
.halo-comment.dark .notification,
|
||||
.halo-comment.dark .comment-respond .logged-in-as a {
|
||||
color: #9499a8;
|
||||
}
|
||||
|
||||
<#if settings.comment_custom_style??>
|
||||
${settings.comment_custom_style!}
|
||||
</#if>
|
||||
</style>
|
||||
</@compress>
|
109
js/app.js
109
js/app.js
|
@ -30,6 +30,7 @@ var LIlGGAttachContext = {
|
|||
if (Poi.toc) LIlGGAttachContext.TOC(); // 文章目录
|
||||
LIlGGAttachContext.CHS(); // 代码样式
|
||||
LIlGGAttachContext.PHO(); // 图库功能
|
||||
LIlGGAttachContext.CMN(); // 评论组件
|
||||
},
|
||||
// 背景视频
|
||||
BGV: function () {
|
||||
|
@ -391,22 +392,12 @@ var LIlGGAttachContext = {
|
|||
.off("click")
|
||||
.on("click", function () {
|
||||
$(".skin-menu").toggleClass("show");
|
||||
if (themeConfig.isNight) {
|
||||
$(".changeSkin").css("background", "rgba(255,255,255,0.8)");
|
||||
} else {
|
||||
$(".changeSkin").css("background", "none");
|
||||
}
|
||||
});
|
||||
|
||||
//绑定主题子项点击事件
|
||||
Object.keys(bgConfig).forEach(function (currBg) {
|
||||
$(".skin-menu " + "#" + currBg).on("click", function () {
|
||||
changeBg(currBg, function (isNightMode) {
|
||||
// 非夜间模式才保存(暂时去除)
|
||||
// if (!isNightMode) {
|
||||
// // 保存tagClass, 方便下次查询
|
||||
// utils.setCookie("bgTagClass", currBg, 30);
|
||||
// }
|
||||
changeBg(currBg, function () {
|
||||
// 保存tagClass, 方便下次查询
|
||||
utils.setCookie("bgTagClass", currBg, 30);
|
||||
// 绑定完之后隐藏主题开关
|
||||
|
@ -430,10 +421,6 @@ var LIlGGAttachContext = {
|
|||
if (!bgAttr) return;
|
||||
themeConfig.bgAttr = bgAttr;
|
||||
|
||||
$("#night-mode-cover").css(
|
||||
"visibility",
|
||||
bgAttr["isNightMode"] ? "visible" : "hidden"
|
||||
);
|
||||
$("body").removeAttr("style");
|
||||
$("body").css(
|
||||
"background-image",
|
||||
|
@ -443,7 +430,7 @@ var LIlGGAttachContext = {
|
|||
// 回调切换主题方法
|
||||
!callback || typeof callback == "undefined" || callback == undefined
|
||||
? false
|
||||
: callback(bgAttr["isNightMode"]);
|
||||
: callback(bgAttr["isNight"]);
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -455,35 +442,25 @@ var LIlGGAttachContext = {
|
|||
return;
|
||||
}
|
||||
var bgAttr = themeConfig.bgAttr;
|
||||
|
||||
$(".blank").css(
|
||||
"background-color",
|
||||
"rgba(255,255,255," + bgAttr["opacity"] < 0
|
||||
? 0
|
||||
: bgAttr["opacity"] > 1
|
||||
? 1
|
||||
: bgAttr["opacity"] + ")"
|
||||
);
|
||||
if (bgAttr["isSkinSecter"]) {
|
||||
$(".pattern-center")
|
||||
.removeClass("pattern-center")
|
||||
.addClass("pattern-center-sakura");
|
||||
$(".headertop-bar")
|
||||
.removeClass("headertop-bar")
|
||||
.addClass("headertop-bar-sakura");
|
||||
} else {
|
||||
$(".pattern-center-sakura")
|
||||
.removeClass("pattern-center-sakura")
|
||||
.addClass("pattern-center");
|
||||
$(".headertop-bar-sakura")
|
||||
.removeClass("headertop-bar-sakura")
|
||||
.addClass("headertop-bar");
|
||||
}
|
||||
|
||||
// 如果为黑夜模式,也会影响到评论组件
|
||||
var comments = document.getElementsByTagName("halo-comment");
|
||||
// 黑夜模式下
|
||||
if (bgAttr["isNight"]) {
|
||||
$(".changeSkin-gear, .toc").css("background", "rgba(255,255,255,0.8)");
|
||||
$("html").css("background", "#31363b");
|
||||
$(".site-content").css("background-color", "#fff");
|
||||
$("body").addClass("dark");
|
||||
for(var i = 0; i < comments.length; i++) {
|
||||
var shadowDom = comments[i].shadowRoot.getElementById("halo-comment");
|
||||
$(shadowDom).addClass("dark")
|
||||
}
|
||||
} else {
|
||||
$(".changeSkin-gear, .toc").css("background", "none");
|
||||
$("html").css("background", "unset");
|
||||
$("body").removeClass("dark");
|
||||
$(".site-content").css("background-color", "rgba(255, 255, 255, .8)");
|
||||
for(var i = 0; i < comments.length; i++) {
|
||||
var shadowDom = comments[i].shadowRoot.getElementById("halo-comment");
|
||||
$(shadowDom).removeClass("dark")
|
||||
}
|
||||
}
|
||||
|
||||
switch (bgAttr["strategy"]) {
|
||||
|
@ -721,6 +698,17 @@ var LIlGGAttachContext = {
|
|||
}
|
||||
};
|
||||
},
|
||||
// 评论组件
|
||||
CMN: function() {
|
||||
// 复制一个css副本
|
||||
var commentStyle = $("#comment-style").clone();
|
||||
commentStyle.attr("media", "all");
|
||||
var comments = $("halo-comment");
|
||||
for(var i = 0; i < comments.length; i++) {
|
||||
// 注入外部css
|
||||
comments[i].shadowRoot.appendChild(commentStyle[0]);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// 图片错误类型
|
||||
|
@ -951,7 +939,7 @@ var home = location.href,
|
|||
})(),
|
||||
name: {
|
||||
textStyle: {
|
||||
color: "black",
|
||||
color: $(".dark").length > 0 ? "#bebebe" : "black"
|
||||
},
|
||||
},
|
||||
center: ["50%", "60%"],
|
||||
|
@ -1076,7 +1064,9 @@ var home = location.href,
|
|||
|
||||
// Ajax加载文章/说说
|
||||
XLS: function () {
|
||||
$("body").on("click", "#pagination a", function () {
|
||||
var $body = (window.opera) ? (document.compatMode == "CSS1Compat" ? $('html') : $('body')) : $('html,body');
|
||||
$body.on("click", "#pagination a", function () {
|
||||
var tempScrollTop = $(window).scrollTop();
|
||||
$(this).addClass("loading").text("");
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
|
@ -1093,8 +1083,9 @@ var home = location.href,
|
|||
LIlGGAttachContext.PLSA();
|
||||
if (nextHref != undefined) {
|
||||
$("#pagination a").attr("href", nextHref);
|
||||
// 加载完成不改变位置
|
||||
$(window).scrollTop(tempScrollTop);
|
||||
} else {
|
||||
// If there is no link, that is the last page, then remove the navigation
|
||||
$("#pagination").html("<span>没有更多文章了</span>");
|
||||
}
|
||||
},
|
||||
|
@ -1104,8 +1095,9 @@ var home = location.href,
|
|||
/**
|
||||
* 说说
|
||||
*/
|
||||
$("body").on("click", "#journals-pagination a", function () {
|
||||
$body.on("click", "#journals-pagination a", function () {
|
||||
$(this).addClass("loading").text("");
|
||||
var tempScrollTop = $(window).scrollTop();
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: $(this).attr("href") + "#main",
|
||||
|
@ -1123,6 +1115,8 @@ var home = location.href,
|
|||
LIlGGAttachContext.SS()();
|
||||
if (nextHref != undefined) {
|
||||
$("#journals-pagination a").attr("href", nextHref);
|
||||
// 加载完成不改变位置
|
||||
$(window).scrollTop(tempScrollTop);
|
||||
} else {
|
||||
$("#journals-pagination a").remove();
|
||||
}
|
||||
|
@ -1194,9 +1188,7 @@ $(function () {
|
|||
if (Poi.toc) LIlGGAttachContext.TOC(); // 文章目录
|
||||
LIlGGAttachContext.CHS(); // 代码类Mac样式、高亮
|
||||
LIlGGAttachContext.MGT(); // 移动端回到顶部
|
||||
if (Poi.photosStyle == "packery") {
|
||||
supplement();
|
||||
}
|
||||
if (Poi.photosStyle == "packery") supplement();
|
||||
LIlGGAttachContext.PHO(); // 图库功能
|
||||
// 复制提示
|
||||
if (Poi.copyMonitor) LIlGGAttachContext.CPY();
|
||||
|
@ -1204,10 +1196,10 @@ $(function () {
|
|||
lazyload(undefined, {
|
||||
rootMargin: "150px",
|
||||
});
|
||||
|
||||
if (Poi.pjax) {
|
||||
pjaxFun();
|
||||
}
|
||||
// 评论组件
|
||||
LIlGGAttachContext.CMN();
|
||||
// PJAX
|
||||
if (Poi.pjax) pjaxFun();
|
||||
// 全局提示组件
|
||||
if (Poi.openToast && window.outerWidth > 860) {
|
||||
toast = new Toast();
|
||||
|
@ -1253,6 +1245,15 @@ $(function () {
|
|||
);
|
||||
});
|
||||
|
||||
/* 首页下拉箭头 */
|
||||
function headertop_down() {
|
||||
var coverOffset = $('#content').offset().top;
|
||||
$('html,body').animate({
|
||||
scrollTop: coverOffset
|
||||
},
|
||||
600);
|
||||
}
|
||||
|
||||
var supplement = function () {
|
||||
var PackeryMode = Isotope.LayoutMode.modes.packery;
|
||||
var __resetLayout = PackeryMode.prototype._resetLayout;
|
||||
|
|
File diff suppressed because one or more lines are too long
298
settings.yaml
298
settings.yaml
|
@ -173,6 +173,17 @@ mainScreen:
|
|||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
focus_godown:
|
||||
name: focus_godown
|
||||
label: 下拉箭头
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: true
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
focus_img_1:
|
||||
name: focus_img_1
|
||||
label: 背景图
|
||||
|
@ -469,6 +480,20 @@ post:
|
|||
label: Github
|
||||
- value: Tomorrow Night
|
||||
label: Tomorrow Night
|
||||
comment:
|
||||
label: 评论组件
|
||||
items:
|
||||
comment_mode:
|
||||
name: comment_mode
|
||||
label: 评论模块js
|
||||
type: text
|
||||
default: "https://cdn.jsdelivr.net/gh/LIlGG/halo-comment-sakura/dist/halo-comment.min.js"
|
||||
description: "评论js模块,如果当前为空,则获取评论设置中的模块js"
|
||||
comment_custom_style:
|
||||
name: comment_custom_style
|
||||
label: 自定义评论组件CSS样式
|
||||
type: textarea
|
||||
description: '确保样式以.halo-comment开头,防止污染其他css。如果属性不生效,则加上!important提升优先度'
|
||||
tagAndCategory:
|
||||
label: 标签及分类页
|
||||
items:
|
||||
|
@ -677,12 +702,27 @@ theme:
|
|||
type: radio
|
||||
data-type: bool
|
||||
default: true
|
||||
description: '每个主题的样式可以自定义,但一般情况下使用默认的足够了【务必保证第一项存在】'
|
||||
description: '所有主题的样式可以自定义,但一般情况下使用默认的足够了【务必保证第一项存在】'
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
theme_dark:
|
||||
name: theme_dark
|
||||
label: 黑夜模式主题色
|
||||
type: color
|
||||
default: '#FE9600'
|
||||
dark_imgbri:
|
||||
name: dark_imgbri
|
||||
label: 黑夜模式图像亮度
|
||||
type: number
|
||||
default: 0.7
|
||||
dark_widget_tmd:
|
||||
name: dark_widget_tmd
|
||||
label: 黑夜模式控件透明度
|
||||
type: number
|
||||
default: 0.7
|
||||
bg_name_0:
|
||||
name: bg_name_0
|
||||
label: 主题一 名称
|
||||
|
@ -720,21 +760,9 @@ theme:
|
|||
type: text
|
||||
default: 'fa fa-television'
|
||||
description: '图标可能无法立即生效'
|
||||
bg_skin_secter_0:
|
||||
name: bg_skin_secter_0
|
||||
label: 背景缩进
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
description: '将文章等背景图缩进,用于展示背景图'
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_night_0:
|
||||
name: bg_night_0
|
||||
label: 夜晚模式
|
||||
label: 黑夜模式
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
|
@ -743,23 +771,6 @@ theme:
|
|||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_night_mode_0:
|
||||
name: bg_night_mode_0
|
||||
label: 夜晚模式遮罩
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_opacity_0:
|
||||
name: bg_opacity_0
|
||||
label: 遮罩透明度
|
||||
type: text
|
||||
default: "0"
|
||||
description: '填写0-1之间的数,小于0按0算 大于1按1算'
|
||||
bg_name_1:
|
||||
name: bg_name_1
|
||||
label: 主题二 名称
|
||||
|
@ -797,21 +808,9 @@ theme:
|
|||
type: text
|
||||
default: 'iconfont icon-sakura'
|
||||
description: '图标可能无法立即生效'
|
||||
bg_skin_secter_1:
|
||||
name: bg_skin_secter_1
|
||||
label: 背景缩进
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: true
|
||||
description: '将文章等背景图缩进,用于展示背景图'
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_night_1:
|
||||
name: bg_night_1
|
||||
label: 夜晚模式
|
||||
label: 黑夜模式
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
|
@ -820,23 +819,6 @@ theme:
|
|||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_night_mode_1:
|
||||
name: bg_night_mode_1
|
||||
label: 夜晚模式遮罩
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_opacity_1:
|
||||
name: bg_opacity_1
|
||||
label: 遮罩透明度
|
||||
type: text
|
||||
default: "1"
|
||||
description: '填写0-1之间的数,小于0按0算 大于1按1算'
|
||||
bg_name_2:
|
||||
name: bg_name_2
|
||||
label: 主题三 名称
|
||||
|
@ -874,21 +856,9 @@ theme:
|
|||
type: text
|
||||
default: 'fa fa-slack'
|
||||
description: '图标可能无法立即生效'
|
||||
bg_skin_secter_2:
|
||||
name: bg_skin_secter_2
|
||||
label: 背景缩进
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: true
|
||||
description: '将文章等背景图缩进,用于展示背景图'
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_night_2:
|
||||
name: bg_night_2
|
||||
label: 夜晚模式
|
||||
label: 黑夜模式
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
|
@ -897,23 +867,6 @@ theme:
|
|||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_night_mode_2:
|
||||
name: bg_night_mode_2
|
||||
label: 夜晚模式遮罩
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_opacity_2:
|
||||
name: bg_opacity_2
|
||||
label: 遮罩透明度
|
||||
type: text
|
||||
default: "1"
|
||||
description: '填写0-1之间的数,小于0按0算 大于1按1算'
|
||||
bg_name_3:
|
||||
name: bg_name_3
|
||||
label: 主题四 名称
|
||||
|
@ -951,21 +904,9 @@ theme:
|
|||
type: text
|
||||
default: 'iconfont icon-dots'
|
||||
description: '图标可能无法立即生效'
|
||||
bg_skin_secter_3:
|
||||
name: bg_skin_secter_3
|
||||
label: 背景缩进
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: true
|
||||
description: '将文章等背景图缩进,用于展示背景图'
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_night_3:
|
||||
name: bg_night_3
|
||||
label: 夜晚模式
|
||||
label: 黑夜模式
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
|
@ -974,23 +915,6 @@ theme:
|
|||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_night_mode_3:
|
||||
name: bg_night_mode_3
|
||||
label: 夜晚模式遮罩
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_opacity_3:
|
||||
name: bg_opacity_3
|
||||
label: 遮罩透明度
|
||||
type: text
|
||||
default: "1"
|
||||
description: '填写0-1之间的数,小于0按0算 大于1按1算'
|
||||
bg_name_4:
|
||||
name: bg_name_4
|
||||
label: 主题五 名称
|
||||
|
@ -1028,21 +952,9 @@ theme:
|
|||
type: text
|
||||
default: 'fa fa-optin-monster'
|
||||
description: '图标可能无法立即生效'
|
||||
bg_skin_secter_4:
|
||||
name: bg_skin_secter_4
|
||||
label: 背景缩进
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: true
|
||||
description: '将文章等背景图缩进,用于展示背景图'
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_night_4:
|
||||
name: bg_night_4
|
||||
label: 夜晚模式
|
||||
label: 黑夜模式
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
|
@ -1051,23 +963,6 @@ theme:
|
|||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_night_mode_4:
|
||||
name: bg_night_mode_4
|
||||
label: 夜晚模式遮罩
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_opacity_4:
|
||||
name: bg_opacity_4
|
||||
label: 遮罩透明度
|
||||
type: text
|
||||
default: "1"
|
||||
description: '填写0-1之间的数,小于0按0算 大于1按1算'
|
||||
bg_name_5:
|
||||
name: bg_name_5
|
||||
label: 主题六 名称
|
||||
|
@ -1105,21 +1000,9 @@ theme:
|
|||
type: text
|
||||
default: 'iconfont icon-pixiv'
|
||||
description: '图标可能无法立即生效'
|
||||
bg_skin_secter_5:
|
||||
name: bg_skin_secter_5
|
||||
label: 背景缩进
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: true
|
||||
description: '将文章等背景图缩进,用于展示背景图'
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_night_5:
|
||||
name: bg_night_5
|
||||
label: 夜晚模式
|
||||
label: 黑夜模式
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
|
@ -1128,23 +1011,6 @@ theme:
|
|||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_night_mode_5:
|
||||
name: bg_night_mode_5
|
||||
label: 夜晚模式遮罩
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_opacity_5:
|
||||
name: bg_opacity_5
|
||||
label: 遮罩透明度
|
||||
type: text
|
||||
default: "1"
|
||||
description: '填写0-1之间的数,小于0按0算 大于1按1算'
|
||||
bg_name_6:
|
||||
name: bg_name_6
|
||||
label: 主题七 名称
|
||||
|
@ -1182,21 +1048,9 @@ theme:
|
|||
type: text
|
||||
default: 'iconfont icon-bing'
|
||||
description: '图标可能无法立即生效'
|
||||
bg_skin_secter_6:
|
||||
name: bg_skin_secter_6
|
||||
label: 背景缩进
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: true
|
||||
description: '将文章等背景图缩进,用于展示背景图'
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_night_6:
|
||||
name: bg_night_6
|
||||
label: 夜晚模式
|
||||
label: 黑夜模式
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: true
|
||||
|
@ -1205,23 +1059,6 @@ theme:
|
|||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_night_mode_6:
|
||||
name: bg_night_mode_6
|
||||
label: 夜晚模式遮罩
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: false
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_opacity_6:
|
||||
name: bg_opacity_6
|
||||
label: 遮罩透明度
|
||||
type: text
|
||||
default: "1"
|
||||
description: '填写0-1之间的数,小于0按0算 大于1按1算'
|
||||
bg_name_7:
|
||||
name: bg_name_7
|
||||
label: 主题八 名称
|
||||
|
@ -1238,7 +1075,7 @@ theme:
|
|||
name: bg_url_7
|
||||
label: 主题八 图片链接
|
||||
type: attachment
|
||||
default: 'https://view.lixingyong.com/images/2020/07/23/me.png'
|
||||
default: ''
|
||||
bg_img_strategy_7:
|
||||
nmae: bg_img_strategy_7
|
||||
label: 主题八 图片处理策略
|
||||
|
@ -1259,21 +1096,9 @@ theme:
|
|||
type: text
|
||||
default: 'fa fa-moon-o'
|
||||
description: '图标可能无法立即生效'
|
||||
bg_skin_secter_7:
|
||||
name: bg_skin_secter_7
|
||||
label: 背景缩进
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: true
|
||||
description: '将文章等背景图缩进,用于展示背景图'
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_night_7:
|
||||
name: bg_night_7
|
||||
label: 夜晚模式
|
||||
label: 黑夜模式
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: true
|
||||
|
@ -1282,23 +1107,6 @@ theme:
|
|||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_night_mode_7:
|
||||
name: bg_night_mode_7
|
||||
label: 夜晚模式遮罩
|
||||
type: radio
|
||||
data-type: bool
|
||||
default: true
|
||||
options:
|
||||
- value: true
|
||||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
bg_opacity_7:
|
||||
name: bg_opacity_7
|
||||
label: 遮罩透明度
|
||||
type: text
|
||||
default: "0.8"
|
||||
description: '填写0-1之间的数,小于0按0算 大于1按1算'
|
||||
live2d:
|
||||
label: 看板娘
|
||||
items:
|
||||
|
@ -1789,12 +1597,6 @@ others:
|
|||
label: 开启
|
||||
- value: false
|
||||
label: 关闭
|
||||
comment_mode:
|
||||
name: comment_mode
|
||||
label: 评论模块js
|
||||
type: text
|
||||
default: "https://cdn.jsdelivr.net/gh/LIlGG/halo-comment-sakura/dist/halo-comment.min.js"
|
||||
description: "评论js模块,如果当前为空,则获取评论设置中的模块js"
|
||||
reply_mail_img:
|
||||
name: reply_mail_img
|
||||
label: 邮件回复模块图片
|
||||
|
|
2156
styles/style.css
2156
styles/style.css
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -7,5 +7,5 @@ description: halo版本的樱花🌸主题
|
|||
logo:
|
||||
website: https://github.com/LIlGG/halo-theme-sakura
|
||||
repo: https://github.com/LIlGG/halo-theme-sakura
|
||||
version: 1.2.0-bate.1
|
||||
version: 1.2.0-bate.3
|
||||
require: 1.3.0
|
Loading…
Reference in New Issue