action_menu.css
: context menusbuttons.css
: common buttonsconfirm.css
: dialog boxes with message + accept/dismiss buttonsedit_mode.css
: edition panels with a dialog-like button toolbarheaders.css
: common header bars (title + navigation buttons)input_areas.css
: common input areas (e.g. search bars)status.css
: notification toastersswitches.css
: checkboxes, radio buttons, ON/OFF switches
A data-type
attribute is used when the type
and role
attributes are not specific enough. Here’s the list of its possible values.
action
: used inaction_menu.css
, title + action selection + accept/dismiss buttonsconfirm
: used inconfirm.css
, message + accept/dismiss buttonsedit
: used inedit_mode.css
, edition panel with dialog-like button toolbarobject
: used inaction_menu.css
, action selection + accept/dismiss buttonsswitch
: used inswitches.css
, turns a checkbox into an ON/OFF switch
We try to avoid arbitrary class names as much as possible, but sometimes we have to use some — here’s the list.
Icons
.icon
.icon-add
.icon-back
.icon-close
.icon-dialog
.icon-edit
.icon-menu
.icon-user
.icon-view
Skins
.skin-dark
.skin-organic
Buttons
.danger
: dangerous choice, e.g. delete something.recommend
: default/recommended choice, should be safe
Other
.action
: applies to fieldset elements (explanation needed).bottom
: bottom-positioned element, applies to search forms.compact
: compact list, applies to button lists.full
: full-width element, applies to buttons or search forms
action_menu.css
None
buttons.css
.compact
.danger
.icon-dialog
.icon-view
.recommend
confirm.css
.full
edit_mode.css
.danger
.full
.icon
.recommend
headers.css
.icon
.icon-add
.icon-edit
.icon-close
.icon-back
.icon-menu
.icon-user
.skin-dark
.skin-organic
input_areas.css
.action
(explanation needed).bottom
.full
status.css
None
switches.css
.danger
- Use
[data-icon="name"]
instead of.icon.icon-name