mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-21 15:56:10 +01:00
This commit is contained in:
parent
32fb7e1882
commit
21d22ba847
6 changed files with 16 additions and 4 deletions
|
|
@ -1,5 +1,8 @@
|
|||
document.body.insertAdjacentHTML('afterBegin', `<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
<symbol id="iconReplace" viewBox="0 0 32 32">
|
||||
<path d="M1.177 11.059q0.75-4.412 4.213-7.235t7.963-2.824q2.868 0 5.36 1.323t4.346 3.573v-4.897h2.647v10.059h-10.059v-2.647h5.912q-1.412-2.118-3.552-3.441t-4.654-1.323q-3.397 0-6.066 2.051t-3.419 5.36zM29.103 31l-8.118-8.118q-1.632 1.368-3.573 2.073t-4.059 0.706q-2.868 0-5.404-1.191t-4.301-3.441v4.677h-2.647v-10.059h10.059v2.647h-6.132q1.456 2.118 3.662 3.419t4.765 1.302q3.309 0 5.89-2.073t3.419-5.294h2.691q-0.221 1.5-0.86 2.846t-1.61 2.493l8.118 8.118z"></path>
|
||||
</symbol>
|
||||
<symbol id="iconLtr" viewBox="0 0 32 32">
|
||||
<path d="M12.4 20.8v-8.8q-2.64 0-4.52-1.72t-1.88-4.28q0-2.52 1.74-4.26t4.26-1.74h11.2v2.4h-3.6v18.4h-2.4v-18.4h-2.4v18.4zM24.56 32l-1.68-1.68 2.96-2.96h-24.24v-2.4h24.24l-2.96-2.96 1.68-1.68 5.84 5.84zM12.4 9.6v-7.2q-1.68 0-2.84 0.96t-1.16 2.64 1.16 2.64 2.84 0.96z"></path>
|
||||
</symbol>
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@
|
|||
"name": "ant",
|
||||
"author": "Vanessa",
|
||||
"url": "https://github.com/Vanessa219",
|
||||
"version": "1.7.0"
|
||||
"version": "1.8.0"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,12 @@
|
|||
<body>
|
||||
<h2>SiYuan</h2>
|
||||
<div class="fn__clear">
|
||||
<div>
|
||||
<svg>
|
||||
<use xlink:href="#iconReplace"></use>
|
||||
</svg>
|
||||
iconReplace
|
||||
</div>
|
||||
<div>
|
||||
<svg>
|
||||
<use xlink:href="#iconRtl"></use>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
document.body.insertAdjacentHTML('afterbegin', `<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
<symbol id="iconReplace" viewBox="0 0 32 32">
|
||||
<path d="M1.177 11.059q0.75-4.412 4.213-7.235t7.963-2.824q2.868 0 5.36 1.323t4.346 3.573v-4.897h2.647v10.059h-10.059v-2.647h5.912q-1.412-2.118-3.552-3.441t-4.654-1.323q-3.397 0-6.066 2.051t-3.419 5.36zM29.103 31l-8.118-8.118q-1.632 1.368-3.573 2.073t-4.059 0.706q-2.868 0-5.404-1.191t-4.301-3.441v4.677h-2.647v-10.059h10.059v2.647h-6.132q1.456 2.118 3.662 3.419t4.765 1.302q3.309 0 5.89-2.073t3.419-5.294h2.691q-0.221 1.5-0.86 2.846t-1.61 2.493l8.118 8.118z"></path>
|
||||
</symbol>
|
||||
<symbol id="iconLtr" viewBox="0 0 32 32">
|
||||
<path d="M12.4 20.8v-8.8q-2.64 0-4.52-1.72t-1.88-4.28q0-2.52 1.74-4.26t4.26-1.74h11.2v2.4h-3.6v18.4h-2.4v-18.4h-2.4v18.4zM24.56 32l-1.68-1.68 2.96-2.96h-24.24v-2.4h24.24l-2.96-2.96 1.68-1.68 5.84 5.84zM12.4 9.6v-7.2q-1.68 0-2.84 0.96t-1.16 2.64 1.16 2.64 2.84 0.96z"></path>
|
||||
</symbol>
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@
|
|||
"name": "material",
|
||||
"author": "Vanessa",
|
||||
"url": "https://github.com/Vanessa219",
|
||||
"version": "1.7.0"
|
||||
"version": "1.8.0"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ export const genSearch = (config: ISearchOption, element: Element, closeCB?: ()
|
|||
<div id="searchHistoryList" data-close="false" class="fn__none b3-menu b3-list b3-list--background"></div>
|
||||
<div class="block__icons">
|
||||
<span id="searchReplace" aria-label="${window.siyuan.languages.replace}" class="block__icon b3-tooltips b3-tooltips__w">
|
||||
<svg><use xlink:href="#iconEdit"></use></svg>
|
||||
<svg><use xlink:href="#iconReplace"></use></svg>
|
||||
</span>
|
||||
<span class="fn__space"></span>
|
||||
<span id="searchSyntaxCheck" aria-label="${window.siyuan.languages.searchMethod} ${methodText}" class="block__icon b3-tooltips b3-tooltips__w">
|
||||
|
|
@ -120,7 +120,7 @@ export const genSearch = (config: ISearchOption, element: Element, closeCB?: ()
|
|||
</div>
|
||||
<div class="b3-form__icon search__header${config.hasReplace ? "" : " fn__none"}">
|
||||
<span class="fn__a" id="replaceHistoryBtn">
|
||||
<svg data-menu="true" class="b3-form__icon-icon"><use xlink:href="#iconSearch"></use></svg>
|
||||
<svg data-menu="true" class="b3-form__icon-icon"><use xlink:href="#iconReplace"></use></svg>
|
||||
<svg class="search__arrowdown"><use xlink:href="#iconDown"></use></svg>
|
||||
</span>
|
||||
<input id="replaceInput" class="b3-text-field b3-text-field--text">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue