Git Product home page Git Product logo

common-css-'s Introduction

common-css

Readymade class for common css as: padding, margin, flex, position, float

Quick start

This package can be installed with:

$ npm install khuri-common-css

Static html

<link rel="stylesheet" href="/css/common.css" />
<link rel="stylesheet" href="/css/common.min.css" />

How to Use

  <div class="fs-12"> Your Content </div>  <!--for font-size 12px;-->
  <div class="m-t-10"> Your Content </div> <!--for margin-top 10px;-->
  <div class="p-t-10"> Your Content </div> <!--for padding-top 10px;-->
  <div class="lh-15"> Your Content </div>  <!--for line-height 15px;-->
  <div class="dis-none"> Your Content </div>  <!--for display:none;-->
  <div class="pos-relative"> Your Content </div>  <!--for position:relative;-->

Defualt classes

    .m-t-10 /* for margin-top:10px */
    .m-r-10 /* for margin-right:10px */
    .m-b-10 /* for margin-bottom:10px */
    .m-l-10 /* for margin-left:10px */
    
    .p-t-10 /* for padding-top:10px */
    .p-r-10 /* for padding-right:10px */
    .p-b-10 /* for padding-bottom:10px */
    .p-l-10 /* for padding-left:10px */
    
    .fs-8 /* for font-size:8px */
    .fs-9 /* for font-size:9px */
    
    .m-l-auto {margin-left: auto;}
    .m-r-auto {margin-right: auto;}
    .m-lr-auto {margin-left: auto; margin-right: auto;}

Screenshot for reference

edit

common-css-'s People

Contributors

khurshed52 avatar

Stargazers

Shujaat Ali avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.