fixed
view sourceFix an element's position and assign its coordinates, all in one line of SCSS.
- use-name
-
scut-fixed
- type
- mixin, with default-values placeholder
- arguments
-
-
$coordinates
- default
-
0 n n 0
-
Notice the example in the bottom right.
example
HTML
<div>See the bottom right</div><div class="eg-fixed">Here's your example.</div>
SCSS
.eg-fixed {
@include scut-fixed(n 2em 1em n);
}
compiled CSS
.eg-fixed {
position: fixed;
right: 2em;
bottom: 1em;
}
Result
See the bottom right
Here's your example.
See information about
scut-coords
.