I know the properties inheritand initial, but I do not want them. I want to give the same meaning to the last CSS rule. Basically, a placeholder or dummy.
The reason I want to do this is because I use mixin compass link colors:
@mixin link-colors($normal, $hover: false, $active: false, $visited: false, $focus: false) {
color: $normal;
@if $visited {
&:visited {
color: $visited;
}
}
@if $focus {
&:focus {
color: $focus;
}
}
@if $hover {
&:hover {
color: $hover;
}
}
@if $active {
&:active {
color: $active;
}
}
}
I don't want to set anything for the first argument, which is $ normal. I know that I can assign values to the corresponding names as follows:
@include link-colors($hover: $nav-link-hover-color, $active: $nav-link-hover-color);
However, this will give me an error since I didn’t assign anything to $ normal.
As you can see, $ normal is not optional; however, I only want to set the colors for the rest, not normal. He already set the color before, and I do not want to redefine it.
, ? link-colors(white) ?