concept argument in category css

appears as: rguments, Arguments, n argument, arguments
Sass and Compass in Action

This is an excerpt from Manning's book Sass and Compass in Action.

Arguments can also have default values, which are used if the mixin isn’t passed enough arguments when it’s @included. Default arguments take the form $name: default-value. The value can be any normal CSS value, including other arguments.

Listing 2.3. Setting default values for arguments
@mixin link-colors( $normal, $hover: $normal, $visited: $normal ) { color: $normal; &:hover { color: $hover; } &:visited { color: $visited; } }

2.5.3. Passing arguments to a mixin

Mixins don’t have to always produce the exact same style. A mixin can take arguments that allow the @includer to customize the exact style the mixin produces. Arguments are just variables that are assigned to CSS values provided when the mixin is @included. If you’ve used JavaScript, this works just like a function: