Css
Provides a way to work with CSS stylesheets in a web application, with additional features and performance improvements.
See the Css and Javascript guide to learn how to work with the Css module.
Configuration
cacheProviderNameThe name of the cache provider to use. Default:enginecacheTtlThe TTL to use for the cache. DefaultCACHE_TTL_LONGESTisHttpCacheWhether to send HTTP Cache headers or not. Default:falsehttpCacheMaxAgeThe TTL of the HTTP Cache. Default:CACHE_TTL_LONGESTlastModifiedTimestampThe timestamp of the last modification to the CSS files, or any other string that will serve as a unique identifier to force browser cache reloading when needed. Default:falsedefaultSetOrderThe default order to assign to sets when no order is specified. Default:100isMinifyWhether to minify the CSS code or notresponsiveWidthBreakpointsA hash array of the thresholds that will be used for responsive media queries, where each key is the breakpoint name, and each value the number of pixels. Default:tiny500small700normal980big1300huge1700
setsA hash array specifying the different Css sets this app has, where each key is the set name, and each value is a hash array with the following possible keys:orderThe numeric order of this set in relation to other sets. Used to control CSS overloading.directoryThe directory containing the CSS files.isIncludeAllFilesInDirectoryWhether to automatically add all the*.cssfiles found in the specifieddirectoryto this set or not.variablesFileA PHP file that will be included before any CSS pattern parsing. It can be used to store styling variables.isGenerateTextColorsCssHelpersUsing the$textColorsvariable defined in the specifiedvariablesFile, automatically generates CSS classes in the syntax.textColor_[color name]that assign the corresponding CSS text-color property. The$textColorsvariable must be a hash array where the key is the color name, and the value is a Color object.isGenerateBackgroundColorsCssHelpersUsing the$backgroundColorsvariable defined in the specifiedvariablesFile, automatically generates CSS classes in the syntax.backgroundColor_[color name]that assign the corresponding CSS background-color property. The$backgroundColorsvariable must be a hash array where the key is the color name, and the value is a Color object.isGenerateBackgroundGradientsCssHelpersUsing the$gradientsvariable defined in the specifiedvariablesFile, automatically generates CSS classes in the syntax.backgroundGradient_[color name]that assign the corresponding CSS for a background gradient. The$gradientsvariable must be a hash array where the key is the color name, and the value is a Gradient object.
Last updated
Was this helpful?