👽 Anatole主题可自定义样式

pull/21/head
ruibaby 2018-07-06 11:42:49 +08:00
parent c6915903b2
commit 9b6314c040
3 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,4 @@
<@compress single_line=true>
<link type="text/css" rel="stylesheet" href="/static/plugins/loaders/loaders.css">
<style>
* {
@ -293,7 +294,7 @@
var author = $("#commentAuthor");
var content = $("#commentContent");
var email = $("#commentAuthorEmail");
var url = $("#commentAuthorUrl")
var url = $("#commentAuthorUrl");
if (author.val() == '' || content.val() == '') {
$(".native-message").html("<span style='color:red'>请输入必填项!</span>");
$(".native-message").fadeIn(1000);
@ -357,4 +358,5 @@
var os = uua.os.name + ' ' + uua.os.version;
return '<span class="ua">'+browser+'</span><span class="ua">'+os+'</span>';
}
</script>
</script>
</@compress>

View File

@ -18,13 +18,14 @@
<link rel="stylesheet" href="/anatole/source/css/blog_basic.min.css?version=88107691fe">
<link href="/anatole/source/css/style.min.css" type="text/css" rel="stylesheet" />
<link rel="alternate" type="application/rss+xml" title="atom 1.0" href="/feed.xml">
<#if options.anatole_style_post_title_lower?default("true") == "false">
<style>
<#if options.anatole_style_post_title_lower?default("true") == "false">
.post .post-title h3 {
text-transform: none;
}
</#if>
${options.anatole_style_self?if_exists}
</style>
</#if>
</head>
<body>
</#macro>

View File

@ -177,6 +177,12 @@
<input type="text" class="form-control" id="anatoleStyleGoogleColor" name="anatole_style_google_color" value="${options.anatole_style_google_color?default("#fff")}" >
</div>
</div>
<div class="form-group">
<label for="anatoleStyleSelf" class="col-sm-4 control-label">自定义样式:</label>
<div class="col-sm-8">
<textarea class="form-control" rows="3" id="anatoleStyleSelf" name="anatole_style_self" style="resize: none">${options.anatole_style_self?if_exists}</textarea>
</div>
</div>
</div>
<div class="box-footer">
<button type="button" class="btn btn-primary btn-sm pull-right" onclick="saveThemeOptions('anatoleStyleOptions')">保存设置</button>