"Bootstrap Outline Buttons"
Bootstrap 3.0.3 Snippet by StartBootstrap

<div class="container"> <div class="row"> <br> <h2>Outline Buttons</h2> <p>Add the class <code>.btn-outline</code> to any Bootstrap button style.</p> <a class="btn btn-primary btn-outline">Primary Button</a> <a class="btn btn-success btn-outline">Success Button</a> <a class="btn btn-warning btn-outline">Warning Button</a> <a class="btn btn-danger btn-outline">Danger Button</a> <a class="btn btn-default btn-outline">Default Button</a> <br> <br> <h3>Button Sizes</h3> <a class="btn btn-primary btn-outline btn-lg">Large Button</a> <a class="btn btn-success btn-outline btn-sm">Small Button</a> <a class="btn btn-danger btn-outline btn-xs">Extra Small Button</a> </ul> </div> </div>
.btn-outline { background-color: transparent; color: inherit; transition: all .5s; } .btn-primary.btn-outline { color: #428bca; } .btn-success.btn-outline { color: #5cb85c; } .btn-info.btn-outline { color: #5bc0de; } .btn-warning.btn-outline { color: #f0ad4e; } .btn-danger.btn-outline { color: #d9534f; } .btn-primary.btn-outline:hover, .btn-success.btn-outline:hover, .btn-info.btn-outline:hover, .btn-warning.btn-outline:hover, .btn-danger.btn-outline:hover { color: #fff; }

Similar snippets: See More


Umran Hussein 2014-01-10 10:10:15
    Neat! Thanks!
Modex 2014-03-31 11:47:47
    Last style must expanded for :active state for all buttons
alex forselius 2014-09-30 10:46:21
    This style doesn't exist at all in the regular bootstrap build. Is this an extension to Bootstrap? Where can I get a such?
Phureewat Aphibansri 2014-10-31 07:23:07
    Add this below code to your button.less (Working with BS 3.3.0)
mindctrl 2014-11-13 04:27:28
    Took the Less version from Phureewat Aphibansri and converted it to Sass.

schel4ok 2014-12-08 19:28:11
    I try to use this style in Joomla 3.3 protostar template (bootstrap included). Primary button is always colored.
So I must add this css code:
.btn-primary.btn-outline {color: #428bca; background: none;}
.btn-primary.btn-outline:hover {background: #428bca;}
Kyle Zeller 2015-03-11 18:00:02
    Love it. Thanks!
bobby 2015-04-07 20:42:34
mark 2016-11-13 03:50:20
    how to add class?

Commenting will be back soon.