From 9e6644a20685d1276e569020cb930c635df9acd7 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 26 May 2017 21:54:25 -0700 Subject: [PATCH] Update forms docs to add more headings and move the huge type example into a table --- docs/components/forms.md | 103 ++++++++------------------------------- 1 file changed, 21 insertions(+), 82 deletions(-) diff --git a/docs/components/forms.md b/docs/components/forms.md index 51d9e8f908..d71615976a 100644 --- a/docs/components/forms.md +++ b/docs/components/forms.md @@ -18,6 +18,8 @@ Bootstrap's form controls expand on [our Rebooted form styles]({{ site.baseurl } Be sure to use an appropriate `type` attribute on all inputs (e.g., `email` for email address or `number` for numerical information). +### Example + {% example html %}
@@ -89,6 +91,8 @@ Be sure to use an appropriate `type` attribute on all inputs (e.g., `email` for {% endexample %} +### Supported controls + Below is a complete list of the specific form controls supported by Bootstrap and the classes that customize them. Additional documentation is available for each group. @@ -167,88 +171,23 @@ Below is a complete list of the specific form controls supported by Bootstrap an ### Textual inputs -Here are examples of `.form-control` applied to each textual HTML5 `` `type`. - -{% example html %} -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-{% endexample %} +Here are examples of `.form-control` applied to each textual HTML5 `` `type` (meaning, almost everything except the file, checkbox, and radio inputs). + +| Type | Example | +| --- | --- | +| `text` | | +| `search` | | +| `email` | | +| `url` | | +| `tel` | | +| `password` | | +| `number` | | +| `datetime-local` | | +| `date` | | +| `month` | | +| `week` | | +| `time` | | +| `color` | | ## Form layouts -- 2.47.2