Button

Basic CSS for different button style, button size, button status, and button elements.

Button style can be applied to anything with the .btn class. Based on Bootstrap, there 2 main styles of elcom Platform.

Button Class Description Apply For
btn Standard gray button with gradient. By default, most buttons, such as Add New, Edit, Delete, Cancel have this style.
btn btn-primary Provides extra visual weight and identifies the primary action in a set of buttons. Primary action button, such as Save, OK, Accept. They are normally placed at the first position in a row of buttons.

To obtain a larger or smaller button, add .btn-large, .btn-small, or .btn-mini for additional sizes.

Button class="" Description Apply For
btn btn-large Font size: 14px
Button-height: 30px
Primary or main actions which are expected to do.
btn Font size: 13px
Button-height: 28px
Default button for all actions in a page or popup.
btn btn-small Font size: 12px
Button-height: 26px
Button for sub-function in a page or popup.
btn btn-mini Font size: 11px
Button-height: 20px
Hover-reveal actions, repeated actions in a table.

Depending on special goals, the block level button can be used to draw attention to do some specific actions. To display it, simply add .btn-block.

The disabled state can be used in case some action buttons are not available. For example, the Save button is disabled until all required fields are input.

Anchor element

Add the .disabled class to the <a> button.

Link

Button element

Add the disabled attribute to the <button> button.

Based on Bootstrap, there are some button samples that are customized by elcom Platform Team:

Sample Title Description
Button with small icon Button Height: 20px
Edit
Icon button with small label Button-height: 26px - Font size: 12px - Icon size: 14px
Settings
Icon button with default label Button-height: 28px - Font size: 13px - Icon size: 16px
More
Small dropdown select button Button-height: 26px - Font size: 12px - Icon size: 7px
More
Default dropdown select button Button-height: 28px - Font size: 13px - Icon size: 9px
Icon radio button Button-height: 26px
Text radio button Button-height: 26px - Font size: 12px;
Button-height: 28px - Font size: 13x
Group button Button-height: 28px - Font size: 13px