Alfonso Nishikawa Alfonso Nishikawa - 1 year ago 180
Sass (Sass) Question

In ExtJS, what is dynamic() in SCSS?

I am creating a SCSS for a component, and looking at ExtJS SCSS I find in Base.scss that a lot of variables (if not all) are defined as:

$form-field-empty-color: dynamic(gray);
$form-field-border-color: dynamic($neutral-color);
$form-field-border-width: dynamic(1px);
$form-field-border-style: dynamic(solid);

What is that
function? My fu skill in search seems not to be the at the needed level :C


Answer Source

Ext uses Fashion, which is an extension of SASS. See:

It's somewhat similar to !default in SASS, but it defers computation until all variables are known.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download