Skip to content
Snippets Groups Projects
Commit 46c682f9 authored by alexisben's avatar alexisben
Browse files

fix alphaColor mixin

parent be66bb7d
No related branches found
No related tags found
No related merge requests found
// Les couleurs étant stockées dans des variables CSS, nous utilisons color-mix pour appliquer de l'alpha sur des couleurs en hexa
@function alphaColor($color, $alpha)
$percent: $alpha
@if ($percent <= 1 && $percent > 0)
$percent: $alpha * 100
@if ($percent <= 1 and $percent > 0)
$percent: $alpha * 100%
@if ($percent == 0) // Permet d'éviter le bug de compilation en production qui renvoie "0" au lieu de "0%"
@return transparent
@else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment