mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
Remove unused functions
This commit is contained in:
parent
56606b4050
commit
f725e9b3a0
@ -19,8 +19,6 @@ doc-subtab: functions
|
||||
<li><code>powerNumber($number, $exp)</code>: calculates the value of a number exposed to another one. Returns a number.</li>
|
||||
<li><code>colorLuminance($color)</code>: defines if a color is dark or light. Return a decimal number between 0 and 1 where <= 0.5 is dark and > 0.5 is light.</li>
|
||||
<li><code>findColorInvert($color)</code>: returns either 70% transparent black or 100% opaque white depending on the luminance of the color.</li>
|
||||
<li><code>removeUnit($number)</code>: removes the unit of a Sass number. So "10px" becomes "10" and "3.5rem" returns "3.5". Used for string concatenation.</li>
|
||||
<li><code>roundToEvenNumber($number)</code>: rounds a number to the closest but lower even one. So 23 becomes 22, and 7.5 returns 6.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -26,11 +26,3 @@
|
||||
@return rgba(#000, 0.7)
|
||||
@else
|
||||
@return #fff
|
||||
|
||||
@function removeUnit($number)
|
||||
@if type-of($number) == 'number' and not unitless($number)
|
||||
@return $number / ($number * 0 + 1)
|
||||
@return $number
|
||||
|
||||
@function roundToEvenNumber($number)
|
||||
@return floor($number / 2) * 2
|
||||
|
Loading…
Reference in New Issue
Block a user