1
0
Fork 0
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:
James Adam 2014-04-29 20:58:24 -05:00
parent 761c802545
commit ab72dcf428

View file

@ -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)