Sass (stylesheet Language) - Mixins - Arguments

Arguments

Mixins also support arguments.

@mixin left($dist) { float: left; margin-left: $dist; } #data { @include left(10px); }

Would compile to:

#data { float: left; margin-left: 10px; }

Read more about this topic:  Sass (stylesheet Language), Mixins

Famous quotes containing the word arguments:

    Argument is conclusive ... but ... it does not remove doubt, so that the mind may rest in the sure knowledge of the truth, unless it finds it by the method of experiment.... For if any man who never saw fire proved by satisfactory arguments that fire burns ... his hearer’s mind would never be satisfied, nor would he avoid the fire until he put his hand in it ... that he might learn by experiment what argument taught.
    Roger Bacon (c. 1214–1294)

    ‘Tis happy, therefore, that nature breaks the force of all sceptical arguments in time, and keeps them from having any considerable influence on the understanding. Were we to trust entirely to their self-destruction, that can never take place, ‘till they have first subverted all conviction, and have totally destroy’d human reason.
    David Hume (1711–1776)

    When I am convinced of any principle, it is only an idea which strikes more strongly upon me. When I give the preference to one set of arguments above another, I do nothing but decide from my feeling concerning the superiority of their influence.
    David Hume (1711–1776)