fantasy-statblocks
fantasy-statblocks copied to clipboard
fix(css): prioritize pf2e icons over system font
Pull Request Description
When using the plugin on iOS with Pathfinder 2e, the action icons in the bestiary community content, which are ⬽ or similar in the descriptions, don't render using the "Pathfinder" icon font as they do on Windows. This is because the system-ui font takes precedence, and on iOS that font includes these icons.
Changes Proposed
- [x] Place "Pathfinder" before system-ui in --statblock-content-font and --statblock-heading-font for pf2e.css
- [x] Change the "Pathfinder" @font-face specification so it only includes the icons, the whitespace was breaking things on iOS
Related Issues
Obsidian-TTRPG-Community/Fantasy-Statblocks-CSS-Development#10
Checklist
- [x] I have read the contribution guidelines and code of conduct.
- [x] I have tested the changes locally and they are working as expected.
- [x] I have added appropriate comments and documentation for the code changes.
- [x] My code follows the coding style and standards of this project.
- [x] I have rebased my branch on the latest main (or master) branch.
- [x] All tests (if applicable) have passed successfully.
- [x] I have run linters and fixed any issues.
- [x] I have checked for any potential security issues or vulnerabilities.
Screenshots (if applicable)
| Before | After |
|---|---|
Additional Notes
N/A