From b777a03857cba6322929e3f11a4bb14d0338d160 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Wed, 14 Nov 2018 14:43:30 +0800 Subject: Update Docs examples --- docs/elements/code.html | 9 +++++-- docs/elements/forms.html | 6 +++++ docs/elements/labels.html | 1 + docs/elements/tables.html | 66 ++++++++++++++++++++++++++++++++++++++++++----- 4 files changed, 74 insertions(+), 8 deletions(-) (limited to 'docs/elements') diff --git a/docs/elements/code.html b/docs/elements/code.html index 40988a3..fe9ec24 100644 --- a/docs/elements/code.html +++ b/docs/elements/code.html @@ -202,8 +202,13 @@

Code is used for styling inline and multiline code snippets.

-

For inline code, you can use the <code> element. - For multiline code snippet blocks, you can use <pre> with the code class as a container, and add <code> inside it. +

Inline code

+
<!-- inline code -->
+<code>code</code>
+
+

For inline code, you can use the <code> element.

+

Code snippet

+

For multiline code snippet blocks, you can use <pre> with the code class as a container, and add <code> inside it. The data-lang attribute is rendered as the language name in the top right.

<!-- code snippets -->
diff --git a/docs/elements/forms.html b/docs/elements/forms.html
index 2af7197..08543d3 100644
--- a/docs/elements/forms.html
+++ b/docs/elements/forms.html
@@ -202,6 +202,7 @@
               
             
             

Forms provide the most common control styles used in forms, including input, textarea, select, checkbox, radio and switch.

+

Form input

@@ -220,6 +221,7 @@ <input class="form-input" type="text" id="input-example-1" placeholder="Name"> </div>
+

Form textarea

@@ -234,6 +236,7 @@ <textarea class="form-input" id="input-example-3" placeholder="Textarea" rows="3"></textarea> </div> +

Form select

@@ -264,6 +267,7 @@ </select> </div> +

Form radio

@@ -292,6 +296,7 @@ </label> </div> +

Form switch

@@ -314,6 +319,7 @@ </label> </div> +

Form checkbox

diff --git a/docs/elements/labels.html b/docs/elements/labels.html index 11dc596..7cbcab0 100644 --- a/docs/elements/labels.html +++ b/docs/elements/labels.html @@ -212,6 +212,7 @@ <span class="label">default label</span> <span class="label label-primary">primary label</span> +

Rounded labels

default labelprimary label
diff --git a/docs/elements/tables.html b/docs/elements/tables.html index 4458116..b49a6c5 100644 --- a/docs/elements/tables.html +++ b/docs/elements/tables.html @@ -204,7 +204,7 @@

Tables include default styles for tables and data sets.

- +
@@ -238,8 +238,62 @@

Add the table class to any <table> element. - The class will add padding, border and emphasized table header. - Use the table-striped class to <table> to add zebra striped style. + The class will add padding, border and emphasized table header. +

+
<table class="table">
+  <thead>
+    <tr>
+      <th>name</th>
+      <th>genre</th>
+      <th>release date</th>
+    </tr>
+  </thead>
+  <tbody>
+    <tr class="active">
+      <td>The Shawshank Redemption</td>
+      <td>Crime, Drama</td>
+      <td>14 October 1994</td>
+    </tr>
+  </tbody>
+</table>
+
+

Striped tables

+
+
+
Name
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameGenreRelease date
The Shawshank RedemptionCrime, Drama14 October 1994
The GodfatherCrime, Drama24 March 1972
Schindler's ListBiography, Drama, History4 February 1994
Se7enCrime, Drama, Mystery22 September 1995
+
+
+

Use the table-striped class to <table> to add zebra striped style. For hoverable table rows, you can add the table-hover class to enable hover style.

Use the active class to make <tr> element highlighted.

@@ -259,11 +313,11 @@ </tr> </tbody> </table> - +

Scrollable tables

- +
@@ -312,7 +366,7 @@

Add the table-scroll class to <table> to have a horizontally scrollable table.

-
<table class="table table-striped table-scroll">
+            
<table class="table table-scroll">
   ...
 </table>
 
-- cgit v1.3.1-26-gb76a
Name