eHealthAfrica / ehealth-bootstrap

Custom theme created for unifying Bootstrap across eHealth apps
http://ehealthafrica.github.io/ehealth-bootstrap/default/
0 stars 4 forks source link

Style required inputs #8

Closed codebeige closed 7 years ago

codebeige commented 9 years ago

I think we could make use of a harmonized way of marking required inputs across applications. As this is not done by Bootstrap per se, not sure if this would go here, though.

@bnvk @tthew Any thoughts on that?

codebeige commented 9 years ago

If we go with the classical asterisk approach, this could be a starting point:

.form-group.required {
  label:after {
    content: "  \f069";
    font-family: FontAwesome;
    font-size: .4em;
    vertical-align: super;
  }
}

Looks something like this:

bildschirmfoto 2015-04-20 um 17 06 51

bnvk commented 9 years ago

@codebeige I think this should definitely go here in the theme as a Bootstrap addon or mixin or such!