I have found the Vikas and he is amazing developer, he had always delivered the product under the timeline, on budget and with 100% accuracy, He is totally problem solving guys.
Implementation of Control Directives in SASS
0 comments |
Sass Script supports control directives for including styles only under specific condition or including same style several times with variations. Their main purpose is to use them in mixins, those that are part libraries like Compass and requires flexibility.
@if
IF is one of the basics directives for control the flow. The style would be applied only if the condition returns anything else than false or null.
Example :
Result :
@for
for loop is a repetition control structure that allows you to efficiently write a loop that needs to execute a specific number of times.
Example :
Result :
@each
The for-loop is good if you are working with numbers. But if you want to work with list of words, than using the @each is better decision.
Example :
Result :
@while
If the step one that is in the for-loop is not good for you, than you must use the while. It will run until the condition is true.
Example :
Result :
Add new comment