Hide Content with an Expander

Adding an Expander The only changes required are to the template and Sass. First, you should start by creating a container element for your expander. This needs to contain two children: a ‘head’ element, which is what always shows and will trigger the expansion when clicked, and a ‘body’ element which is what shows when… Continue reading Hide Content with an Expander

Issue of adding If in Sass files

void if constructions using exposed Sass variables. For example: @if $sc-color-secondary == $12345 { background-color: $sc-color-primary;} @else { background-color: $56789;} The problem with this is that the frontend does not know the else condition. Passing values within or grouping variables as mixins causes a similar issue. All of these issues are solved during the backend… Continue reading Issue of adding If in Sass files

User-Defined Function Calls in Sass

Avoid user-defined function calls. For example, assuming that $sc-primary-color is also: $sc-color-secondary: myfunc($sc-primary-color) /*editable(…) In this example, you set the result of an exposed variable, such as $sc-color-secondary, to a custom function, myfunc($sc-primary-color). Assuming $sc-primary-color is also declared as editable, when the SMT administrator changes the primary color value, the primary color value compiles quickly… Continue reading User-Defined Function Calls in Sass

SASS

Syntactically Awesome Style Sheet Sass is the most mature, stable, and powerful professional-grade CSS extension language   Sass is a CSS pre-processor. It is fully compatible with every version of CSS. Sass reduces the repetition of CSS and therefore saves time. Sass consists of two syntaxes. The original syntax, called “the indented syntax,” uses a syntax similar… Continue reading SASS