vazco / universe-css-helpers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vazco/Universe CSS Helpers Class

 

A shortcuts for adding margins like mls = margin left small

Installation

meteor add universe:css-helpers

Shortcuts are made according following rules:

  • mls = margin left small

  • mts = margin top small

  • mbm = margin bottom medium

  • man = margin none

  • mhm = margin horizontal medium

  • mvs = margin vertical small

  • mrt = margin right tiny

  • ma = margin auto

  • prl = padding right large

  • pbs = padding bottom small

  • tac = text align center

  • tar = text align right

  • tal = text align left

  • fl = float left

  • fr = float right

Customization

You can import it as a mixin and defined own spacing for: tiny, small, medium, large

@import "{universe:css-helpers}/shortClassesMixin.import.less";

.ui {
  .shortClasses(0.25rem, 0.5rem, 1rem, 2rem);
}

License

Like every package maintained by Vazco, Universe CSS Helpers Class is MIT licensed.

About


Languages

Language:JavaScript 88.1%Language:CSS 11.9%