Skip to content

Commit 042bb9b

Browse files
committed
Merge pull request twbs#6780 from agatronic/2.3.0-wip
less: Move to new selector interpolation, supported from 1.3.1
2 parents 1629df8 + 6b9bb54 commit 042bb9b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

less/mixins.less

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -575,13 +575,13 @@
575575
.core (@gridColumnWidth, @gridGutterWidth) {
576576

577577
.spanX (@index) when (@index > 0) {
578-
(~".span@{index}") { .span(@index); }
578+
.span@{index} { .span(@index); }
579579
.spanX(@index - 1);
580580
}
581581
.spanX (0) {}
582582

583583
.offsetX (@index) when (@index > 0) {
584-
(~".offset@{index}") { .offset(@index); }
584+
.offset@{index} { .offset(@index); }
585585
.offsetX(@index - 1);
586586
}
587587
.offsetX (0) {}
@@ -620,14 +620,14 @@
620620
.fluid (@fluidGridColumnWidth, @fluidGridGutterWidth) {
621621

622622
.spanX (@index) when (@index > 0) {
623-
(~".span@{index}") { .span(@index); }
623+
.span@{index} { .span(@index); }
624624
.spanX(@index - 1);
625625
}
626626
.spanX (0) {}
627627

628628
.offsetX (@index) when (@index > 0) {
629-
(~'.offset@{index}') { .offset(@index); }
630-
(~'.offset@{index}:first-child') { .offsetFirstChild(@index); }
629+
.offset@{index} { .offset(@index); }
630+
.offset@{index}:first-child { .offsetFirstChild(@index); }
631631
.offsetX(@index - 1);
632632
}
633633
.offsetX (0) {}
@@ -675,7 +675,7 @@
675675
.input(@gridColumnWidth, @gridGutterWidth) {
676676

677677
.spanX (@index) when (@index > 0) {
678-
(~"input.span@{index}, textarea.span@{index}, .uneditable-input.span@{index}") { .span(@index); }
678+
input.span@{index}, textarea.span@{index}, .uneditable-input.span@{index} { .span(@index); }
679679
.spanX(@index - 1);
680680
}
681681
.spanX (0) {}
@@ -699,5 +699,4 @@
699699
.spanX (@gridColumns);
700700

701701
}
702-
703702
}

0 commit comments

Comments
 (0)