Summary Files Commits Branches @commit @diff @stats
path: root / docs / src / contents / tables.pug
diff options
context:
space:
mode:
Commit329fec6799945d878247d6d70f1a6ad26ade3f77 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2018-06-10 11:09:52 +0800
Committer
 GitHub <noreply@github.com>
2018-06-10 11:09:52 +0800
Files9225a7e69444531c04fba3f028b49c73c80c1d47 /docs/src/contents/tables.pug
Spectre-Dark-Gruvbox-329fec6799945d878247d6d70f1a6ad26ade3f77.tar
Spectre-Dark-Gruvbox-329fec6799945d878247d6d70f1a6ad26ade3f77.tar.gz
Spectre-Dark-Gruvbox-329fec6799945d878247d6d70f1a6ad26ade3f77.zip
Parent7a6af53bca72b549b2cbf1948763348bd5b30dcd (diff)
Parent1c439a3201df5b559b124940c8fcc2702c345631 (diff)
Merge pull request #451 from picturepan2/0.5.2
0.5.2
1 files changed, 55 insertions, 0 deletions
-rw-r--r--docs/src/contents/tables.pug55
diff --git a/docs/src/contents/tables.pug b/docs/src/contents/tables.pug
new file mode 100644
index 0000000..4cb996c
--- /dev/null
+++ b/docs/src/contents/tables.pug
@@ -0,0 +1,55 @@
+p Tables include default styles for tables and data sets.
+
+.docs-demo.columns
+ .column.col-12
+ table.table.table-striped
+ thead
+ tr
+ th Name
+ th Genre
+ th Release date
+ tbody
+ tr
+ td The Shawshank Redemption
+ td Crime, Drama
+ td 14 October 1994
+ tr
+ 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
+ | Add the #[code table] class to any #{'<table>'} element.
+ | The class will add padding, border and emphasized table header.
+ | 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
+ | Use the #[code active] class to make #{'<tr>'} element highlighted.
+
+pre.code(data-lang='HTML')
+ code
+ :highlight(lang="html")
+ <table class="table table-striped table-hover">
+ <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> \ No newline at end of file