Skip to content

Instantly share code, notes, and snippets.

@metaskills
Created February 24, 2013 16:18
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metaskills/5024393 to your computer and use it in GitHub Desktop.
Save metaskills/5024393 to your computer and use it in GitHub Desktop.
Bootstrap 2.3's mixin.less incompatibilities.
@@ -558,13 +567,13 @@
.core (@gridColumnWidth, @gridGutterWidth) {
.spanX (@index) when (@index > 0) {
- (~".span@{index}") { .span(@index); }
+ .span@{index} { .span(@index); }
.spanX(@index - 1);
}
.spanX (0) {}
.offsetX (@index) when (@index > 0) {
- (~".offset@{index}") { .offset(@index); }
+ .offset@{index} { .offset(@index); }
.offsetX(@index - 1);
}
.offsetX (0) {}
@@ -603,14 +612,14 @@
.fluid (@fluidGridColumnWidth, @fluidGridGutterWidth) {
.spanX (@index) when (@index > 0) {
- (~".span@{index}") { .span(@index); }
+ .span@{index} { .span(@index); }
.spanX(@index - 1);
}
.spanX (0) {}
.offsetX (@index) when (@index > 0) {
- (~'.offset@{index}') { .offset(@index); }
- (~'.offset@{index}:first-child') { .offsetFirstChild(@index); }
+ .offset@{index} { .offset(@index); }
+ .offset@{index}:first-child { .offsetFirstChild(@index); }
.offsetX(@index - 1);
}
.offsetX (0) {}
@@ -658,7 +667,7 @@
.input(@gridColumnWidth, @gridGutterWidth) {
.spanX (@index) when (@index > 0) {
- (~"input.span@{index}, textarea.span@{index}, .uneditable-input.span@{index}") { .span(@index); }
+ input.span@{index}, textarea.span@{index}, .uneditable-input.span@{index} { .span(@index); }
.spanX(@index - 1);
}
.spanX (0) {}
@alekseivillegas
Copy link

Tks a lot, that fix my bootstrapwp-Twitter-Bootstrap-for-WordPress, from compile

@j6s
Copy link

j6s commented Sep 26, 2013

you, sir... are my hero of the day, thank you for this fix.

@wyoumans
Copy link

Yay! Good Work!

@rafaeltosta
Copy link

Great fix.

@nhc
Copy link

nhc commented Dec 16, 2013

Thank you. Saved me a headache.

@jaywilliams
Copy link

Excellent, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment