pixel scaling as a css var

This commit is contained in:
jean-emmanuel 2016-03-21 17:51:42 +01:00
parent fe32cd673e
commit bfc47e3aec
4 changed files with 6 additions and 10 deletions

View file

@ -21,17 +21,11 @@ MISC = {
}
}
PXSCALE = String(getComputedStyle(document.documentElement).getPropertyValue("--pixel-scale")).trim()
///////////////////////
$ = jQuery = require('./jquery/jquery.min')
///////////////////////
PXSCALE = 1
$('html').css('font-size',PXSCALE+'px')
///////////////////////
require('./jquery/jquery.ui')
require('./jquery/jquery.drag')
require('./jquery/jquery.resize')