creativetimofficial / argon-dashboard

Argon - Dashboard for Bootstrap 5 by Creative Tim
https://www.creative-tim.com/product/argon-dashboard
MIT License
674 stars 1.26k forks source link

Compiled css files (argon.css and argon.min.css) both contains sass variables #11

Closed tewshi closed 5 years ago

tewshi commented 5 years ago

.icon-xl + .icon-text { width: calc(100% - $icon-size-xl - 1); } ... .icon-lg + .icon-text { width: calc(100% - $icon-size-lg - 1); } ... .icon-sm + .icon-text { width: calc(100% - $icon-size-sm - 1); }

adriaanzon commented 5 years ago

I was getting an error about this:

JisonLexerError: Lexical error on line 1: Unrecognized text.

  Erroneous area:
1: 100% - $icon-size-xl - 1

I solved it locally by wrapping the variables in _icons.scss with #{}:

@@ -28,7 +28,7 @@
        }

     + .icon-text {
-       width: calc(100% - $icon-size-xl - 1);
+       width: calc(100% - #{$icon-size-xl} - 1);
     }
 }

@@ -44,7 +44,7 @@
        }

     + .icon-text {
-       width: calc(100% - $icon-size-lg - 1);
+       width: calc(100% - #{$icon-size-lg} - 1);
     }
 }

@@ -60,6 +60,6 @@
        }

     + .icon-text {
-       width: calc(100% - $icon-size-sm - 1);
+       width: calc(100% - #{$icon-size-sm} - 1);
     }
 }
JIAZHEN commented 5 years ago

Same here. Any solution?

cmutagorama commented 5 years ago

Thank you @adriaanzon, I managed to overcome the error by using your method!

rarestoma commented 5 years ago

Hi,

We fixed it in our last update.

Thank you, Rares