From 3ea39841c8049525e31e9f4d6300f0c60cdb42de Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 24 Jan 2023 13:33:51 +0100 Subject: Adding upstream version 5.2.3+dfsg. Signed-off-by: Daniel Baumann --- site/content/docs/5.2/forms/form-control.md | 152 ++++++++++++++++++++++++++++ 1 file changed, 152 insertions(+) create mode 100644 site/content/docs/5.2/forms/form-control.md (limited to 'site/content/docs/5.2/forms/form-control.md') diff --git a/site/content/docs/5.2/forms/form-control.md b/site/content/docs/5.2/forms/form-control.md new file mode 100644 index 0000000..4d6972d --- /dev/null +++ b/site/content/docs/5.2/forms/form-control.md @@ -0,0 +1,152 @@ +--- +layout: docs +title: Form controls +description: Give textual form controls like ``s and ` + +{{< /example >}} + +## Sizing + +Set heights using classes like `.form-control-lg` and `.form-control-sm`. + +{{< example >}} + + + +{{< /example >}} + +## Disabled + +Add the `disabled` boolean attribute on an input to give it a grayed out appearance, remove pointer events, and prevent focusing. + +{{< example >}} + + +{{< /example >}} + +## Readonly + +Add the `readonly` boolean attribute on an input to prevent modification of the input's value. `readonly` inputs can still be focused and selected, while `disabled` inputs cannot. + +{{< example >}} + +{{< /example >}} + +## Readonly plain text + +If you want to have `` elements in your form styled as plain text, replace `.form-control` with `.form-control-plaintext` to remove the default form field styling and preserve the correct `margin` and `padding`. + +{{< example >}} +
+ +
+ +
+
+
+ +
+ +
+
+{{< /example >}} + +{{< example >}} +
+
+ + +
+
+ + +
+
+ +
+
+{{< /example >}} + +## File input + +{{< example >}} +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+{{< /example >}} + +## Color + +Set the `type="color"` and add `.form-control-color` to the ``. We use the modifier class to set fixed `height`s and override some inconsistencies between browsers. + +{{< example >}} + + +{{< /example >}} + +## Datalists + +Datalists allow you to create a group of `