项目作者: ganapativs

项目描述 :
Awesome buttons for awesome projects!
高级语言: CSS
项目地址: git://github.com/ganapativs/bttn.css.git
创建时间: 2016-09-26T17:36:00Z
项目社区:https://github.com/ganapativs/bttn.css

开源协议:MIT License

下载


bttn.css

Awesome buttons for awesome projects!

Demo | @ganapativs/bttn-css-awesome-buttons-for-awesome-projects-baa2486bcb3d">Medium Article | ProductHunt | cdnjs

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 (Beta)

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
  • bttn-no-outline (Don’t show outline when navigating with keyboard/interact using mouse or touch)

Install

Bower

  1. bower install bttn.css

CDN - cdnjs

  1. https://cdnjs.com/libraries/bttn.css

CSS File

Usage

Include bttn.min.css in head of your html file and start using bttn CSS classes in your button.

  1.  

Environment Setup

:information_source: Build process uses yarn, you can also use npm instead.

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

  1. yarn

Compile stylus to css

  1. yarn start

Dev environment

  1. yarn run dev

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

  1. yarn run build

View bttn.css demo in browser

  1. open build/index.html in browser

TODO

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

Mentions