mirror of
https://github.com/twbs/bootstrap-sass.git
synced 2022-11-09 12:27:02 -05:00
Fix opacity of popover arrows.
Previously, the percentage of the LESS `fadein` function was being used directly as the opacity, which resulted in an opacity of `0.05` rather than `0.25` as the LESS version generates. We can use the SASS `fade_in` function to more accurately generate the correct color using the same values; the only difference is that SASS's `fade_in` expects a decimal value, rather than the percentage that LESS accepts.
This commit is contained in:
parent
761c802545
commit
ab72dcf428
1 changed files with 1 additions and 1 deletions
|
@ -452,7 +452,7 @@ SASS
|
|||
end
|
||||
|
||||
def replace_fadein(less)
|
||||
less.gsub(/(?![\-$@.])fadein\((.*?),\s*(.*?)%\)/) { "rgba(#{$1}, #{$2.to_i / 100.0})" }
|
||||
less.gsub(/(?![\-$@.])fadein\((.*?),\s*(.*?)%\)/) { "fade_in(#{$1}, #{$2.to_i / 100.0})" }
|
||||
end
|
||||
|
||||
def replace_image_urls(less)
|
||||
|
|
Loading…
Add table
Reference in a new issue