Discover how to use our buttons in your forms, dialogs and more with our versatile classes - including various sizes, colors and states.
Usage
The mesh button should be prefixed with the .btn class which will give you access to
all of the classes outlined below.
They are designed to be used with the <button> element but you can also use
them on <a> tags, <input type="submit"> and
<input type="reset"> tags for ease of use.
You can have any combination of the classes listed below.
You can add color classes to brighten up the buttons by prefixing it with .btn-{color} class which will give you access to all of the classes outlined below.
For an outlined appearance add the classbtn-outline attribute to the end of the
elements tag. This will give the button a transparent background with a 1px border.
Note: Colors .btn-{color} need to be prefixed with this class
in order to achieve the desired effect.
Button blocks extend the full width of the container that they are in. Add them by using the btn-block class. If multiple block buttons are present, a slight margin bottom will
separate them.
You are able to add font-awesome icons to any button by adding the <i> tag
inside the <button>.
A <span> tag is required for the text inside the button.
This will give a slight margin around the icon.
Icon buttons are available in large, default and small.
You can also just use icons within a button by adding the<btn-justicon> class.
To make the button circular, add one of our border radius classes <br-circle>.
A loading class can be used with any button to add an animated spinner to the button using the :after pseudo selector. Typically this class will be used with Javascript.
You just simply
add the btn-loading class, which will in turn, make the text transparent and add the
spinner. The size of the button will remain the
same. Note: Any color classes can be added to the loading buttons.
Enable and disable a wide variety of button features as well as change the appearance of the default mesh button
via padding, font adjustments & shadows.
Variable
Value
Description
$button-enable-colored: true;
Boolean
Enables/disables the default colored mesh buttons.
$button-enable-disabled: true;
Boolean
Enables/disables the disabled button.
$button-enable-outline: true;
Boolean
Enables/disables the outlined button.
$button-enable-sizes: true;
Boolean
Enables/disables large & small buttons.
$button-enable-rounded: true;
Boolean
Enables/disables rounded buttons.
$button-enable-icons: true;
Boolean
Enables/disables icons and just icon buttons.
$button-enable-block: true;
Boolean
Enables/disables block buttons (width 100%).
$button-enable-loading: true;
Boolean
Enables/disables loading buttons (spinners).
$button-enable-shadows: true;
Boolean
Enables/disables shadows for buttons in their normal state and hover.
$button-padding-small: 8px 20px;
Pixel/em/rem
Padding amount for small sized buttons in pixels, em's or rem's.
$button-padding-medium: 14px 30px;
Pixel/em/rem
Padding amount for medium sized buttons in pixels, em's or rem's.
$button-padding-large: 20px 40px;
Pixel/em/rem
Padding amount for large sized buttons in pixels, em's or rem's.
$button-padding-round: 14px 40px;
Pixel/em/rem
Padding amount for round sized buttons in pixels, em's or rem's.