diff --git a/multi.html b/multi.html index b7f0fccb..bf29e722 100644 --- a/multi.html +++ b/multi.html @@ -1466,12 +1466,7 @@
- - Skill - - - Evoveld Skill - +
@@ -1487,9 +1482,7 @@
- - Leader Skill - +
@@ -1792,7 +1785,7 @@ - + diff --git a/script.js b/script.js index cf2c136a..8dd88ade 100644 --- a/script.js +++ b/script.js @@ -4178,12 +4178,12 @@ function initialize() { editBox.show = function() { this.classList.remove(className_displayNone); //解决SVG问题 - const activeSkillTitle = skillBox.querySelector("#active-skill-title"); - const evolvedSkillTitle = skillBox.querySelector("#evolved-skill-title"); - const leaderSkillTitle = leaderSkillBox.querySelector("#leader-skill-title"); - svgGradientTextLengthRestore(activeSkillTitle); - svgGradientTextLengthRestore(evolvedSkillTitle); - svgGradientTextLengthRestore(leaderSkillTitle); + // const activeSkillTitle = skillBox.querySelector("#active-skill-title"); + // const evolvedSkillTitle = skillBox.querySelector("#evolved-skill-title"); + // const leaderSkillTitle = leaderSkillBox.querySelector("#leader-skill-title"); + // svgGradientTextLengthRestore(activeSkillTitle); + // svgGradientTextLengthRestore(evolvedSkillTitle); + // svgGradientTextLengthRestore(leaderSkillTitle); }; editBox.hide = function() { this.classList.add(className_displayNone); @@ -7692,12 +7692,13 @@ function fastShowSkill(event) { const s_cards = Cards.filter(card => card.activeSkillId === skillId || card.leaderSkillId === skillId); //搜索同技能怪物 showSearch(s_cards); //显示 } -function svgGradientTextLengthRestore(svg, force = false) { - if (!force && svg.width.baseVal.value > 0) return; - const text = svg.querySelector("text"); - const rect = text.getBoundingClientRect(); - svg.width.baseVal.value = rect.width; -} +// function svgGradientTextLengthRestore(svg, force = false) { +// if (!force && svg.width.baseVal.value > 0) return; +// const text = svg.querySelector("text"); +// const rect = text.getBoundingClientRect(); +// console.log(svg, rect.width) +// svg.width.baseVal.value = rect.width; +// } function localisation($tra) { if (!$tra) return; document.title = $tra.webpage_title; @@ -7706,15 +7707,15 @@ function localisation($tra) { formationBox.querySelector(".title-box .title-display").setAttribute("placeholder",$tra.title_blank); formationBox.querySelector(".detail-box .detail-code").placeholder = $tra.detail_blank; formationBox.querySelector(".detail-box .detail-display").setAttribute("placeholder",$tra.detail_blank); - gradientTextInit(editBox.querySelector("#active-skill-title"), $tra.active_skill_title); - gradientTextInit(editBox.querySelector("#evolved-skill-title"), $tra.evolved_skill_title); - gradientTextInit(editBox.querySelector("#leader-skill-title"), $tra.leader_skill_title); - function gradientTextInit(svg, str) { - const text = svg.querySelector("text"); - text.textContent = str; - const rect = text.getBoundingClientRect(); - svg.width.baseVal.value = rect.width; - } + // gradientTextInit(editBox.querySelector("#active-skill-title"), $tra.active_skill_title); + // gradientTextInit(editBox.querySelector("#evolved-skill-title"), $tra.evolved_skill_title); + // gradientTextInit(editBox.querySelector("#leader-skill-title"), $tra.leader_skill_title); + // function gradientTextInit(svg, str) { + // const text = svg.querySelector("text"); + // text.textContent = str; + // const rect = text.getBoundingClientRect(); + // svg.width.baseVal.value = rect.width; + // } const s_sortList = editBox.querySelector(".search-box .sort-div .sort-list"); const sortOptions = Array.from(s_sortList.options); sortOptions.forEach(opt => { diff --git a/service-worker.js b/service-worker.js index 52736b77..ffab4403 100644 --- a/service-worker.js +++ b/service-worker.js @@ -33475,7 +33475,7 @@ const cachesMap = new Map([ ], [ "multi.html", - "8e9d49f1a8c0e07016dc5ead62dd8317" + "30b245a3cb46e63d025daa1e542a5062" ], [ "script-custom_elements.js", @@ -33495,11 +33495,11 @@ const cachesMap = new Map([ ], [ "script.js", - "0c3b4320ce5d074a165b2db153906b5b" + "0757c99429047e0b8d8fcd41f6cbd9a3" ], [ "solo.html", - "fc0bef8484b1f210fdcb96d16117c50c" + "5788085a03535fd2bcb9cc4a9b501f8e" ], [ "style-fix-html2canvas.css", @@ -33511,7 +33511,7 @@ const cachesMap = new Map([ ], [ "style.css", - "f2ffbb8bc3c04f53a851b2e3de2683f3" + "a72db3303d0956396c2c482286a16ad9" ], [ "temp.js", @@ -33519,7 +33519,7 @@ const cachesMap = new Map([ ], [ "triple.html", - "d1b8716ca989579acb89c695ce011082" + "7f9db17ef8197d1b1ea4ed102b9cdb51" ], [ "languages/en.css", diff --git a/solo.html b/solo.html index 803bc1b8..12cd249b 100644 --- a/solo.html +++ b/solo.html @@ -1236,12 +1236,7 @@
- - Skill - - - Evoveld Skill - +
@@ -1257,9 +1252,7 @@
- - Leader Skill - +
@@ -1562,7 +1555,7 @@ - + diff --git a/style.css b/style.css index 33fe0f30..ab5eb502 100644 --- a/style.css +++ b/style.css @@ -3098,18 +3098,46 @@ input[disabled]+.awoken-icon:active, stroke-width: 2px; stroke: black; paint-order: stroke; text-shadow: none; } -.skill-title .type-title::after{ - -webkit-background-clip: text; - background-clip: text; - color: transparent; - text-shadow: none; - position: absolute; - left: 5px; + +.evo-panel-left .evo-type, +.skill-title .type-title +{ + display: grid; + font-family: var(--game-font-family); + font-size: 15px; + line-height: 15px; + padding: 4px 0; } -.skill-title .type-title::before{ + +:where( + .skill-title .type-title, + .evo-panel-left .evo-type, +)::after, +:where( + .skill-title .type-title, + .evo-panel-left .evo-type, +)::before{ + grid-area: 1 / 1; text-shadow: none; +} + +:where( + .skill-title .type-title, + .evo-panel-left .evo-type, +)::after{ + color: transparent; + -webkit-background-clip: text; /*垃圾Chrome,不支持无前缀的*/ + background-clip: text; + /*filter: url(#text-stroke);*/ +} + +:where( + .skill-title .type-title, + .evo-panel-left .evo-type, +)::before{ -webkit-text-stroke: 3px black; } + /* 主动技能 */ .row-mon-skill .type-title::after { @@ -3927,31 +3955,7 @@ table .orb-icon } -.evo-panel-left .evo-type{ - display: grid; - font-family: var(--game-font-family); - font-size: 15px; - line-height: 15px; - padding: 4px 0; -} -.evo-panel-left .evo-type::after, -.evo-panel-left .evo-type::before{ - grid-area: 1 / 1; -} - -.evo-panel-left .evo-type::after -{ - -webkit-background-clip: text; /*垃圾Chrome,不支持无前缀的*/ - background-clip: text; - color: transparent; -} -.evo-panel-left .evo-type::before -{ - /*text-shadow: black 1px 1px 0,black -1px 1px 0,black 1px -1px 0,black -1px -1px 0;*/ - -webkit-text-stroke: 3px black; /*非W3C标准,但都支持*/ - text-shadow: 0 3px 2px black; -} #default-level { width: 50px; diff --git a/triple.html b/triple.html index d683cbb3..18873697 100644 --- a/triple.html +++ b/triple.html @@ -2241,12 +2241,7 @@
- - Skill - - - Evoveld Skill - +
@@ -2262,9 +2257,7 @@
- - Leader Skill - +
@@ -2567,7 +2560,7 @@ - +