From: Mark Otto Date: Mon, 10 Aug 2015 05:48:48 +0000 (-0700) Subject: shoutout to outline buttons X-Git-Tag: v4.0.0-alpha~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68e4d897ba9ecb1c82c7da9d532126c4847a9753;p=thirdparty%2Fbootstrap.git shoutout to outline buttons --- diff --git a/docs/components/buttons.md b/docs/components/buttons.md index e0f6796b92..95e3a14c22 100644 --- a/docs/components/buttons.md +++ b/docs/components/buttons.md @@ -54,6 +54,19 @@ When using button classes on `` elements that are used to trigger in-page fun {% endexample %} +## Outline buttons + +In need of a button, but not the hefty background colors they bring? Add the `.btn-outline` modifier class to remove all background images and colors on any button. + +{% example html %} + + + + + +{% endexample %} + + ## Sizes Fancy larger or smaller buttons? Add `.btn-lg`, `.btn-sm`, or `.btn-xs` for additional sizes. diff --git a/scss/_buttons.scss b/scss/_buttons.scss index 12805dd2e3..6a08678622 100644 --- a/scss/_buttons.scss +++ b/scss/_buttons.scss @@ -82,6 +82,12 @@ fieldset[disabled] a.btn { @include button-variant($btn-danger-color, $btn-danger-bg, $btn-danger-border); } +// Remove all backgrounds +.btn-outline { + background-color: $body-bg; + background-image: transparent; +} + // // Link buttons