mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
💄
This commit is contained in:
parent
8e8a9f3c4d
commit
6addb73607
2 changed files with 8 additions and 2 deletions
|
|
@ -15,6 +15,11 @@
|
||||||
overflow: inherit;
|
overflow: inherit;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
|
||||||
|
&--side {
|
||||||
|
margin-right: 14px;
|
||||||
|
margin-left: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
&:after {
|
&:after {
|
||||||
border: 1px solid var(--b3-theme-surface-lighter);
|
border: 1px solid var(--b3-theme-surface-lighter);
|
||||||
box-shadow: var(--b3-point-shadow);
|
box-shadow: var(--b3-point-shadow);
|
||||||
|
|
|
||||||
|
|
@ -139,12 +139,13 @@ const genSnippet = (options: ISnippet) => {
|
||||||
return `<div data-id="${options.id || ""}" data-type="${options.type}">
|
return `<div data-id="${options.id || ""}" data-type="${options.type}">
|
||||||
<div class="fn__flex">
|
<div class="fn__flex">
|
||||||
<input type="text" class="fn__size200 b3-text-field" placeholder="${window.siyuan.languages.title}">
|
<input type="text" class="fn__size200 b3-text-field" placeholder="${window.siyuan.languages.title}">
|
||||||
<div class="fn__flex-1 fn__space"></div>
|
<div class="fn__flex-1"></div>
|
||||||
<input data-type="snippet" class="b3-switch fn__flex-center" type="checkbox"${options.enabled ? " checked" : ""}>
|
|
||||||
<div class="fn__space"></div>
|
<div class="fn__space"></div>
|
||||||
<span aria-label="${window.siyuan.languages.remove}" class="b3-tooltips b3-tooltips__sw block__icon block__icon--show">
|
<span aria-label="${window.siyuan.languages.remove}" class="b3-tooltips b3-tooltips__sw block__icon block__icon--show">
|
||||||
<svg><use xlink:href="#iconTrashcan"></use></svg>
|
<svg><use xlink:href="#iconTrashcan"></use></svg>
|
||||||
</span>
|
</span>
|
||||||
|
<div class="fn__space"></div>
|
||||||
|
<input data-type="snippet" class="b3-switch b3-switch--side fn__flex-center" type="checkbox"${options.enabled ? " checked" : ""}>
|
||||||
</div>
|
</div>
|
||||||
<div class="fn__hr"></div>
|
<div class="fn__hr"></div>
|
||||||
<textarea class="fn__block b3-text-field" placeholder="${window.siyuan.languages.codeSnippet}" style="resize: vertical;font-family:var(--b3-font-family-code)" spellcheck="false"></textarea>
|
<textarea class="fn__block b3-text-field" placeholder="${window.siyuan.languages.codeSnippet}" style="resize: vertical;font-family:var(--b3-font-family-code)" spellcheck="false"></textarea>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue