Skip to content
No description, website, or topics provided.
CSS JavaScript Makefile HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.make
demo
styles
.bowerrc
.gitignore
Makefile
README.md
auto-install.js
bower.json
make.js
package.json

README.md

Sasslets - position

Installation

bower install sasslets-position --save-dev
npm install sasslets-position --save-dev

Usage

signature

@include position(fixed|absolute|relative|etc, $top, $right, $bottom, $left )

shortcuts

@include absolute( $top, $right, $bottom, $left )
@include fixed( $top, $right, $bottom, $left )
@include relative( $top, $right, $bottom, $left )

example 1

@include position( fixed, 0, 0, null, 0 )

returns:

position: fixed;
top: 0;
right: 0;
left: 0;

example 2

@include position( absolute, 0, 0 )

returns:

position: absolute;
top: 0;
right: 0;

example 3

@include fixed( 1rem, 1rem )

returns:

position: fixed;
top: 1rem;
right: 1rem;

example words 1

@include fixed( top )

returns:

position: fixed;
top: 0;
right: 0;
left: 0;

example words 2

@include fixed( left )

returns:

position: fixed;
top: 0;
left: 0;
bottom: 0;

example words 3

@include fixed( top, left )

returns:

position: fixed;
top: 0;
left: 0;

example words 4

@include fixed( bottom )

returns:

position: fixed;
bottom: 0;
left: 0;
right: 0;
You can’t perform that action at this time.