Skip to content

Commit 2bf8f22

Browse files
committed
make +scale(one_argument) compatible with Sass list handling. See #518
1 parent 652a295 commit 2bf8f22

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

lib/bootstrap-sass/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module Bootstrap
22
VERSION = '3.1.0.0'
3-
BOOTSTRAP_SHA = '362708acdd1f75bf5ccbcd98dfbb5e005297921b'
3+
BOOTSTRAP_SHA = '9c054fd4c0db89cbbb1df3c868bafc4f2c17c3e3'
44
end

tasks/converter/less_conversion.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ def process_stylesheet_assets
7575
file = replace_rules(file, ' .list-group-item-') { |rule| extract_nested_rule rule, 'a&' }
7676
file = replace_all file, /,\s*\.open \.dropdown-toggle& \{(.*?)\}/m,
7777
" {\\1}\n .open & { &.dropdown-toggle {\\1} }"
78+
79+
# make +scale(one_argument) compatible with Sass list handling
80+
# see https://github.com/twbs/bootstrap-sass/issues/518
81+
file = replace_all file, '$ratio, $ratio-y', '$scale-args'
82+
7883
file = convert_grid_mixins file
7984
when 'responsive-utilities.less'
8085
file = apply_mixin_parent_selector(file, '&\.(visible|hidden)')

vendor/assets/stylesheets/bootstrap/_mixins.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@
154154
-ms-transform: rotate($degrees); // IE9 only
155155
transform: rotate($degrees);
156156
}
157-
@mixin scale($ratio, $ratio-y...) {
158-
-webkit-transform: scale($ratio, $ratio-y);
159-
-ms-transform: scale($ratio, $ratio-y); // IE9 only
160-
transform: scale($ratio, $ratio-y);
157+
@mixin scale($scale-args...) {
158+
-webkit-transform: scale($scale-args);
159+
-ms-transform: scale($scale-args); // IE9 only
160+
transform: scale($scale-args);
161161
}
162162
@mixin translate($x, $y) {
163163
-webkit-transform: translate($x, $y);

0 commit comments

Comments
 (0)