diogopalhais / bttn.css

Awesome buttons for awesome projects!

Home Page:https://bttn.surge.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bttn.css

Awesome buttons for awesome projects!

##Demo - https://bttn.surge.sh/

Button style classes

  • bttn-simple
  • bttn-bordered
  • bttn-minimal
  • bttn-stretch
  • bttn-jelly
  • bttn-gradient
  • bttn-fill
  • bttn-material-circle
  • bttn-material-flat
  • bttn-pill
  • bttn-float
  • bttn-unite
  • bttn-slant

Button sizes

  • bttn-xs
  • bttn-sm
  • bttn-md
  • bttn-lg

Button Colors

  • bttn-default
  • bttn-primary
  • bttn-warning
  • bttn-success
  • bttn-danger
  • bttn-royal

Button helper classes

  • bttn-block

Usage

Include 'bttn.min.css' in head of your html file and start using class in your button.

<button class="bttn-material-circle bttn-md">
  <i class="icon-menu"></i>
</button>

Environment Setup

ℹ️ Build process uses yarn, you can also use npm instead.

####Install dependencies - stylus, autoprefixer-stylus and clean-css

yarn

####Compile stylus to css

yarn start

####Dev environment

yarn run dev

####Minify css for production and build example folder javascript files(Webpack)

yarn run build

####View bttn.css demo in browser

open build/index.html in browser

##TODO

  • Add loading & done state animations
  • Test on older version of the browsers

About

Awesome buttons for awesome projects!

https://bttn.surge.sh/

License:MIT License


Languages

Language:CSS 71.6%Language:JavaScript 26.7%Language:HTML 1.7%