Summary Files Commits Branches @commit @diff @stats
path: root / docs / src / components / cards.pug
diff options
context:
space:
mode:
Commitef6d8056d26fe952891e47660f1cb0d1ed7041f1 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2018-11-08 07:42:33 +0800
Committer
 GitHub <noreply@github.com>
2018-11-08 07:42:33 +0800
Files26e1a053ee953a570e54939ef30c2c89636a6acf /docs/src/components/cards.pug
Spectre-Dark-Gruvbox-ef6d8056d26fe952891e47660f1cb0d1ed7041f1.tar
Spectre-Dark-Gruvbox-ef6d8056d26fe952891e47660f1cb0d1ed7041f1.tar.gz
Spectre-Dark-Gruvbox-ef6d8056d26fe952891e47660f1cb0d1ed7041f1.zip
Parent0a6c76429b294c26d318479c05736537f3d95abb (diff)
Parenteb7fd9d2538accfe5d291ca93d2ce7dd6e62fefa (diff)
Merge pull request #522 from picturepan2/0.5.5 v0.5.5
0.5.5
1 files changed, 110 insertions, 0 deletions
-rw-r--r--docs/src/components/cards.pug110
diff --git a/docs/src/components/cards.pug b/docs/src/components/cards.pug
new file mode 100644
index 0000000..7dbcd83
--- /dev/null
+++ b/docs/src/components/cards.pug
@@ -0,0 +1,110 @@
+extends ../_layout/_docs-layout.pug
+
+block variables
+ - var slug = 'cards'
+ - var parent = 'components'
+ - var title = 'Cards - Components - Spectre.css CSS Framework'
+ - var description = 'Spectre.css is a lightweight, responsive and modern CSS framework for faster and extensible development. Spectre provides basic styles for typography and elements, flexbox based responsive layout system, pure CSS components and utilities with best practice coding and consistent design language.'
+
+block docs-content
+ +docs-heading('cards', 'Cards')
+ include ../_layout/_ad-g.pug
+
+ p Cards are flexible content containers.
+
+ .docs-demo.columns
+ .column.col-6.col-xs-12
+ .card
+ .card-image
+ img.img-responsive(src="../img/osx-el-capitan.jpg" alt="OS X El Capitan")
+ .card-header
+ .card-title.h5 Microsoft
+ .card-subtitle.text-gray Software and hardware
+ .card-body
+ | Empower every person and every organization on the planet to achieve more.
+ .card-footer
+ a.btn.btn-primary(href="#cards") Do
+ .column.col-6.col-xs-12
+ .card
+ .card-header
+ .card-title.h5 Apple
+ .card-subtitle.text-gray Hardware and software
+ .card-image
+ img.img-responsive(src="../img/osx-yosemite.jpg" alt="OS X Yosemite")
+ .card-body
+ | To make a contribution to the world by making tools for the mind that advance humankind.
+ .card-footer
+ .btn-group.btn-group-block
+ button.btn.btn-primary Buy
+ button.btn Buy
+ button.btn Buy
+ .column.col-6.col-xs-12
+ .card
+ .card-image
+ img.img-responsive(src="../img/macos-sierra-2.jpg" alt="macOS Sierra")
+ .card-header
+ button.btn.btn-primary.float-right
+ i.icon.icon-plus
+ .card-title.h5 Google I/O
+ .card-subtitle.text-gray Software and hardware
+ .card-body
+ | An immersive, three-day experience focused on exploring the next generation of technology, mobile and beyond.
+ .column.col-6.col-xs-12
+ .card
+ .card-image
+ img.img-responsive(src="../img/osx-el-capitan-2.jpg" alt="OS X El Capitan")
+ .card-footer
+ a.btn.btn-primary(href="#cards") Buy
+ a.btn.btn-link(href="#cards") Share
+ .card-body
+ strong Surface Studio
+ | . Turn your desk into a Studio. Surface Studio is designed for the creative process.
+ .column.col-6.col-xs-12
+ .card
+ .card-header
+ .card-title.h5 Apple
+ .card-subtitle.text-gray Hardware and software
+ .card-body
+ | To make a contribution to the world by making tools for the mind that advance humankind.
+ .card-image
+ img.img-responsive(src="../img/macos-sierra.jpg" alt="macOS Sierra")
+ .column.col-6.col-xs-12
+ .card
+ .card-header
+ .card-title.h5 Google
+ .card-subtitle.text-gray Software and hardware
+ .card-body
+ | Organize the world’s information and make it universally accessible and useful.
+ .card-image
+ img.img-responsive(src="../img/osx-yosemite-2.jpg" alt="OS X Yosemite")
+ .card-footer
+ a.btn.btn-primary(href="#cards") Search
+ a.btn.btn-link(href="#cards") Share
+
+ p
+ | Add a container element with the #[code card] class.
+ | And add child elements with the #[code card-image], #[code card-header], #[code card-body] and/or #[code card-footer] classes.
+ | The #[code card-image] can be placed in any position.
+
+ pre.code(data-lang='HTML')
+ code
+ :highlight(lang="html")
+ <div class="card">
+ <div class="card-image">
+ <img src="img/osx-el-capitan.jpg" class="img-responsive">
+ </div>
+ <div class="card-header">
+ <div class="card-title h5">...</div>
+ <div class="card-subtitle text-gray">...</div>
+ </div>
+ <div class="card-body">
+ ...
+ </div>
+ <div class="card-footer">
+ <button class="btn btn-primary">...</button>
+ </div>
+ </div>
+
+ include ../_layout/_ad-c.pug
+
+ include ../_layout/_footer.pug \ No newline at end of file