1.0.1 • Published 4 years ago

stlyus-mixins v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Stylus Mixins

A collection of shorthand mixins for stylus-lang

Usage

yarn add stylus-mixins
@import "stylus-mixins"

Mixins

Border

MixinProperty
bborder
btborder-top
blborder-left
brborder-right
byborder-top & border-bottom
bxborder-left & border-right
rborder-radius

Colors

The c mixin

The c mixin works like this

input { c: white gray black 1 0 1; }

would expand to

input {
  color: white !important;
  border-color: gray;
  background-color: black !important;
}

note you can use 0 to omit arguments

MixinProperty
csee below
bgbackground
fgcolor

Misc

MixinProperty
ananimation
ddisplay
bsbox-shadow
trtransition
opopacity

Spacing

MixinProperty
ppadding
pbpadding-bottom
plpadding-left
prpadding-right
pxpadding-left & padding-right
pypadding-top & padding-bottom
mmargin
mbmargin-bottom
mlmargin-left
mrmargin-right
mxmargin-left & margin-right
mymargin-top & margin-bottom

Typography

MixinProperty
fffont-family
fsfont-size
fwfont-weight
tdtext-decoration