Skip to content

Instantly share code, notes, and snippets.

@metaskills
Created September 7, 2013 14:52
Show Gist options
  • Save metaskills/6476218 to your computer and use it in GitHub Desktop.
Save metaskills/6476218 to your computer and use it in GitHub Desktop.
Using stupid `.css.less` files names patch for less-rails.
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