refactor:Initialize Theme
This commit is contained in:
parent
861b85642a
commit
0181dc6a98
|
@ -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
|
||||
|
|
|
@ -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}">
|
||||
|
|
Loading…
Reference in New Issue