@nitro-ui/utility-position
v1.0.13
Published
Utility position component for Nitro UI.
Downloads
88
Readme
Nitro UI: Utility Position
Utility Position component for Nitro UI.
Getting Started
Get latest version by installing via NPM @nitro-ui/utility-position:
npm install @nitro-ui/utility-position
Usage:
Positioning
<div class="u-relative">u-relative</div>
<div class="u-absolute">u-absolute</div>
<div class="u-fixed">u-fixed</div>
<div class="u-static">u-static</div>
Pin
<div class="u-top-right">Push to top 0, right 0 </div>
<div class="u-top-left">Push to top 0, left 0</div>
<div class="u-bottom-right">Push to bottom, right 0</div>
<div class="u-bottom-left">Push to bottom, left 0</div>
Z indexes
z-index support up to 5 ordering. Use u-zindex-auto
for auto property.
<div class="u-zindex-0">Z index 0</div>
<div class="u-zindex-1">Z index 1</div>
<div class="u-zindex-2">Z index 2</div>
<div class="u-zindex-3">Z index 3</div>
<div class="u-zindex-4">Z index 4</div>
<div class="u-zindex-5">Z index 5</div>
<div class="u-zindex-auto">Z index auto</div>
Responsive Usage
By default the responsive support for position is false
. To turn it on you will need to overwrite the variable value $responsive-position-mobile
to true
in your project level.
<div class="u-relative@mobile">u-relative</div>
<div class="u-absolute@mobile">u-absolute</div>
<div class="u-fixed@mobile">u-fixed</div>
<div class="u-static@mobile">u-static</div>
<div class="u-top-right@mobile">Push to top 0, right 0 </div>
<div class="u-top-left@mobile">Push to top 0, left 0</div>
<div class="u-bottom-right@mobile">Push to bottom, right 0</div>
<div class="u-bottom-left@mobile">Push to bottom, left 0</div>
<div class="u-zindex-0@mobile">Z index 0</div>
<div class="u-zindex-1@mobile">Z index 1</div>
<div class="u-zindex-2@mobile">Z index 2</div>
<div class="u-zindex-3@mobile">Z index 3</div>
<div class="u-zindex-4@mobile">Z index 4</div>
<div class="u-zindex-5@mobile">Z index 5</div>
<div class="u-zindex-auto@mobile">Z index auto</div>
Development
To extends, develop or contribute to this component, you're required to fork our main repository and made a pull request.
Development Requirements
Development tools required for this component are:
Ruby and SASS are optional if you're fully using node-sass from npm for development.
Development Setup
Run:
npm install
Compile
Run:
grunt
TODO
Nothing todo for now.
CHANGELOG
All notable changes to this project will be documented in this file. For now, let's keep TODO and CHANGELOG in README file. Keeping things simple.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[0.0.0-beta] - 2019-07-18
Added
- Initial setup