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:

    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)

    ‘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)

    There is no assurance of the great fact in question [namely, immortality]. All the arguments are mere probabilities, analogies, fancies, whims. We believe, or disbelieve, or are in doubt according to our own make-up—to accidents, to education, to environment. For myself, I do not reach either faith or belief ... that I—the conscious person talking to you—will meet you in the world beyond—you being yourself a conscious person—the same person now reading what I say.
    Rutherford Birchard Hayes (1822–1893)