Skip to content

Commit

Permalink
keep em
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Jul 8, 2024
1 parent d21adbe commit 21e391e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions build/curriculum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,6 @@ function setCurriculumTypes($: CheerioAPI) {
if (externalLinks.length) {
li.addClass("curriculum-external-li");
}
const em = li.find("em");
if (em.length) {
em[0].name = "sup";
}
});

$("blockquote").each((_, child) => {
Expand Down
3 changes: 2 additions & 1 deletion client/src/curriculum/module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
list-style-image: url("../assets/icons/curriculum-ext-resource.svg");
}

sup {
em {
background: var(--curriculum-bg-color);
border-radius: 1em;
color: var(--text-primary);
Expand All @@ -76,6 +76,7 @@
padding: 0 0.4em;
text-rendering: optimizeLegibility;
text-transform: uppercase;
vertical-align: super;
}
}
}
Expand Down

0 comments on commit 21e391e

Please sign in to comment.