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

@ -16,4 +16,6 @@
--gutter:4rem;
--nav-height:40rem;
--sidepanel-size:300rem;
--pixel-scale:1;
}

View file

@ -34,7 +34,7 @@ html, body {
}
html{
font-size: 2px;
font-size: calc(var(--pixel-scale) * 1px);
}
body {