Example
Pseudo
Creates a background and shadow for an element. The first parameter needs to be a number between 1 and 5. The second parameter default to "0", but should be a string with a number, this string/number will be multiplied with the base size. In the example the padding will be 16px.
Hello
HTML:
<div class="mixin-example-pseudo">Hello</div>
SCSS:
.mixin-example-pseudo {
&:before {
@include pseudo(block, static, "hi");
}
}
Classes
Mixin | Parameters | Values |
pseudo | display, pos, content | (CSS display value), (CSS position value), (string) |