This commit is contained in:
Vanessa 2023-07-07 09:56:48 +08:00
parent ae881f0e4b
commit 7c8eb0cbae
6 changed files with 15 additions and 15 deletions

View file

@ -558,10 +558,10 @@ document.body.insertAdjacentHTML('afterbegin', `<svg style="position: absolute;
<path d="M18.583 22.391c-0.060-0.060-0.144-0.097-0.235-0.097s-0.175 0.037-0.235 0.097l-4.841 4.841c-2.242 2.242-6.025 2.479-8.5 0-2.479-2.479-2.242-6.258 0-8.5l4.841-4.841c0.129-0.129 0.129-0.342 0-0.471l-1.658-1.658c-0.060-0.060-0.144-0.097-0.235-0.097s-0.175 0.037-0.235 0.097l-4.841 4.841c-3.525 3.525-3.525 9.229 0 12.75s9.229 3.525 12.75 0l4.841-4.841c0.129-0.129 0.129-0.342 0-0.471l-1.65-1.65zM29.358 2.642c-3.525-3.525-9.229-3.525-12.75 0l-4.846 4.841c-0.060 0.060-0.097 0.144-0.097 0.235s0.037 0.175 0.097 0.235l1.654 1.654c0.129 0.129 0.342 0.129 0.471 0l4.842-4.841c2.242-2.242 6.025-2.479 8.5 0 2.479 2.479 2.242 6.258 0 8.5l-4.841 4.841c-0.060 0.060-0.097 0.144-0.097 0.235s0.037 0.175 0.097 0.235l1.658 1.658c0.129 0.129 0.342 0.129 0.471 0l4.841-4.841c3.521-3.525 3.521-9.229 0-12.754zM20.087 10.179c-0.060-0.060-0.144-0.097-0.235-0.097s-0.175 0.037-0.235 0.097l-9.437 9.433c-0.060 0.060-0.097 0.144-0.097 0.235s0.037 0.175 0.097 0.235l1.65 1.65c0.129 0.129 0.342 0.129 0.471 0l9.433-9.433c0.129-0.129 0.129-0.342 0-0.471l-1.646-1.65z"></path>
</symbol>
<symbol id="iconOutdent" viewBox="0 0 32 32">
<path d="M11.84 13.2h19.2c0.176 0 0.32-0.144 0.32-0.32v-2.24c0-0.176-0.144-0.32-0.32-0.32h-19.2c-0.176 0-0.32 0.144-0.32 0.32v2.24c0 0.176 0.144 0.32 0.32 0.32zM11.52 21.36c0 0.176 0.144 0.32 0.32 0.32h19.2c0.176 0 0.32-0.144 0.32-0.32v-2.24c0-0.176-0.144-0.32-0.32-0.32h-19.2c-0.176 0-0.32 0.144-0.32 0.32v2.24zM31.68 1.92h-31.36c-0.176 0-0.32 0.144-0.32 0.32v2.24c0 0.176 0.144 0.32 0.32 0.32h31.36c0.176 0 0.32-0.144 0.32-0.32v-2.24c0-0.176-0.144-0.32-0.32-0.32zM31.68 27.2h-31.36c-0.176 0-0.32 0.144-0.32 0.32v2.24c0 0.176 0.144 0.32 0.32 0.32h31.36c0.176 0 0.32-0.144 0.32-0.32v-2.24c0-0.176-0.144-0.32-0.32-0.32zM0.136 16.276l6.252 4.924c0.232 0.184 0.576 0.020 0.576-0.276v-9.848c0-0.296-0.34-0.46-0.576-0.276l-6.252 4.924c-0.082 0.065-0.135 0.164-0.135 0.276s0.053 0.211 0.134 0.275l0.001 0.001z"></path>
<path d="M19.865 13.399h-17.836c-0.163 0-0.297-0.134-0.297-0.297v-2.081c0-0.164 0.134-0.297 0.297-0.297h17.836c0.163 0 0.297 0.134 0.297 0.297v2.081c0 0.164-0.134 0.297-0.297 0.297zM20.162 20.979c0 0.163-0.134 0.297-0.297 0.297h-17.836c-0.163 0-0.297-0.134-0.297-0.297v-2.081c0-0.163 0.134-0.297 0.297-0.297h17.836c0.163 0 0.297 0.134 0.297 0.297v2.081zM1.434 2.92h29.133c0.163 0 0.297 0.134 0.297 0.297v2.081c0 0.163-0.134 0.297-0.297 0.297h-29.133c-0.163 0-0.297-0.134-0.297-0.297v-2.081c0-0.163 0.134-0.297 0.297-0.297zM1.434 26.405h29.133c0.163 0 0.297 0.134 0.297 0.297v2.081c0 0.163-0.134 0.297-0.297 0.297h-29.133c-0.163 0-0.297-0.134-0.297-0.297v-2.081c0-0.163 0.134-0.297 0.297-0.297zM29.734 20.834l-5.808-4.574c-0.077-0.060-0.125-0.154-0.125-0.258s0.049-0.198 0.125-0.257l0.001-0.001 5.808-4.578c0.215-0.171 0.535-0.019 0.535 0.256v9.152c0 0 0 0 0 0 0 0.183-0.148 0.331-0.331 0.331-0.077 0-0.149-0.027-0.205-0.072l0.001 0.001z"></path>
</symbol>
<symbol id="iconIndent" viewBox="0 0 32 32">
<path d="M11.84 13.2h19.2c0.176 0 0.32-0.144 0.32-0.32v-2.24c0-0.176-0.144-0.32-0.32-0.32h-19.2c-0.176 0-0.32 0.144-0.32 0.32v2.24c0 0.176 0.144 0.32 0.32 0.32zM11.52 21.36c0 0.176 0.144 0.32 0.32 0.32h19.2c0.176 0 0.32-0.144 0.32-0.32v-2.24c0-0.176-0.144-0.32-0.32-0.32h-19.2c-0.176 0-0.32 0.144-0.32 0.32v2.24zM31.68 1.92h-31.36c-0.176 0-0.32 0.144-0.32 0.32v2.24c0 0.176 0.144 0.32 0.32 0.32h31.36c0.176 0 0.32-0.144 0.32-0.32v-2.24c0-0.176-0.144-0.32-0.32-0.32zM31.68 27.2h-31.36c-0.176 0-0.32 0.144-0.32 0.32v2.24c0 0.176 0.144 0.32 0.32 0.32h31.36c0.176 0 0.32-0.144 0.32-0.32v-2.24c0-0.176-0.144-0.32-0.32-0.32zM1.216 21.204l6.252-4.924c0.083-0.065 0.135-0.166 0.135-0.278s-0.053-0.213-0.134-0.277l-0.001-0.001-6.252-4.928c-0.232-0.184-0.576-0.020-0.576 0.276v9.852c0 0 0 0 0 0 0 0.197 0.159 0.356 0.356 0.356 0.083 0 0.16-0.029 0.221-0.077l-0.001 0.001z"></path>
<path d="M12.135 13.399h17.836c0.163 0 0.297-0.134 0.297-0.297v-2.081c0-0.164-0.134-0.297-0.297-0.297h-17.836c-0.164 0-0.297 0.134-0.297 0.297v2.081c0 0.164 0.134 0.297 0.297 0.297zM11.838 20.979c0 0.163 0.134 0.297 0.297 0.297h17.836c0.163 0 0.297-0.134 0.297-0.297v-2.081c0-0.163-0.134-0.297-0.297-0.297h-17.836c-0.164 0-0.297 0.134-0.297 0.297v2.081zM30.566 2.92h-29.133c-0.163 0-0.297 0.134-0.297 0.297v2.081c0 0.163 0.134 0.297 0.297 0.297h29.133c0.163 0 0.297-0.134 0.297-0.297v-2.081c0-0.163-0.134-0.297-0.297-0.297zM30.566 26.405h-29.133c-0.163 0-0.297 0.134-0.297 0.297v2.081c0 0.163 0.134 0.297 0.297 0.297h29.133c0.163 0 0.297-0.134 0.297-0.297v-2.081c0-0.163-0.134-0.297-0.297-0.297zM2.266 20.834l5.808-4.574c0.077-0.060 0.125-0.154 0.125-0.258s-0.049-0.198-0.124-0.257l-0.001-0.001-5.808-4.578c-0.216-0.171-0.535-0.019-0.535 0.256v9.152c0 0 0 0 0 0 0 0.183 0.148 0.331 0.331 0.331 0.077 0 0.149-0.027 0.205-0.072l-0.001 0.001z"></path>
</symbol>
<symbol id="iconOrderedList" viewBox="0 0 32 32">
<path d="M31.692 25.538h-22.462c-0.169 0-0.308 0.138-0.308 0.308v2.154c0 0.169 0.138 0.308 0.308 0.308h22.462c0.169 0 0.308-0.138 0.308-0.308v-2.154c0-0.169-0.138-0.308-0.308-0.308zM31.692 3.692h-22.462c-0.169 0-0.308 0.138-0.308 0.308v2.154c0 0.169 0.138 0.308 0.308 0.308h22.462c0.169 0 0.308-0.138 0.308-0.308v-2.154c0-0.169-0.138-0.308-0.308-0.308zM31.692 14.615h-22.462c-0.169 0-0.308 0.138-0.308 0.308v2.154c0 0.169 0.138 0.308 0.308 0.308h22.462c0.169 0 0.308-0.138 0.308-0.308v-2.154c0-0.169-0.138-0.308-0.308-0.308zM4.615 23.692h-4.462c-0.085 0-0.154 0.069-0.154 0.154v1.308c0 0.085 0.069 0.154 0.154 0.154h2.785v0.788h-1.373c-0.085 0-0.154 0.069-0.154 0.154v1.308c0 0.085 0.069 0.154 0.154 0.154h1.373v0.827h-2.785c-0.085 0-0.154 0.069-0.154 0.154v1.308c0 0.085 0.069 0.154 0.154 0.154h4.462c0.085 0 0.154-0.069 0.154-0.154v-6.154c0-0.085-0.069-0.154-0.154-0.154zM0.154 3.538h1.462v4.615c0 0.085 0.069 0.154 0.154 0.154h1.538c0.085 0 0.154-0.069 0.154-0.154v-6c0-0.169-0.138-0.308-0.308-0.308h-3c-0.085 0-0.154 0.069-0.154 0.154v1.385c0 0.085 0.069 0.154 0.154 0.154zM4.615 12.769h-4.462c-0.085 0-0.154 0.069-0.154 0.154v1.385c0 0.085 0.069 0.154 0.154 0.154h2.631l-2.704 2.988c-0.049 0.055-0.080 0.128-0.081 0.207v1.419c0 0.085 0.069 0.154 0.154 0.154h4.462c0.085 0 0.154-0.069 0.154-0.154v-1.385c0-0.085-0.069-0.154-0.154-0.154h-2.631l2.704-2.988c0.049-0.055 0.080-0.128 0.081-0.207v-1.419c0-0.085-0.069-0.154-0.154-0.154z"></path>

View file

@ -2,5 +2,5 @@
"name": "ant",
"author": "Vanessa",
"url": "https://github.com/Vanessa219",
"version": "1.21.0"
"version": "1.21.1"
}

View file

@ -1097,6 +1097,6 @@
iconSub
</div>
</div>
<script src="material/icon.js"></script>
<script src="ant/icon.js"></script>
</body>
</html>

View file

@ -563,10 +563,10 @@ document.body.insertAdjacentHTML('afterbegin', `<svg style="position: absolute;
<path d="M18.569 26.328q1.498 0 2.462-1.017t0.963-2.408-0.963-2.408-2.462-1.017h-8.027v6.849h8.027zM10.542 5.779v6.85h6.85q1.391 0 2.408-1.017t1.017-2.408-1.017-2.408-2.408-1.017h-6.849zM23.385 15.518q4.923 2.248 4.923 7.813 0 3.639-2.408 6.154t-6.047 2.515h-16.161v-32h14.341q3.853 0 6.475 2.676t2.622 6.528-3.746 6.314z"></path>
</symbol>
<symbol id="iconIndent" viewBox="0 0 32 32">
<path d="M14.25 17.75v-3.5h17.75v3.5h-17.75zM14.25 10.667v-3.583h17.75v3.583h-17.75zM0 0h32v3.583h-32v-3.583zM14.25 24.917v-3.583h17.75v3.583h-17.75zM0 8.917l7.083 7.083-7.083 7.083v-14.167zM0 32v-3.583h32v3.583h-32z"></path>
<path d="M14.359 17.641v-3.281h16.641v3.281h-16.641zM14.359 11v-3.359h16.641v3.359h-16.641zM1 1h30v3.359h-30v-3.359zM14.359 24.36v-3.359h16.641v3.359h-16.641zM1 9.36l6.64 6.64-6.64 6.64v-13.282zM1 31v-3.359h30v3.359h-30z"></path>
</symbol>
<symbol id="iconOutdent" viewBox="0 0 32 32">
<path d="M14.25 17.75v-3.5h17.75v3.5h-17.75zM14.25 10.667v-3.583h17.75v3.583h-17.75zM0 0h32v3.583h-32v-3.583zM0 32v-3.583h32v3.583h-32zM0 16l7.083-7.083v14.167zM14.25 24.917v-3.583h17.75v3.583h-17.75z"></path>
<path d="M17.641 17.641v-3.281h-16.641v3.281h16.641zM17.641 11v-3.359h-16.641v3.359h16.641zM31 1h-30v3.359h30v-3.359zM17.641 24.36v-3.359h-16.641v3.359h16.641zM31 9.36l-6.64 6.64 6.64 6.64v-13.282zM31 31v-3.359h-30v3.359h30z"></path>
</symbol>
<symbol id="iconItalic" viewBox="0 0 32 32">
<path d="M11.398 0h18.301v6.849h-6.421l-7.706 18.301h5.030v6.849h-18.301v-6.849h6.421l7.706-18.301h-5.030v-6.849z"></path>

View file

@ -2,5 +2,5 @@
"name": "material",
"author": "Vanessa",
"url": "https://github.com/Vanessa219",
"version": "1.21.0"
"version": "1.21.1"
}

View file

@ -245,15 +245,15 @@ const renderKeyboardToolbar = () => {
}
const nodeElement = hasClosestBlock(range.startContainer);
if (nodeElement) {
const indentElement = dynamicElements[0].querySelector('[data-type="indent"]');
const outdentElement = dynamicElements[0].querySelector('[data-type="outdent"]');
if (nodeElement.parentElement.classList.contains("li")) {
indentElement.classList.remove("fn__none");
indentElement.nextElementSibling.classList.remove("fn__none");
indentElement.nextElementSibling.nextElementSibling.classList.remove("fn__none");
outdentElement.classList.remove("fn__none");
outdentElement.nextElementSibling.classList.remove("fn__none");
outdentElement.nextElementSibling.nextElementSibling.classList.remove("fn__none");
} else {
indentElement.classList.add("fn__none");
indentElement.nextElementSibling.classList.add("fn__none");
indentElement.nextElementSibling.nextElementSibling.classList.add("fn__none");
outdentElement.classList.add("fn__none");
outdentElement.nextElementSibling.classList.add("fn__none");
outdentElement.nextElementSibling.nextElementSibling.classList.add("fn__none");
}
}
}
@ -344,8 +344,8 @@ export const initKeyboardToolbar = () => {
toolbarElement.innerHTML = `<div class="fn__flex keyboard__bar">
<div class="fn__flex-1">
<div class="fn__none keyboard__dynamic">
<button class="keyboard__action" data-type="indent"><svg><use xlink:href="#iconIndent"></use></svg></button>
<button class="keyboard__action" data-type="outdent"><svg><use xlink:href="#iconOutdent"></use></svg></button>
<button class="keyboard__action" data-type="indent"><svg><use xlink:href="#iconIndent"></use></svg></button>
<span class="keyboard__split"></span>
<button class="keyboard__action" data-type="add"><svg><use xlink:href="#iconAdd"></use></svg></button>
<button class="keyboard__action" data-type="goinline"><svg class="keyboard__svg--big"><use xlink:href="#iconBIU"></use></svg></button>