You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

postcss-position-nib

Package Overview
Dependencies
377
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-position-nib

PostCSS plugin to shorthand position rules like nib does


Version published
Maintainers
1
Created

Readme

Source

PostCSS Position Nib Build Status

PostCSS plugin to shorthand position rules like nib does.

Input

.shorthand {
	relative: 0;
	absolute: 0;
	fixed: 0;
}

.full {
	relative: top right bottom left;
	absolute: top right bottom left;
	fixed: top right bottom left;
}

.oneDirection {
	absolute: top;
}
.oneDirectionPush {
	absolute: top 10px;
}

.twoDirection {
	absolute: top right;
}
.twoDirectionPush {
	absolute: top -10px right -50px;
}

.threeDirection {
	fixed: bottom right top;
}
.threeDirectionPush {
	fixed: bottom 10px right 10px top 10px;
}

Output

.shorthand {
	position: relative;
	position: absolute;
	position: fixed;
}

.full {
	position: relative;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.oneDirection {
	position: absolute;
	top: 0;
}
.oneDirectionPush {
	position: absolute;
	top: 10px;
}

.twoDirection {
	position: absolute;
	top: 0;
	right: 0;
}
.twoDirectionPush {
	position: absolute;
	top: -10px;
	right: -50px;
}

.threeDirection {
	position: fixed;
	bottom: 0;
	right: 0;
	top: 0;
}
.threeDirectionPush {
	position: fixed;
	bottom: 10px;
	right: 10px;
	top: 10px;
}

Usage

postcss([ require('postcss-position-nib') ])

See PostCSS docs for examples for your environment.

Keywords

FAQs

Package last updated on 03 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc