Better font size for macs

This commit is contained in:
Eduard Urbach 2017-07-04 01:16:43 +02:00
parent 1ab503fc5c
commit e2772bc2e4
2 changed files with 8 additions and 2 deletions

View File

@ -45,6 +45,11 @@ export class AnimeNotifier {
window.addEventListener("popstate", this.onPopState.bind(this)) window.addEventListener("popstate", this.onPopState.bind(this))
this.requestIdleCallback(this.onIdle.bind(this)) this.requestIdleCallback(this.onIdle.bind(this))
// Add "osx" class on macs so we can set a proper font-size
if(navigator.platform.includes("Mac")) {
document.rootElement.classList.add("osx")
}
} }
requestIdleCallback(func: Function) { requestIdleCallback(func: Function) {

View File

@ -9,10 +9,11 @@ body
height 100% height 100%
color text-color color text-color
background-color bg-color background-color bg-color
font-size 1.05rem
> 1400px .osx
body body
font-size 105% font-size 1rem
a a
color link-color color link-color