mirror of
https://github.com/subframe7536/obsidian-theme-maple.git
synced 2026-07-22 03:30:24 +00:00
fix: tag
This commit is contained in:
parent
c333b2eee3
commit
ae730cd19c
5 changed files with 20 additions and 4 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 72 KiB |
|
|
@ -285,7 +285,7 @@ body .markdown-rendered pre {
|
|||
color: var(--code-value);
|
||||
}
|
||||
|
||||
:is(.token:is(.selector, .attr-name, .string, .char, .builtin, .inserted), .cm-qualifier, .cm-string:not(.cm-url), .cm-string-2, .cm-meta) {
|
||||
:is(.token:is(.selector, .attr-name, .string, .char, .builtin, .inserted), .cm-qualifier, .cm-string:not(.cm-url), .cm-string-2, .cm-meta:not(.cm-hashtag)) {
|
||||
color: var(--code-string);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
/* ====== 标签tag ====== */
|
||||
|
||||
body {
|
||||
--tag-color: var(--accent-active);
|
||||
}
|
||||
|
||||
.HyperMD-header .cm-hashtag {
|
||||
font-size: var(--tag-size) !important;
|
||||
}
|
||||
|
|
@ -16,6 +20,10 @@ body.tag-click-to-edit .cm-line span.cm-hashtag:not(.cm-formatting) {
|
|||
pointer-events: none;
|
||||
}
|
||||
|
||||
body.tag-plain {
|
||||
--tag-background: transparent;
|
||||
}
|
||||
|
||||
body.tag-outline .cm-hashtag {
|
||||
border-color: var(--setting-tag-outline, var(--accent-inactive)) !important;
|
||||
border-width: var(--size-2-1) !important;
|
||||
|
|
|
|||
|
|
@ -766,7 +766,7 @@ settings:
|
|||
title.zh: 标签样式
|
||||
type: class-select
|
||||
allowEmpty: false
|
||||
default: tag-plain
|
||||
default: tag-outline
|
||||
options:
|
||||
- label: plain
|
||||
value: tag-plain
|
||||
|
|
|
|||
12
theme.css
12
theme.css
|
|
@ -1301,7 +1301,7 @@ settings:
|
|||
title.zh: 标签样式
|
||||
type: class-select
|
||||
allowEmpty: false
|
||||
default: tag-plain
|
||||
default: tag-outline
|
||||
options:
|
||||
- label: plain
|
||||
value: tag-plain
|
||||
|
|
@ -2218,7 +2218,7 @@ body .markdown-rendered pre .copy-code-button:hover {
|
|||
.code-theme :is(.markdown-rendered, .markdown-source-view.mod-cm6) :is(.token:is(.boolean, .number), .cm-number) {
|
||||
color: var(--code-value);
|
||||
}
|
||||
.code-theme :is(.markdown-rendered, .markdown-source-view.mod-cm6) :is(.token:is(.selector, .attr-name, .string, .char, .builtin, .inserted), .cm-qualifier, .cm-string:not(.cm-url), .cm-string-2, .cm-meta) {
|
||||
.code-theme :is(.markdown-rendered, .markdown-source-view.mod-cm6) :is(.token:is(.selector, .attr-name, .string, .char, .builtin, .inserted), .cm-qualifier, .cm-string:not(.cm-url), .cm-string-2, .cm-meta:not(.cm-hashtag)) {
|
||||
color: var(--code-string);
|
||||
}
|
||||
.code-theme :is(.markdown-rendered, .markdown-source-view.mod-cm6) :is(.token:is(.entity, .parameter, .property, .property-access, .url, .variable), :is(.language-css, .style) .token.string, .cm-def, .cm-number + .cm-variable) {
|
||||
|
|
@ -2944,6 +2944,10 @@ body.table-colorful table th:last-child {
|
|||
}
|
||||
|
||||
/* ====== 标签tag ====== */
|
||||
body {
|
||||
--tag-color: var(--accent-active);
|
||||
}
|
||||
|
||||
.HyperMD-header .cm-hashtag {
|
||||
font-size: var(--tag-size) !important;
|
||||
}
|
||||
|
|
@ -2960,6 +2964,10 @@ body.tag-click-to-edit .cm-line span.cm-hashtag:not(.cm-formatting) {
|
|||
pointer-events: none;
|
||||
}
|
||||
|
||||
body.tag-plain {
|
||||
--tag-background: transparent;
|
||||
}
|
||||
|
||||
body.tag-outline .cm-hashtag {
|
||||
border-color: var(--setting-tag-outline, var(--accent-inactive)) !important;
|
||||
border-width: var(--size-2-1) !important;
|
||||
|
|
|
|||
Loading…
Reference in a new issue