Skip to content

Commit

Permalink
fix: version number & setting
Browse files Browse the repository at this point in the history
  • Loading branch information
subframe7536 committed Feb 15, 2023
1 parent de7a55d commit 2257fe8
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 11 deletions.
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Maple",
"version": "1.0.0",
"minAppVersion": "1.0.0",
"version": "0.3.4",
"minAppVersion": "0.3.4",
"author": "subframe7536",
"authorUrl": "https://github.com/subframe7536"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "maple",
"version": "1.0.0",
"version": "0.3.4",
"description": "Maple —— A Obsidian Theme",
"scripts": {
"dev": "sass --watch snippets:vault/.obsidian/snippets --no-source-map --update",
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion snippets/css/style-setting.css
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ settings:
title: set modal header title
title.zh: 设置面板标题
type: variable-text
default: "'maple 1.0.0'"
default: "'maple 0.3.4'"
-
id: setting-group-title
title: add style for left navigation group title
Expand Down Expand Up @@ -983,6 +983,14 @@ settings:
title.zh: 在 预览模式 开启代码块背景
description.zh: 需要安装程序版本 >= 1.1.9
type: class-toggle
-
id: setting-code-bg
title: custom codeblock background in preview mode
description: need install version >= 1.1.9, image is supported(eg. 'url("/your/image/uri")'), it can be all the css value that supported by background-image
title.zh: 修改 预览模式 代码块背景
description.zh: 需要安装程序版本 >= 1.1.9,支持图片('url("图片地址")'),可以是 css background-image 支持的所有的值
type: variable-text
default: "''"
-
id: setting-code-language-color
title: language indicator color
Expand Down
2 changes: 1 addition & 1 deletion snippets/workspace/modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ body.modal-header .modal-container {
container-type: inline-size;

&::before {
content: var(--setting-header-title, 'maple 1.0.0');
content: var(--setting-header-title, 'maple 0.3.4');
position: absolute;
left: 50%;
top: var(--size-4-6);
Expand Down
17 changes: 12 additions & 5 deletions theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ settings:
title: set modal header title
title.zh: 设置面板标题
type: variable-text
default: "'maple 1.0.0'"
default: "'maple 0.3.4'"
-
id: setting-group-title
title: add style for left navigation group title
Expand Down Expand Up @@ -984,6 +984,14 @@ settings:
title.zh: 在 预览模式 开启代码块背景
description.zh: 需要安装程序版本 >= 1.1.9
type: class-toggle
-
id: setting-code-bg
title: custom codeblock background in preview mode
description: need install version >= 1.1.9, image is supported(eg. 'url("/your/image/uri")'), it can be all the css value that supported by background-image
title.zh: 修改 预览模式 代码块背景
description.zh: 需要安装程序版本 >= 1.1.9,支持图片('url("图片地址")'),可以是 css background-image 支持的所有的值
type: variable-text
default: "''"
-
id: setting-code-language-color
title: language indicator color
Expand Down Expand Up @@ -2250,7 +2258,7 @@ body.quote-theme.quote-mark .markdown-rendered blockquote::before {

/* 填补当前行的空隙 */
body:not(.line-active-disable) .markdown-source-view.mod-cm6 .HyperMD-quote:not(.HyperMD-callout)::after,
body:not(.line-active-disable) .markdown-source-view.mod-cm6 .HyperMD-quote:not(.HyperMD-callout) .cm-quote.cm-formatting::after {
body:not(.line-active-disable) .markdown-source-view.mod-cm6 .HyperMD-quote:not(.HyperMD-callout) .cm-quote.cm-formatting-quote-1::after {
content: "";
position: absolute;
display: inline-block;
Expand All @@ -2263,14 +2271,13 @@ body:not(.line-active-disable) .markdown-source-view.mod-cm6 .HyperMD-quote:not(
body:not(.line-active-disable) .markdown-source-view.mod-cm6 .HyperMD-quote:not(.HyperMD-callout)::after {
left: 0;
}
body:not(.line-active-disable) .markdown-source-view.mod-cm6 .HyperMD-quote:not(.HyperMD-callout) .cm-quote.cm-formatting::after {
body:not(.line-active-disable) .markdown-source-view.mod-cm6 .HyperMD-quote:not(.HyperMD-callout) .cm-quote.cm-formatting-quote-1::after {
right: 0;
}
body:not(.line-active-disable) .markdown-source-view.mod-cm6 .HyperMD-quote:not(.HyperMD-callout).cm-active + .HyperMD-quote:not(.HyperMD-callout)::after, body:not(.line-active-disable) .markdown-source-view.mod-cm6 .HyperMD-quote:not(.HyperMD-callout).cm-active + .HyperMD-quote:not(.HyperMD-callout) .cm-quote.cm-formatting::after {
background-color: var(--active-line);
}

/* fix bugs, corner fill cause wrap */
/* ====== 表格 ====== */
:is(body, .print .markdown-rendered) {
--table-radius: var(--radius-l);
Expand Down Expand Up @@ -3788,7 +3795,7 @@ body.modal-header .modal-container .mod-settings {
container-type: inline-size;
}
body.modal-header .modal-container .mod-settings::before {
content: var(--setting-header-title, "maple 1.0.0");
content: var(--setting-header-title, "maple 0.3.4");
position: absolute;
left: 50%;
top: var(--size-4-6);
Expand Down

0 comments on commit 2257fe8

Please sign in to comment.