summaryrefslogtreecommitdiff
path: root/docs/res/base.js
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2018-10-08 04:32:03 +0300
committerRasmus Andersson <rasmus@notion.se>2018-10-11 09:38:33 +0300
commita0df8aa6d40ab7b1e96dafd93a197c6859580454 (patch)
tree0d1ca583a4ea9cbb2112a114b66698e3a3ed9358 /docs/res/base.js
parentf6050df80182f7bfc55e5f2df7c715969a1cb67d (diff)
downloadinter-a0df8aa6d40ab7b1e96dafd93a197c6859580454.tar.xz
website: big update with samples and vf stuff
Diffstat (limited to 'docs/res/base.js')
-rw-r--r--docs/res/base.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/res/base.js b/docs/res/base.js
index 0d4b12add..c808b8731 100644
--- a/docs/res/base.js
+++ b/docs/res/base.js
@@ -86,6 +86,13 @@ function InterUIDynamicTracking(fontSize) {
return a + b * Math.pow(Math.E, c * fontSize)
}
+// InterUIDynamicLineHeight produces the line height for the given font size
+//
+function InterUIDynamicLineHeight(fontSize) {
+ var l = 1.4
+ return Math.round(fontSize * l)
+}
+
// Mac or not? Maybe even a buggy Safari?
var isMac = false