From: Vincent Bernat Date: Sat, 5 Sep 2020 12:06:57 +0000 (+0200) Subject: media: update font-size mixin to not use JS X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f9f8c47bda94f05aa9290d673384395b191ef200;p=thirdparty%2Flldpd.git media: update font-size mixin to not use JS --- diff --git a/content/media/css/common.less b/content/media/css/common.less index 2b62c2c6..1fd89dd7 100644 --- a/content/media/css/common.less +++ b/content/media/css/common.less @@ -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); }