]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
media: update font-size mixin to not use JS
authorVincent Bernat <vincent@bernat.ch>
Sat, 5 Sep 2020 12:06:57 +0000 (14:06 +0200)
committerVincent Bernat <vincent@bernat.ch>
Sat, 5 Sep 2020 12:06:57 +0000 (14:06 +0200)
content/media/css/common.less

index 2b62c2c64dbc96846d0d21b36f771657831d3ca1..1fd89dd71552d2d72a2d5465337992fcd98ad546 100644 (file)
@@ -28,5 +28,5 @@
 
 .font-size (@factor: 1) {
     font-size: @factor * 1em;
-    line-height: ~`Math.ceil(@{factor}/@{line-height})*@{line-height}/@{factor}`;
+    line-height: round(ceil(@factor/@line-height)*@line-height/@factor, 3);
 }