Want to take your software engineering career to the next level? Join the mailing list for career tips & advice Click here

btns

A set of css utilities for constructing beautiful responsive buttons

Subscribe to updates I use btns


Statistics on btns

Number of watchers on Github 336
Number of open issues 2
Average time to close an issue 4 days
Main language CSS
Average time to merge a PR 16 days
Open pull requests 2+
Closed pull requests 2+
Last commit over 2 years ago
Repo Created over 6 years ago
Repo Last Updated almost 3 years ago
Size 159 KB
Homepage http://mrmrs.io/btns
Organization / Authormrmrs
Latest Releasev1.0.0
Contributors3
Page Updated
Do you use btns? Leave a review!
View open issues (2)
View btns activity
View on github
Book a Mock Interview With Me (Silicon Valley Engineering Leader, 100s of interviews conducted)
Software engineers: It's time to get promoted. Starting NOW! Subscribe to my mailing list and I will equip you with tools, tips and actionable advice to grow in your career.
Evaluating btns for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

What is BTNS

A small css module that allows for nice-looking, fully-responsive buttons.

Getting started

You can just grab the css.

If you want to customize btns it comes with a few handy gulp tasks for development. Set up the project by cloning the repo, navigating into it, then installing the necessary dependencies by running:

Note you might not need to install with sudo

git clone git@github:mrmrs/btns.git && cd btns
sudo npm install -g gulp browser-sync
sudo npm install .

To run the development environment

Once you've run npm install just run this very complicated command in your terminal to start gulp

npm start

This will watch the sass directory and do the following on file change: Compile scss files down to css/app.css Run autoprefixer on css/app.css (this allows you to keep vendor prefixes out of your source files) Run csslint and spit the output to your terminal window where you are running gulp Run an instance of livereload. With the chrome and safari extensions, you can see changes in the browser without hitting refresh

To minify assets for production

gulp production

or just to minify the css

gulp minify-css

This will Compile scss files down to css/app.css Run autoprefixer on css/app.css (this allows you to keep vendor prefixes out of your css) Minify all css files in the ./css directory Compress / minify all images in the ./img directory Compress / minify all svg elements in the ./img/svg/ directory

License

The MIT License (MIT)

Copyright (c) 2014 @mrmrs

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

btns open pull requests (View All Pulls)
  • Allow <button> elements to be coloured
  • Make buttons names consistent
btns questions on Stackoverflow (View All Questions)
  • btns (as anchor tags) not at same height but is side by side
  • jQuery remove class on btns to add on btn clicked
  • 3 radio btns - 2 to show - 1 to hide input
  • EXTJS--multiple btns with same handler. How to add cls when btn is clicked then remove when another btn is clicked?
  • Toggling Background-Color with Radio Btns works! But the Cookie does not?
  • jQuery issue with $(this).toggleClass and Multiple btns and elements
  • Dynamically Added btns with different PopOvers?
  • Display error message in span when radio btns group is not selected
  • jQuery Recommended way to Style Radio btns & Checkboxes
  • How can i change the bg color of an html file when clicking btns in the transparent swf file it contains
  • Method for adding according to form Btns
  • I get 3 btns to set the property.But failed with "exc_bad_access" when clicked.I run it on iOS5 using ARC, can anyone help me?
btns list of languages used
btns latest release notes
v1.0.0 buttons buttons buttons buttons buttons buttons buttons

BUTTONS BUTTONS & MOAR BUTTONS!!!

Initial release of a collection of button styles that I commonly use and thought might be useful as a boilerplate for designing your own buttons.

Contains a set of css utilities that allow for constructing a variety of responsive, stylish buttons. 665B of code when minified and gzipped so hopefully it wont bloat out your codebase toooooooo much.

Other projects in CSS
Powered by Autocode - Instant Webhooks, Scripts and APIs
Autocode logo wordmark