Sha256: 4a0e955fcbe314b2de5b0b371c4d5457daec7512a038502d1d83e8fc146348f6
Contents?: true
Size: 1.24 KB
Versions: 5
Compression:
Stored size: 1.24 KB
Contents
// Calculate from-to breakpoints // ------------------------------------------------------------------------------- // @param $n [string] : how to calculate breakpoint // @param $key [string] : key of breakpoint // @param $i [number] : index of current breakpoint // ------------------------------------------------------------------------------- // @return calculated value @function flint-calc-breakpoint($n, $key, $i) { @if $n == "alias" { @if flint-get-value("settings", "grid") == "fixed" { @if flint-is-lowest-breakpoint($key) { @return 0; } @else { @return flint-get-value($key, "breakpoint"); } } @else if flint-get-value("settings", "grid") == "fluid" { @return flint-get-value($key, "breakpoint"); } } @else if $n == "next" { @if flint-is-lowest-breakpoint($key) { @return 0; } @else { @return flint-get-value(flint-steal-key(($i + 1)), "breakpoint"); } } @else if $n == "prev" { @if flint-is-highest-breakpoint($key) { @return flint-get-value($key, "breakpoint"); } @else { @return flint-get-value(flint-steal-key(($i - 1)), "breakpoint"); } } }
Version data entries
5 entries across 5 versions & 1 rubygems