Skip to content

Commit

Permalink
apply .glosswords to i instead of p
Browse files Browse the repository at this point in the history
  • Loading branch information
mi2ebi committed Sep 26, 2023
1 parent 0aaa1ae commit 296b002
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions search.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ function tohtml(json) {
s.push("<details class=notes><summary>more info</summary> <p>" + json.notes + "</p></details> ");
}
if (json.glosswords) {
s.push("<p class=glosswords>");
s.push("<p>");
for (var i = 0; i < json.glosswords.length; i++) {
s.push("<i>" + json.glosswords[i] + "</i>, ");
s.push("<i class=glosswords>" + json.glosswords[i] + "</i>, ");
}
var last = s[s.length - 1];
s[s.length - 1] = last.substring(0, last.length - 2);
Expand Down
4 changes: 2 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ code {
font-family: var(--mono);
color: var(--notesfg);
}
.entry > .notes {
.entry .notes {
color: var(--notesfg);
margin: 16px 0;
}
Expand All @@ -115,7 +115,7 @@ summary {
cursor: pointer;
content: "test";
}
.entry > .glosswords {
.entry .glosswords {
font-style: italic;
}
.warn {
Expand Down

0 comments on commit 296b002

Please sign in to comment.