function mixin_gradient($results, $values) { $start = isset($results["gradient-start-color"]) ? $results["gradient-start-color"] : ''; $end = isset($results["gradient-end-color"]) ? $results["gradient-end-color"] : ''; $start_opacity = isset($results["gradient-start-opacity"]) ? $results["gradient-start-opacity"] : ''; $end_opacity = isset($results["gradient-end-opacity"]) ? $results["gradient-end-opacity"] : ''; $stop = isset($results["gradient-stop"]) && $results["gradient-stop"] != '' ? $results["gradient-stop"] . "%" : '45%'; $start = maxUtils::hex2rgba($start, $start_opacity); $end = maxUtils::hex2rgba($end, $end_opacity); $important = $this->is_important() ? "!important" : ""; $values = $this->add_include($values, "linear-gradient({$start},{$end},{$stop},{$important})"); $values = array_diff_key($values, $results); return $values; }