"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "sass/utilities/functions.sass" between
bulma-0.9.3.zip and bulma-0.9.4.zip

About: Bulma is a modern CSS framework based on Flexbox to build easily responsive web interfaces.

functions.sass  (bulma-0.9.3):functions.sass  (bulma-0.9.4)
skipping to change at line 85 skipping to change at line 85
$value: powerNumber($value, 2) $value: powerNumber($value, 2)
$color-rgb: map-merge($color-rgb, ($name: $value)) $color-rgb: map-merge($color-rgb, ($name: $value))
@return (map-get($color-rgb, 'red') * .2126) + (map-get($color-rgb, 'green') * .7152) + (map-get($color-rgb, 'blue') * .0722) @return (map-get($color-rgb, 'red') * .2126) + (map-get($color-rgb, 'green') * .7152) + (map-get($color-rgb, 'blue') * .0722)
@function findColorInvert($color) @function findColorInvert($color)
@if (colorLuminance($color) > 0.55) @if (colorLuminance($color) > 0.55)
@return rgba(#000, 0.7) @return rgba(#000, 0.7)
@else @else
@return #fff @return #fff
@function findLightColor($color) @function findLightColor($color, $l: 96%)
@if type-of($color) == 'color' @if type-of($color) == 'color'
$l: 96% $l: 96%
@if lightness($color) > 96% @if lightness($color) > 96%
$l: lightness($color) $l: lightness($color)
@return change-color($color, $lightness: $l) @return change-color($color, $lightness: $l)
@return $background @return $background
@function findDarkColor($color) @function findDarkColor($color, $base-l: 29%)
@if type-of($color) == 'color' @if type-of($color) == 'color'
$base-l: 29%
$luminance: colorLuminance($color) $luminance: colorLuminance($color)
$luminance-delta: (0.53 - $luminance) $luminance-delta: (0.53 - $luminance)
$target-l: round($base-l + ($luminance-delta * 53)) $target-l: round($base-l + ($luminance-delta * 53))
@return change-color($color, $lightness: max($base-l, $target-l)) @return change-color($color, $lightness: max($base-l, $target-l))
@return $text-strong @return $text-strong
@function bulmaRgba($color, $alpha) @function bulmaRgba($color, $alpha)
@if type-of($color) != 'color' @if type-of($color) != 'color'
@return $color @return $color
@return rgba($color, $alpha) @return rgba($color, $alpha)
 End of changes. 3 change blocks. 
3 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)