From: Mark Otto Date: Fri, 26 Jul 2013 01:29:51 +0000 (-0700) Subject: Refactor forms styles X-Git-Tag: v3.0.0-rc1~60^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13bc74b636f4a9905010df84fc07790ccced0c93;p=thirdparty%2Fbootstrap.git Refactor forms styles * Reorganize forms.less * Change from attribute selectors to `.form-control`. Few lines, less specific (meaning easier overrides as `element[type=""]` is more specific than a class), less intrusive, and more performant. * Add `.form-group` for basic spacing in vertical forms. * Remove (unnecessary?) `margin: 0;` from `form` element (as far as I can tell no browser sets that anyway). --- diff --git a/css.html b/css.html index 06b4f53451..6cc9735ddc 100644 --- a/css.html +++ b/css.html @@ -1162,17 +1162,23 @@ For example, <section> should be wrapped as inline.

Basic example

-

Individual form controls automatically receive some global styling. All textual <input>, <textarea>, and <select> elements are set to width: 100%; by default.

+

Individual form controls automatically receive some global styling. All textual <input>, <textarea>, and <select> elements are set to width: 100%; by default. Wrap labels and controls in .form-group for optimum spacing.

Legend - - - - - - -

Example block-level help text here.

+
+ + +
+
+ + +
+
+ + +

Example block-level help text here.

+