Created
September 7, 2013 14:52
-
-
Save metaskills/6476218 to your computer and use it in GitHub Desktop.
Using stupid `.css.less` files names patch for less-rails.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/dummy_app/app/assets/stylesheets/basics.css.less b/test/dummy_app/app/assets/stylesheets/basics.css.less | |
index 2cfe8f6..1cd2162 100644 | |
--- a/test/dummy_app/app/assets/stylesheets/basics.css.less | |
+++ b/test/dummy_app/app/assets/stylesheets/basics.css.less | |
@@ -12,6 +12,7 @@ | |
#test-radiused { .radiused; } | |
#test-variable-colored { .variableColored; } | |
#test-variable-relative-path-colored { .variableRelativePathColored; } | |
+#test-stupid-filename-colored { .stupidFilename; } | |
// Vendored | |
@import "vendored"; | |
diff --git a/test/dummy_app/app/assets/stylesheets/frameworks/bootstrap/mixins.less b/test/dummy_app/app/assets/stylesheets/frameworks/bootstrap/mixins.less | |
index 81547c3..5528df5 100644 | |
--- a/test/dummy_app/app/assets/stylesheets/frameworks/bootstrap/mixins.less | |
+++ b/test/dummy_app/app/assets/stylesheets/frameworks/bootstrap/mixins.less | |
@@ -1,6 +1,7 @@ | |
@import "frameworks/bootstrap/variables"; | |
@import "variables_via_relative_path"; | |
+@import "stupid_filename"; | |
.radiused(@radius: 5px) { | |
border-radius: @radius; | |
@@ -13,3 +14,7 @@ | |
.variableRelativePathColored() { | |
color: @variableRelativePathColor; | |
} | |
+ | |
+.stupidFilenameColored() { | |
+ color: @stupidFilenameColor; | |
+} | |
diff --git a/test/dummy_app/app/assets/stylesheets/frameworks/bootstrap/stupid_filename.css.less b/test/dummy_app/app/assets/stylesheets/frameworks/bootstrap/stupid_filename.css.less | |
new file mode 100644 | |
index 0000000..f0d559a | |
--- /dev/null | |
+++ b/test/dummy_app/app/assets/stylesheets/frameworks/bootstrap/stupid_filename.css.less | |
@@ -0,0 +1,2 @@ | |
+ | |
+@stupidFilenameColor: #DBBA55; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment