emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master bc44763: Update SCSS test file syntax.


From: Philipp Stephani
Subject: master bc44763: Update SCSS test file syntax.
Date: Fri, 18 Jun 2021 02:33:16 -0400 (EDT)

branch: master
commit bc44763b8342ee9e1bf43ffb202c73fee5ba0bf6
Author: Philipp Stephani <phst@google.com>
Commit: Philipp Stephani <phst@google.com>

    Update SCSS test file syntax.
    
    According to
    https://sass-lang.com/documentation/breaking-changes/slash-div, the
    slash operator should be replaced by 'math.div'.
    
    Fixed using the migration tool mentioned at
    
https://sass-lang.com/documentation/breaking-changes/slash-div#automatic-migration.
    
    * test/manual/indent/scss-mode.scss: Remove slash operator.
---
 test/manual/indent/scss-mode.scss | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/test/manual/indent/scss-mode.scss 
b/test/manual/indent/scss-mode.scss
index 189ec4e..2cd4adb 100644
--- a/test/manual/indent/scss-mode.scss
+++ b/test/manual/indent/scss-mode.scss
@@ -1,5 +1,7 @@
 // Comment!
 
+@use "sass:math";
+
 nav {
     ul {
         margin: 0;              /* More comment */
@@ -44,8 +46,8 @@ article[role="main"] {
     $var_with_underscores: #fff;
     $_var-starting-with-underscore: none;
     float: left !important;
-    width: 600px / 888px * 100%;
-    height: 100px / 888px * 100%;
+    width: math.div(600px, 888px) * 100%;
+    height: math.div(100px, 888px) * 100%;
     color: $var_with_underscores;
     display: $_var-starting-with-underscore;
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]