Skip to content

Commit

Permalink
Use font: menu instead of system-ui
Browse files Browse the repository at this point in the history
The latter seems to be hardcoded to Cantarell. Note that `font: menu` is
already used in the dictionary popover and the footnote dialog.
  • Loading branch information
johnfactotum committed Jan 24, 2024
1 parent 04b3182 commit 1f6766a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/opds/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
}
:root {
overflow-wrap: anywhere;
font: menu;
font-size: 11pt;
font-family: system-ui;
--shade: rgba(0, 0, 0, .07);
--raised: rgba(0, 0, 0, .1);
--pressed: rgba(0, 0, 0, .2);
Expand Down
3 changes: 2 additions & 1 deletion src/opds/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ customElements.define('opds-pub-full', class extends HTMLElement {
sheet.replaceSync(`
html, body {
color-scheme: light dark;
font-family: system-ui;
font: menu;
font-size: 11pt;
margin: 0;
overflow-wrap: anywhere;
}
Expand Down
2 changes: 1 addition & 1 deletion src/reader/reader.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}
}
foliate-view::part(head), foliate-view::part(foot) {
font-family: system-ui;
font: menu;
font-size: 9pt;
}
foliate-view {
Expand Down

0 comments on commit 1f6766a

Please sign in to comment.