refactor:Initialize Theme

This commit is contained in:
jiewenhuang 2023-08-03 20:12:05 +08:00
parent 861b85642a
commit 0181dc6a98
2 changed files with 5 additions and 5 deletions

View File

@ -61,11 +61,11 @@ spec:
label: 背景图(浅色模式)
help: "设置暗黑模式下的背景图建议webp格式为空则只显示默认背景色"
value: ""
- $formkit: text
- $formkit: number
name: content_max_width
label: 内容区最大宽度
value: "1320px"
help: "限制内容区域的宽度像素或百分比默认1320px"
value: 1320
help: "限制内容区域的宽度像素或百分比默认1320,单位px"
- $formkit: select
name: enable_random_img_api
id: enable_random_img_api

View File

@ -30,9 +30,9 @@
<link rel="stylesheet" th:href="${theme.config.custom.iconfont}">
</th:block>
<link rel="preload stylesheet" as="style" th:href="@{/assets/css/min/theme.min.css}">
<style th:inline="javascript">
<style th:inline="text">
#Joe .joe_container {
max-width: [[${theme.config.basic.content_max_width ?: '1320px'}]];
max-width: [[${theme.config.basic.content_max_width+'px'}]];
}
</style>
<link rel="stylesheet" th:href="@{/assets/lib/qmsg/qmsg.css}">