0.0.2 • Published 10 years ago

whitecss v0.0.2

Weekly downloads
57
License
MIT
Repository
github
Last release
10 years ago

WhiteCss

WhiteCSS is CSS utility framework, whitecss provides many usable class utilities for margin, padding, border, font, color etc.

Using npm

npm install whitecss --save

Using bower

bower install whitecss --save

Utilities

1. Margin

CLASSSTYLE
.m-xxsmargin: 2px
.m-xsmargin: 5px
.m-smmargin: 10px
.m-mdmargin: 15px
.m-lgmargin: 30px
.m-xlgmargin: 50px
.m-xxlgmargin: 100px
.m-nonemargin: 0
.m-t-nonemargin-top: 0
.m-r-nonemargin-right: 0
.m-b-nonemargin-bottom: 0
.m-l-nonemargin-left: 0
.m-x-nonemargin-left: 0; margin-right: 0
.m-y-nonemargin-top: 0; margin-bottom: 0
------
.m-automargin: auto
.m-l-automargin-left: auto
.m-r-automargin-right: auto
.m-x-automargin-left: auto; margin-right: auto
CLASSSTYLE
.m-t-smmargin-top: 10px
.m-r-smmargin-right: 10px
.m-b-smmargin-bottom: 10px
.m-l-smmargin-left: 10px
.m-x-smmargin-left: 10px, margin-right: 10px
.m-y-smmargin-top: 10px, margin-bottom: 10px

Same classes works for xss,xs,md,lg,xlg,xxlg just replace suffix with sm

2. Padding

CLASSSTYLE
.p-xxspadding: 2px
.p-xspadding: 5px
.p-smpadding: 10px
.p-mdpadding: 15px
.p-lgpadding: 30px
.p-xlgpadding: 50px
.p-xxlgpadding: 100px
.p-nonepadding: 0
.p-t-nonepadding-top: 0
.p-r-nonepadding-right: 0
.p-b-nonepadding-bottom: 0
.p-l-nonepadding-left: 0
.p-x-nonepadding-left: 0; padding-right: 0
.p-y-nonepadding-top: 0; padding-bottom: 0
CLASSSTYLE
.p-t-smpadding-top: 10px
.p-r-smpadding-right: 10px
.p-b-smpadding-bottom: 10px
.p-l-smpadding-left: 10px
.p-x-smpadding-left: 10px, padding-right: 10px
.p-y-smpadding-top: 10px, padding-bottom: 10px

Same classes works for xss,xs,md,lg,xlg,xxlg just replace suffix with sm

3. Font

CLASSSTYLE
.font-xs, .h6font-size: 12px
.font-sm, .h5font-size: 14px
.font-md, .h4font-size: 18px
.font-lg, .h3font-size: 24px
.font-xlg, .h2font-size: 30px
.font-xxlg, .h1font-size: 36px
.text-primarycolor: #2e6da4
.text-successcolor: #398439
.text-defaultcolor: #cccccc
.text-infocolor: #269abc
.text-warningcolor: #d58512
.text-dangercolor: #d43f3a

4. Border

CLASSSTYLE
.bborder-width: 1px
.b-tborder-top-width: 1px
.b-rborder-right-width: 1px
.b-bborder-bottom-width: 1px
.b-lborder-left-width: 1px
.b-primaryborder-color: #2e6da4
.b-successborder-color: #398439
.b-defaultborder-color: #cccccc
.b-infoborder-color: #269abc
.b-warningborder-color: #d58512
.b-dangerborder-color: #d43f3a

5. Color

CLASSSTYLE
.bg-primarybackground-color: #2e6da4
.bg-successbackground-color: #398439
.bg-defaultbackground-color: #cccccc
.bg-infobackground-color: #269abc
.bg-warningbackground-color: #d58512
.bg-dangerbackground-color: #d43f3a

6. Position

CLASSSTYLE
.p-relativeposition: relative
.p-absoluteposition: absolute
.p-fixedposition: fixed
.p-staticposition: static

7. Width

CLASSSTYLE
.w-10width: 10% !important
.w-20width: 20% !important
.w-25width: 25% !important
.w-30width: 30% !important
.w-40width: 40% !important
.w-50width: 50% !important
.w-60width: 60% !important
.w-70width: 70% !important
.w-75width: 75% !important
.w-80width: 80% !important
.w-90width: 90% !important
.w-100width: 100% !important
------
.w-xsswidth: 50px !important
.w-xswidth: 100px !important
.w-smwidth: 150px !important
.w-mdwidth: 300px !important
.w-lgwidth: 500px !important
.w-xlgwidth: 750px !important
.w-xxlgwidth: 900px !important

8. Typography

CLASSSTYLE
.t-boldfont-weight: bold;
.t-regularfont-weight: 400;
.t-italicfont-style: italic;
.t-capitaltext-transform: uppercase; letter-spacing: .25em;
.t-lefttext-align: left
.t-centertext-align: center
.t-righttext-align: right
.t-justifytext-align: justify
.t-no-wrapwhite-space: nowrap
.t-underlinetext-decoration: underline
.t-deco-nonetext-decoration: none