diff options
author | Rasmus Andersson <rasmus@figma.com> | 2019-02-03 08:01:00 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@figma.com> | 2019-02-03 08:01:00 +0300 |
commit | fa662b9e1d3fcc4272e07d2b34fd6b6168539185 (patch) | |
tree | 13d72c40216464c54eede4a831da877d81499a71 /docs/index.html | |
parent | 118377c5ede8c869d0492b9f3fdd49a7c041a7af (diff) | |
download | inter-fa662b9e1d3fcc4272e07d2b34fd6b6168539185.tar.xz |
website: dynamic metrics update
Diffstat (limited to 'docs/index.html')
-rw-r--r-- | docs/index.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/index.html b/docs/index.html index 5ec838edc..edbd10835 100644 --- a/docs/index.html +++ b/docs/index.html @@ -100,8 +100,8 @@ html { font-family: 'Inter', sans-serif; } <div class="row"><div> <h2><a id="weights" href="#weights">Weights & Styles</a></h2> <p> - There are six weights, each with italic counterparts, - making a total of 12 styles. + There are nine weights, each with italic counterparts, + making a total of 18 styles. </p> <img src="res/weights-and-styles.svg" style="opacity:0.88;width:100%;display:block;margin:3em 0 3em 0"> </div></div> @@ -564,10 +564,10 @@ var unitEl = $('#dynmet-unit') var unitFormatters = [ ['em', 'em', function(fontSize, tracking) { - return tracking.toFixed(3) + return tracking.toFixed(3).replace(/(?:\.000|0+)$/, '') }], ['px', 'px', function(fontSize, tracking) { - return (fontSize * tracking).toFixed(1) + return (fontSize * tracking).toFixed(2).replace(/(?:\.00|0+)$/, '') }], ['%', 'percent', function(fontSize, tracking) { return (tracking * 100).toFixed(1) |