dot-style
v1.1.10
Published
CSS Utilities for sizing
Downloads
13
Readme
dot-style
Simple styling class helpers for adjusting styles.
Quick start
Several start options
- Clone the repo:
git clone [email protected]:programmerkgit/dot-style.git
- Install with npm:
npm install dot-style
What's included
Yet To Write
Bugs and feature requests
Yet To Write
documentation
Get started
You add css file dot-style/dist/dot-style.css
to you project.
usage
Box Spacing
You can style padding, margin.
You can choose number from between 0 to 500, incremented step by 2.
Padding
<p class="pt-30px"></p>
<p class="pr-30px"></p>
<p class="pb-30px"></p>
<p class="pl-30px"></p>
<p class="px-30px"></p>
<p class="py-30px"></p>
<p class="p-30px"></p>
Margin
<p class="mt-30px"></p>
<p class="mr-30px"></p>
<p class="mb-30px"></p>
<p class="ml-30px"></p>
<p class="mx-30px"></p>
<p class="my-30px"></p>
<p class="m-30px"></p>
Dimension
You can set width
, max-width
, min-width
, height
, max-height
, min-height
<p class="width-30px"></p>
<p class="max-width-30px"></p>
<p class="min-wdith-30px"></p>
<p class="height-30px"></p>
<p class="max-height-30px"></p>
<p class="min-height-30px"></p>
You can choose number from between 0 to 1000, incremented step by 5.
Line height
You can set lien-height
<p class="line-height-30px"></p>
You can choose number from between 0 to 100, incremented by step 2.
Positioning
You can set top
, right
, bottom
, left
.
You can choose number from between 0 to 1000, incremented by step 5.
<p class="t-30px"></p>
<p class="r-35px"></p>
<p class="b-40px"></p>
<p class="l-45px"></p>
<p class="x-50px"></p>
<p class="y-55px"></p>
z-index
You can set z-index
.
you can choose number from between 1-50 and from between 2000-2050.
<p class="z-index-1"></p>
<p class="z-index-2"></p>
<p class="z-index-2000"></p>
<p class="z-index-2001"></p>
Golden ratio of font-size, line-height and margins
Font size and line height and text block margin has a golden ratio.
You can set golden ratio by specifying fontsize.
<p class="gr-16px"></p> => font-size is set 16px, and correspoinding line-height, margin-top, margin-bottom are set.
Contributing
Yet To Write
Community
Yet To Write
My SNS Accounts
This project uses Bootstrap code
Here displays Licence of Boot``strap
The MIT License (MIT)
Copyright (c) 2011-2019 Twitter, Inc. Copyright (c) 2011-2019 The Bootstrap Authors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.