From 83cb1053178241d95b0f53da062a4b742d0313cc Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 5 Feb 2012 01:36:11 -0800 Subject: adding code snippets to form examples --- docs/base-css.html | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'docs/base-css.html') diff --git a/docs/base-css.html b/docs/base-css.html index 7f409e019..f84cbe774 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -852,9 +852,9 @@ For example, <code>section</code> should be wrapped as inline.

Example forms using just form controls, no extra markup

-

Basic form

+

Basic form

With v2.0, we have lighter and smarter defaults for form styles. No extra markup, just form controls.

@@ -866,11 +866,21 @@ For example, <code>section</code> should be wrapped as inline. +
+<form class="well">
+  <label>Label name</label>
+  <input type="text" class="span3" placeholder="Type something…"> <span class="help-inline">Associated help text!</span>
+  <label class="checkbox">
+    <input type="checkbox"> Check me out
+  </label>
+  <button type="submit" class="btn">Submit</button>
+</form>
+
-

Search form

+

Search form

Reflecting default WebKit styles, just add .form-search for extra rounded search fields.

@@ -878,11 +888,17 @@ For example, <code>section</code> should be wrapped as inline. +
+<form class="well form-search">
+  <input type="text" class="input-medium search-query">
+  <button type="submit" class="btn">Search</button>
+</form>
+
-

Inline form

+

Inline form

Inputs are block level to start. For .form-inline and .form-horizontal, we use inline-block.

@@ -891,6 +907,13 @@ For example, <code>section</code> should be wrapped as inline. +
+<form class="well form-inline">
+  <input type="text" class="input-small" placeholder="Email">
+  <input type="password" class="input-small" placeholder="Password">
+  <button type="submit" class="btn">Go</button>
+</form>
+
-- cgit v1.2.3