Summary Files Commits Branches @commit @diff @stats
path: root / docs / src / elements / tables.pug
diff options
context:
space:
mode:
Commit81ee834ec6914f8b284e0724d541ed927513e6bd (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2018-11-20 11:54:48 +0800
Committer
 GitHub <noreply@github.com>
2018-11-20 11:54:48 +0800
Filesac0c29f2a5fa344bb7a05638602dd6dc60ce9e37 /docs/src/elements/tables.pug
Spectre-Dark-Gruvbox-81ee834ec6914f8b284e0724d541ed927513e6bd.tar
Spectre-Dark-Gruvbox-81ee834ec6914f8b284e0724d541ed927513e6bd.tar.gz
Spectre-Dark-Gruvbox-81ee834ec6914f8b284e0724d541ed927513e6bd.zip
Parentca1bdc5d86edb4d1baf3e9d1fabc89977950a2b4 (diff)
Parentba4c380af32bc75dad1e03c2386b5f8a3fb9118f (diff)
Merge pull request #534 from picturepan2/0.5.6 v0.5.6
0.5.6
1 files changed, 55 insertions, 4 deletions
-rw-r--r--docs/src/elements/tables.pug59
diff --git a/docs/src/elements/tables.pug b/docs/src/elements/tables.pug
index 3e087d9..5eec15d 100644
--- a/docs/src/elements/tables.pug
+++ b/docs/src/elements/tables.pug
@@ -14,7 +14,7 @@ block docs-content
.docs-demo.columns
.column.col-12
- table.table.table-striped
+ table.table
thead
tr
th Name
@@ -40,7 +40,57 @@ block docs-content
p
| Add the #[code table] class to any #{'<table>'} element.
- | The class will add padding, border and emphasized table header.
+ | The class will add padding, border and emphasized table header.
+
+ pre.code(data-lang='HTML')
+ code
+ :highlight(lang="html")
+ <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>
+
+ +docs-subheading('tables-striped', 'Striped tables')
+
+ .docs-demo.columns
+ .column.col-12
+ table.table.table-striped.table-hover
+ thead
+ tr
+ th Name
+ th Genre
+ th Release date
+ tbody
+ tr
+ td The Shawshank Redemption
+ td Crime, Drama
+ td 14 October 1994
+ tr.active
+ td The Godfather
+ td Crime, Drama
+ td 24 March 1972
+ tr
+ td Schindler's List
+ td Biography, Drama, History
+ td 4 February 1994
+ tr
+ td Se7en
+ td Crime, Drama, Mystery
+ td 22 September 1995
+
+ p
| Use the #[code table-striped] class to #{'<table>'} to add zebra striped style.
| For hoverable table rows, you can add the #[code table-hover] class to enable hover style.
p
@@ -66,10 +116,11 @@ block docs-content
</tbody>
</table>
+ +docs-subheading('tables-scroll', 'Scrollable tables')
.docs-demo.columns
.column.col-12
- table.table.table-striped.table-scroll
+ table.table.table-scroll
thead
tr
th Name
@@ -114,7 +165,7 @@ block docs-content
pre.code(data-lang='HTML')
code
:highlight(lang="html")
- <table class="table table-striped table-scroll">
+ <table class="table table-scroll">
...
</table>