refactor: use list-style-type for ul markers
This commit is contained in:
@@ -234,7 +234,7 @@ html[-data-theme-color-scheme='matrix'] {
|
|||||||
| `--spacing-theme-post-paragraph` | `calc(var(--size-theme-font) * 1.25)` |
|
| `--spacing-theme-post-paragraph` | `calc(var(--size-theme-font) * 1.25)` |
|
||||||
| `--content-theme-post-meta-divider` | `"::"` |
|
| `--content-theme-post-meta-divider` | `"::"` |
|
||||||
| `--family-theme-font` | `'JetBrains Mono'` |
|
| `--family-theme-font` | `'JetBrains Mono'` |
|
||||||
| `--list-theme-marker` | `"►"` |
|
| `--list-theme-type` | `disc` |
|
||||||
| `--width-theme-border` | `calc(var(--size-theme-font) * 0.125)` |
|
| `--width-theme-border` | `calc(var(--size-theme-font) * 0.125)` |
|
||||||
| `--width-theme-table-border` | `calc(var(--size-theme-font) * 0.0625)` |
|
| `--width-theme-table-border` | `calc(var(--size-theme-font) * 0.0625)` |
|
||||||
| `--width-theme-media-max` | `60%` |
|
| `--width-theme-media-max` | `60%` |
|
||||||
|
|||||||
+5
-15
@@ -339,22 +339,12 @@ spec:
|
|||||||
if: "$value.advanced === true"
|
if: "$value.advanced === true"
|
||||||
name: code_background
|
name: code_background
|
||||||
label: 代码背景颜色
|
label: 代码背景颜色
|
||||||
- $formkit: select
|
- $formkit: text
|
||||||
label: 无序列表标记
|
label: 无序列表样式
|
||||||
name: list_marker
|
name: list_style
|
||||||
value: ""
|
value: ""
|
||||||
help: 控制文章中无序列表项前的标记
|
placeholder: "disc"
|
||||||
options:
|
help: 等同 list-style
|
||||||
- label: "default"
|
|
||||||
value: ""
|
|
||||||
- label: "-"
|
|
||||||
value: '"-"'
|
|
||||||
- label: "*"
|
|
||||||
value: '"*"'
|
|
||||||
- label: "+"
|
|
||||||
value: '"+"'
|
|
||||||
- label: ">"
|
|
||||||
value: '">"'
|
|
||||||
- $formkit: select
|
- $formkit: select
|
||||||
label: 边线样式
|
label: 边线样式
|
||||||
name: border_style
|
name: border_style
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
--text-decoration-theme-link: none;
|
--text-decoration-theme-link: none;
|
||||||
--text-decoration-theme-post-link: var(--text-decoration-theme-link);
|
--text-decoration-theme-post-link: var(--text-decoration-theme-link);
|
||||||
--content-theme-post-meta-divider: "::";
|
--content-theme-post-meta-divider: "::";
|
||||||
--list-theme-marker: "►";
|
--list-theme-style: disc;
|
||||||
--size-theme-font: 1rem;
|
--size-theme-font: 1rem;
|
||||||
--height-theme-line: calc(var(--size-theme-font) * 1.75);
|
--height-theme-line: calc(var(--size-theme-font) * 1.75);
|
||||||
--spacing-theme-post-paragraph: calc(var(--size-theme-font) * 1.25);
|
--spacing-theme-post-paragraph: calc(var(--size-theme-font) * 1.25);
|
||||||
|
|||||||
@@ -138,14 +138,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.post ul {
|
.post ul {
|
||||||
list-style: none;
|
list-style: var(--list-theme-style);
|
||||||
}
|
|
||||||
|
|
||||||
.post ul li:not(:empty)::before {
|
|
||||||
content: var(--list-theme-marker);
|
|
||||||
position: absolute;
|
|
||||||
left: calc(var(--size-theme-font) * -1.25);
|
|
||||||
color: var(--color-theme-accent);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.post--regulation h1 {
|
.post--regulation h1 {
|
||||||
|
|||||||
@@ -43,9 +43,9 @@
|
|||||||
--spacing-theme-container-padding-mobile: [(${theme.config.style.content_padding})];
|
--spacing-theme-container-padding-mobile: [(${theme.config.style.content_padding})];
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style data-no-pjax th:if="${not #strings.isEmpty(theme.config.style.list_marker)}" th:inline="css">
|
<style data-no-pjax th:if="${not #strings.isEmpty(theme.config.style.list_style)}" th:inline="css">
|
||||||
:root {
|
:root {
|
||||||
--list-theme-marker: [(${theme.config.style.list_marker})];
|
--list-theme-style: [(${theme.config.style.list_style})];
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style data-no-pjax th:if="${not #strings.isEmpty(theme.config.style.border_width)}" th:inline="css">
|
<style data-no-pjax th:if="${not #strings.isEmpty(theme.config.style.border_width)}" th:inline="css">
|
||||||
|
|||||||
Reference in New Issue
Block a user