Skip to content

Commit

Permalink
Merge pull request #138 from mkurz/calc_exception
Browse files Browse the repository at this point in the history
Adding calc() exception
  • Loading branch information
mkurz authored May 8, 2024
2 parents cff7391 + 55302b3 commit 70b489a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ val checkMapFileContents = taskKey[Unit]("check that map contents are correct")

checkMapFileContents := {
val contents = IO.read((Assets / WebKeys.public).value / "css" / "main.min.css.map")
val expectedContents = """{"version":3,"sources":["main.less"],"names":[],"mappings":"AAAA,GACE","file":"main.min.css"}"""
val expectedContents = """{"version":3,"sources":["main.less"],"names":[],"mappings":"AAGA,GACE,UAAA,CACA,IAAK","file":"main.min.css"}"""

if (contents != expectedContents) {
sys.error(s"Unexpected contents: $contents, \nexpected: $expectedContents")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@li-vspace: 1.7rem;
@icon-size: 2rem;

h1 {
color: blue
}
color: blue;
top: calc(-@li-vspace + @icon-size / 2 - 5px);
}

0 comments on commit 70b489a

Please sign in to comment.