mirror of
https://github.com/twbs/bootstrap-sass.git
synced 2022-11-09 12:27:02 -05:00
make +scale(one_argument) compatible with Sass list handling. See #518
This commit is contained in:
parent
652a295354
commit
2bf8f22ab8
3 changed files with 10 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
module Bootstrap
|
module Bootstrap
|
||||||
VERSION = '3.1.0.0'
|
VERSION = '3.1.0.0'
|
||||||
BOOTSTRAP_SHA = '362708acdd1f75bf5ccbcd98dfbb5e005297921b'
|
BOOTSTRAP_SHA = '9c054fd4c0db89cbbb1df3c868bafc4f2c17c3e3'
|
||||||
end
|
end
|
||||||
|
|
|
@ -75,6 +75,11 @@ class Converter
|
||||||
file = replace_rules(file, ' .list-group-item-') { |rule| extract_nested_rule rule, 'a&' }
|
file = replace_rules(file, ' .list-group-item-') { |rule| extract_nested_rule rule, 'a&' }
|
||||||
file = replace_all file, /,\s*\.open \.dropdown-toggle& \{(.*?)\}/m,
|
file = replace_all file, /,\s*\.open \.dropdown-toggle& \{(.*?)\}/m,
|
||||||
" {\\1}\n .open & { &.dropdown-toggle {\\1} }"
|
" {\\1}\n .open & { &.dropdown-toggle {\\1} }"
|
||||||
|
|
||||||
|
# make +scale(one_argument) compatible with Sass list handling
|
||||||
|
# see https://github.com/twbs/bootstrap-sass/issues/518
|
||||||
|
file = replace_all file, '$ratio, $ratio-y', '$scale-args'
|
||||||
|
|
||||||
file = convert_grid_mixins file
|
file = convert_grid_mixins file
|
||||||
when 'responsive-utilities.less'
|
when 'responsive-utilities.less'
|
||||||
file = apply_mixin_parent_selector(file, '&\.(visible|hidden)')
|
file = apply_mixin_parent_selector(file, '&\.(visible|hidden)')
|
||||||
|
|
|
@ -154,10 +154,10 @@
|
||||||
-ms-transform: rotate($degrees); // IE9 only
|
-ms-transform: rotate($degrees); // IE9 only
|
||||||
transform: rotate($degrees);
|
transform: rotate($degrees);
|
||||||
}
|
}
|
||||||
@mixin scale($ratio, $ratio-y...) {
|
@mixin scale($scale-args...) {
|
||||||
-webkit-transform: scale($ratio, $ratio-y);
|
-webkit-transform: scale($scale-args);
|
||||||
-ms-transform: scale($ratio, $ratio-y); // IE9 only
|
-ms-transform: scale($scale-args); // IE9 only
|
||||||
transform: scale($ratio, $ratio-y);
|
transform: scale($scale-args);
|
||||||
}
|
}
|
||||||
@mixin translate($x, $y) {
|
@mixin translate($x, $y) {
|
||||||
-webkit-transform: translate($x, $y);
|
-webkit-transform: translate($x, $y);
|
||||||
|
|
Loading…
Add table
Reference in a new issue