From b7c7e074144c1228492a1c7bad2487aa3b855d90 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Sun, 10 Apr 2016 15:32:11 +0800 Subject: add more examples --- index.html | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 58 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index c8028a5..2310abf 100644 --- a/index.html +++ b/index.html @@ -166,6 +166,14 @@ - Source + +
+<blockquote>
+    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
+    <small>- Source</small>
+</blockquote>
+
+
lists
@@ -195,6 +203,22 @@
+ + +
+<ul class="list">
+    <li>list item 1</li>
+    <li>list item 2
+        <ul>
+            <li>list item 2.1</li>
+            <li>list item 2.2</li>
+            <li>list item 2.3</li>
+        </ul>
+    </li>
+    <li>list item 3</li>
+</ul>
+
+
@@ -473,9 +497,9 @@
- +
-
+
@@ -636,6 +660,38 @@ </label> </div> </form> + + +
+

If you want to have a horizontal form, add the class form-horizontal to the <form> container. And add the class col-[1-12] to the child elements for form row layout. Please note form-horizontal only works in viewports that are at least 840px wide.

+
+ + +
+<form class="form-horizontal">
+    <div class="form-group">
+        <label class="form-label col-3" for="input-example-1">Name</label>
+        <div class="col-9">
+            <input class="form-input" type="text" id="input-example-1" placeholder="Name" />
+        </div>
+    </div>
+    <!-- form structure -->
+</form>
+
+ +
+

To use form validation styles, add is-success and is-danger to the controls or add has-success and has-danger to parent elements.

+
+ + +
+<form>
+    <!-- form validation styles -->
+    <div class="form-group has-success">
+        <label class="form-label" for="input-example-1">Name</label>
+        <input class="form-input is-success" type="text" id="input-example-1" placeholder="Name" />
+    </div>
+</form>
 
input groups
-- cgit v1.3.1-26-gb76a