Summary Files Commits Branches @commit @diff @stats
path: root / docs / src / contents / chips.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/chips.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, 44 insertions, 0 deletions
-rw-r--r--docs/src/contents/chips.pug44
diff --git a/docs/src/contents/chips.pug b/docs/src/contents/chips.pug
new file mode 100644
index 0000000..7ac2a25
--- /dev/null
+++ b/docs/src/contents/chips.pug
@@ -0,0 +1,44 @@
+p Chips are complex entities in small blocks.
+
+.docs-demo.columns
+ .column.col-12
+ span.chip
+ | Crime
+ span.chip
+ | Drama
+ span.chip
+ | Biography
+ a.btn.btn-clear(href="#" aria-label="Close" role="button")
+ span.chip
+ | Mystery
+ a.btn.btn-clear(href="#" aria-label="Close" role="button")
+ .column.col-12
+ .chip
+ figure.avatar.avatar-sm(data-initial="TS" style="background-color: #5755d9;")
+ | Tony Stark
+ .chip
+ img.avatar.avatar-sm(src="img/avatar-1.png" alt="Thor Odinson")
+ | Thor Odinson
+ .chip
+ img.avatar.avatar-sm(src="img/avatar-4.png" alt="Steve Rogers")
+ | Steve Rogers
+
+p
+ | Add a container element with the #[code chip] class.
+ | And add child text element, buttons or avatars with the #[code avatar] class.
+
+pre.code(data-lang='HTML')
+ code
+ :highlight(lang="html")
+ <span class="chip">Crime</span>
+
+ <span class="chip">
+ Biography
+ <a href="#" class="btn btn-clear" aria-label="Close" role="button"></a>
+ </span>
+
+ <div class="chip">
+ <img src="img/avatar-1.png" class="avatar avatar-sm">
+ Yan Zhu
+ <a href="#" class="btn btn-clear" aria-label="Close" role="button"></a>
+ </div> \ No newline at end of file