From 6506f81e3c749e281a2ef271a070170879d58051 Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Wed, 8 May 2024 15:53:36 +0200 Subject: [PATCH] Adding calc() exception See https://lesscss.org/#operations-calc-exception --- .../src/main/assets/css/main.less | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/sbt-test/sbt-less-plugin/less-same-webjars-different-version/src/main/assets/css/main.less b/src/sbt-test/sbt-less-plugin/less-same-webjars-different-version/src/main/assets/css/main.less index 34fb9ac..c773cb6 100644 --- a/src/sbt-test/sbt-less-plugin/less-same-webjars-different-version/src/main/assets/css/main.less +++ b/src/sbt-test/sbt-less-plugin/less-same-webjars-different-version/src/main/assets/css/main.less @@ -1,3 +1,7 @@ +@li-vspace: 1.7rem; +@icon-size: 2rem; + h1 { - color: blue -} \ No newline at end of file + color: blue; + top: calc(-@li-vspace + @icon-size / 2 - 5px); +}