Hidpi fonts now apply to dpr of >= 1.5, rather than >= 1.3
This commit is contained in:
parent
eb3b9dbe6f
commit
cd8a948e92
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
|||
<link rel="stylesheet" href="/css/code.css">
|
||||
<link rel="icon" type="image/png" href="/assets/favicon.png">
|
||||
<script>
|
||||
const class_ = `font-${window.devicePixelRatio >= 1.3 ? 'hidpi' : 'lodpi'}`;
|
||||
const class_ = `font-${window.devicePixelRatio >= 1.5 ? 'hidpi' : 'lodpi'}`;
|
||||
document.documentElement.className = class_;
|
||||
// document.documentElement.className += ' invert'; // 'invert' to swap colors
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue