diff options
| author | Zlatan Vasović <[email protected]> | 2013-11-02 09:35:51 +0100 |
|---|---|---|
| committer | Zlatan Vasović <[email protected]> | 2013-11-02 09:35:51 +0100 |
| commit | f1bc840d4368a79f0f0872000c3fdf6356af2a87 (patch) | |
| tree | ad58410afaff1e6d9448a3b3057ddff76e156ba4 /less | |
| parent | ea3c89189a6b922c08729857006713de209b66d8 (diff) | |
| download | bootstrap-f1bc840d4368a79f0f0872000c3fdf6356af2a87.tar.xz bootstrap-f1bc840d4368a79f0f0872000c3fdf6356af2a87.zip | |
Use nesting for .placeholder()
Diffstat (limited to 'less')
| -rw-r--r-- | less/forms.less | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/less/forms.less b/less/forms.less index f6bbce596..a74babdb3 100644 --- a/less/forms.less +++ b/less/forms.less @@ -92,14 +92,6 @@ output { vertical-align: middle; } -// Placeholder -// -// Placeholder text gets special styles because when browsers invalidate entire -// lines if it doesn't understand a selector/ -.form-control { - .placeholder(); -} - // Common form controls // @@ -142,6 +134,12 @@ output { // Customize the `:focus` state to imitate native WebKit styles. .form-control-focus(); + // Placeholder + // + // Placeholder text gets special styles because when browsers invalidate entire + // lines if it doesn't understand a selector/ + .placeholder(); + // Disabled and read-only inputs // Note: HTML5 says that controls under a fieldset > legend:first-child won't // be disabled if the fieldset is disabled. Due to implementation difficulty, |
