Skip to content

Commit

Permalink
优化maize主题二级标题显示
Browse files Browse the repository at this point in the history
  • Loading branch information
caol64 committed Dec 10, 2024
1 parent 9587db2 commit 5d0601e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 3 deletions.
6 changes: 6 additions & 0 deletions WenYan/Resources.bundle/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,12 @@ function buildPseudoSpan(beforeRresults) {
if (svgMatch) {
const svgCode = decodeURIComponent(svgMatch[1]);
span.innerHTML = svgCode;
} else {
const base64SvgMatch = v.match(/data:image\/svg\+xml;base64,([^"'\)]*)["']?\)/);
if (base64SvgMatch) {
const decodedString = atob(base64SvgMatch[1]);
span.innerHTML = decodedString;
}
}
beforeRresults.delete(k);
}
Expand Down
1 change: 1 addition & 0 deletions WenYan/Resources.bundle/themes/lapis.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
color: var(--primary-color);
}
#wenyan a {
word-wrap: break-word;
color: var(--primary-color);
}
#wenyan p {
Expand Down
12 changes: 9 additions & 3 deletions WenYan/Resources.bundle/themes/maize.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,15 @@
}
#wenyan h2::before {
display: inline-block;
content: "✔";
font-weight: bold;
color: #ffb11b;
content: "";
width: 20px;
height: 20px;
background-image: url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIj4KICAgIDxnPgogICAgICAgIDxwYXRoIGQ9Im0zMy40NTIgNjIuMTQyUzY2LjA2MyAxNC45MzcgOTAuNDU2IDEwLjI4M2wxLjQyOSAxLjcxNFM3Mi41MzIgMjkuNTgyIDU4LjEzMyA0OC41ODNDNDMuMDg0IDY4LjQ0MiAzNi4wNTggODkuOTQ3IDMxLjg4IDg5LjcxNWMtNS42ODEtLjQxLTEyLjQyOS0zNy43MTYtMjMuMjg3LTMzLjI4Ny0yLjI4Ni0uNTcxIDMuOTEyLTkuNjE0IDEyLjU3Mi03LjU3MiA1LjQzIDEuMjgxIDEyLjI4NyAxMy4yODYgMTIuMjg3IDEzLjI4NnoiIGZpbGw9IiNmZmIxMWIiIC8+CiAgICA8L2c+Cjwvc3ZnPg==);
background-repeat: no-repeat;
background-size: 20px 20px;
background-position-y: 4px;
margin-right: 4px;
vertical-align: text-top;
}
#wenyan h2 {
font-size: 1.3em;
Expand Down Expand Up @@ -89,6 +94,7 @@
overflow: auto;
}
#wenyan a {
word-wrap: break-word;
text-decoration: none;
font-weight: bold;
color: #e49123;
Expand Down
1 change: 1 addition & 0 deletions WenYan/Resources.bundle/themes/pie.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
text-align: justify;
}
#wenyan a {
word-wrap: break-word;
color: var(--main-6);
text-decoration: none;
border-bottom: 1px solid var(--main-6);
Expand Down
1 change: 1 addition & 0 deletions WenYan/Resources.bundle/themes/purple.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
font-size: 16px;
}
#wenyan a {
word-wrap: break-word;
border-bottom: 1px solid var(--link-bottom);
color: var(--link-color);
text-decoration: none;
Expand Down
1 change: 1 addition & 0 deletions WenYan/Resources.bundle/themes/rainbow.css
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
font-size: 0.9em;
}
#wenyan a {
word-wrap: break-word;
color: rgb(31, 117, 255);
}
#wenyan img {
Expand Down

0 comments on commit 5d0601e

Please sign in to comment.