return a valid style
avaible values : "default","primary","success","info","warning","danger"
@param string|int $cssStyle
@return string
431315
public static function getStyle($cssStyle, $prefix) {
		if (is_int($cssStyle)) {
			$styles=CssRef::Styles($prefix);
			if ($cssStyle<sizeof($styles)&&$cssStyle>=0) {
				return CssRef::styles($prefix)[$cssStyle];
			} else {
				throw new \Exception("La valeur passée a propriété `Style` ne fait pas partie des valeurs possibles : index '".$cssStyle."' inexistant");
			}
		}
		if (JString::startsWith($cssStyle, "-")===true) {
			$cssStyle=substr($cssStyle, 1);
		}
		if (JString::startsWith($cssStyle, $prefix)===false) {
			$cssStyle=$prefix."-".$cssStyle;
		}
		return $cssStyle;
	}
84872
public function cssClass($type)
    {
        $framework = $this->getFramework();
        $classes = $this->getClasses($framework);

        if (property_exists($classes, $type)) {
            return $classes->$type;
        }

        return '';
    }
1163316
public function getStyle($key)
    {
        $styles = Helpers::cssStringToArray($this->getAttribute('style'));
        return (isset($styles[$key]) ? $styles[$key] : null);
    }
677588
protected function generateCss($scssPath, $cssPath) {
        $cssDirName = preg_replace('/^(.+)(\/|\\\\)[^\/\\\\]+$/', '\\1', $cssPath);
        if (!is_dir($cssDirName)) {
            mkdir($cssDirName, 0777);
        }
        $response = trim(shell_exec("$this->sassBinary $scssPath $cssPath --style $this->style $this->flags 2>&1"));
        if (strpos($response, 'error') !== false) {
            if ($response === $this->currentError) {
                echo '.';
            } else {
                echo substr($scssPath, strlen($this->entryPath)) . "\n" . $response . "\n";
            }
            $this->currentError = $response;
        }
        else {
            if ($this->currentError) {
                echo "fixed\n";
                $this->currentError = null;
            }
            echo substr($scssPath, strlen($this->entryPath)) . "\n";
        }
    }
994308
private function createCSSStyleFill(PHPExcel_Style_Fill $pStyle)
    {
        // Construct HTML
        $css = array();

        // Create CSS
        $value = $pStyle->getFillType() == PHPExcel_Style_Fill::FILL_NONE ?
            'white' : '#' . $pStyle->getStartColor()->getRGB();
        $css['background-color'] = $value;

        return $css;
    }
943918
public function getStyleColorCssAction()
    {
        $primaryColor = null;
        $secondaryColor = null;
        $view = new ViewModel();
        $response = $this->getResponse();

        $view->setTerminal(true);

        $response->getHeaders()
            ->addHeaderLine('Cache-Control', 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0')
            ->addHeaderLine('Pragma'       , 'no-cache')
            ->addHeaderLine('Content-Type' , 'text/css;charset=UTF-8');

        $schemeData = $this->getPlatformSchemeSvc()->getCurrentScheme(true);

        if ($schemeData) {

            $colors = json_decode($schemeData->getColors(), true);

            if (is_array($colors)) {
                foreach ($colors as $colorKey => $colorValue) {
                    $view->$colorKey = $colorValue;
                }
            }
        }

        return $view;
    }
549937
public function style($style)
    {
        if (is_array($style)) {
            $style = implode('; ', array_map(function ($value, $attribute) {
                return "{$attribute}: {$value}";
            }, $style, array_keys($style)));
        }

        return $this->attribute('style', $style);
    }
902760
public function getCss()
	{
		$css = $this->css;
		$options = $this->options;
		if($this->isCombineEnabled())
			$this->combine('css', $css);

		// avoiding duplicate assets
		$css = array_flip(array_flip($css));

		array_walk($css, function(&$value) use($options){
			if(!empty($options['baseUrl'])&&strpos($value,'http://')===false)
				$value = $options['baseUrl'].$value;
		});
		return $css;
	}
515345
public static function css($css = null)
    {
        if (!is_null($css)) {
            self::$css = array_merge(self::$css, (array) $css);

            return;
        }

        $css = array_get(Form::collectFieldAssets(), 'css', []);

        static::$css = array_merge(static::$css, $css);

        return view('admin::partials.css', ['css' => array_unique(static::$css)]);
    }
1323749
public function get_css($path=''){
    if ( $r = $this->get_view($path, 'css') ){
      return \CssMin::minify($r);
    }
    return false;
  }
1304422
static public function cssVer() {
        static $ver = '';
        if (!$ver) {
            $conf = new \Yaf_Config_Ini(ROOTPATH . '/config/env.ini');
            $ver = $conf->version->css;
        }
        return $ver;
    }
513990
public function cmsPageCss()
    {
        $currentView = $this->currentViewHelper->getCurrentView();
        if (!$currentView || !$this->viewCssBuilder->cssFileExists($currentView)) {
            return '<!-- CSS File not found -->';
        }

        return sprintf(
            '<link href="%s" rel="stylesheet" type="text/css" rel="stylesheet"/>',
            $this->viewCssBuilder->getHref($currentView)
        );
    }
1083820
public function getStyle($name, $subname = null)
    {
        $name    = strtolower($name);
        $subname = strtolower($subname);
        
        if (strpos($name, '.') !== false && !$subname) {
            list($name, $subname) = explode('.', $name);
        }
        
        if (($mappings = $this->getStyleMappings()) && isset($mappings[$name])) {
            
            if (!$subname) {
                $subname = $name;
            }
            
            if (is_array($mappings[$name])) {
                return isset($mappings[$name][$subname]) ? $mappings[$name][$subname] : null;
            } else {
                return $mappings[$name];
            }
            
        }
        
        return $name;
    }
859045
public function getStyles(): string
    {
        $str = '';

        if(isset($this->styles))
            foreach($this->styles as $style)
                if(isset($style['content']))
                    $str .= '<style type="'.$style['type'].'">'.$style['content'].'</style>';
                elseif(isset($style['href']))
                    $str .= '<link rel="'.$style['rel'].'" type="'.$style['type'].'" href="'.$style['href'].'"'.(($style['defer']) ? ' defer async' : '').' />';
                elseif(isset($style['raw']))
                    $str .= $style['raw'];

        return $str;
    }
1127083
private function _createCSSStyleBorders(PHPExcel_Style_Borders $pStyle) {
		// Construct CSS
		$css = array();

		// Create CSS
		$css['border-bottom']	= $this->_createCSSStyleBorder($pStyle->getBottom());
		$css['border-top']		= $this->_createCSSStyleBorder($pStyle->getTop());
		$css['border-left']		= $this->_createCSSStyleBorder($pStyle->getLeft());
		$css['border-right']	= $this->_createCSSStyleBorder($pStyle->getRight());

		// Return
		return $css;
	}
656951
private function _createCSSStyle(PHPExcel_Style $pStyle) {
		// Construct CSS
		$css = '';

		// Create CSS
		$css = array_merge(
			$this->_createCSSStyleAlignment($pStyle->getAlignment())
			, $this->_createCSSStyleBorders($pStyle->getBorders())
			, $this->_createCSSStyleFont($pStyle->getFont())
			, $this->_createCSSStyleFill($pStyle->getFill())
		);

		// Return
		return $css;
	}
988908
private function getCss($cssFiles = array())
    {
        $css = '';
        foreach ($cssFiles as $file) {
            if (file_exists($file)) {
                $css .= file_get_contents($file) . "\n";
            }
        }
        return $css;
    }