Skip to content

Commit 8838801

Browse files
authored
💅 Update CSS to explicitly use emoji font (#1658)
1 parent dbfd189 commit 8838801

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/css/custom.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
/* Fira Code, including characters used by Rich output, like the "heavy right-pointing angle bracket ornament", not included in Google Fonts */
22
@import url(https://cdn.jsdelivr.net/npm/[email protected]/distr/fira_code.css);
3+
/* Noto Color Emoji for emoji support with the same font everywhere */
4+
@import url(https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap);
35

46
/* Override default code font in Material for MkDocs to Fira Code */
57
:root {
6-
--md-code-font: "Fira Code", monospace;
8+
--md-code-font: "Fira Code", monospace, "Noto Color Emoji";
9+
}
10+
11+
/* Override default regular font in Material for MkDocs to include Noto Color Emoji */
12+
:root {
13+
--md-text-font: "Roboto", "Noto Color Emoji";
714
}
815

916
.termynal-comment {

0 commit comments

Comments
 (0)