From 3ca62a5d5f43509af9770c07db5477fe7d631e7b Mon Sep 17 00:00:00 2001 From: Jens Ulferts Date: Sun, 22 Mar 2015 08:25:01 +0100 Subject: [PATCH] allow to limit width on form containers --- app/assets/stylesheets/content/_forms.md | 222 ++++++++++++++++++++- app/assets/stylesheets/content/_forms.sass | 34 ++++ 2 files changed, 255 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/content/_forms.md b/app/assets/stylesheets/content/_forms.md index 404d3c2810..8bea64f578 100644 --- a/app/assets/stylesheets/content/_forms.md +++ b/app/assets/stylesheets/content/_forms.md @@ -494,6 +494,226 @@ ``` +## Forms: Width categories + +The modifier classes **-middle**, **-wide**, ... can be applied to the form-[input type]-container to limit the width of the element. Please note, that this only limits the max-width of the element. The fields will become slimmer if less space is available. Also note, that the max-width is specified as an absolute value. Without a modifier, the form field will take the full width available. + +``` +@full-width + +
+
+

Input type "text-field"

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

Input type "text-area"

+
+ +
+
+