Hidpi fonts now apply to dpr of >= 1.5, rather than >= 1.3

This commit is contained in:
al 2025-07-04 11:56:48 -04:00
parent eb3b9dbe6f
commit cd8a948e92

View file

@ -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>