Summary Files Commits Branches @commit @diff @stats
path: root / docs / src / elements
diff options
context:
space:
mode:
Commit26d3d62515b3911f6a3f87e6161b9491cb02d8de (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2018-11-14 11:35:08 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2018-11-14 11:35:08 +0800
Filese556eff2f5c6fc5d406f45ed8589f1a9a7624da1 /docs/src/elements
Spectre-Dark-Gruvbox-26d3d62515b3911f6a3f87e6161b9491cb02d8de.tar
Spectre-Dark-Gruvbox-26d3d62515b3911f6a3f87e6161b9491cb02d8de.tar.gz
Spectre-Dark-Gruvbox-26d3d62515b3911f6a3f87e6161b9491cb02d8de.zip
Parentca1bdc5d86edb4d1baf3e9d1fabc89977950a2b4 (diff)
Add Hero layout #380
1 files changed, 14 insertions, 2 deletions
-rw-r--r--docs/src/elements/media.pug16
diff --git a/docs/src/elements/media.pug b/docs/src/elements/media.pug
index 05cd719..3cd4c2c 100644
--- a/docs/src/elements/media.pug
+++ b/docs/src/elements/media.pug
@@ -17,10 +17,15 @@ block docs-content
p
| Add the #[code img-responsive] class to #{'<img>'} elements. The images will scale with the parent sizes.
- .columns
+ .docs-demo.columns
.column.col-12
img.img-responsive.rounded(src="../img/osx-el-capitan.jpg" alt="macOS El Capitan Wallpaper")
+ pre.code(data-lang='HTML')
+ code
+ :highlight(lang="html")
+ <img src="img/osx-el-capitan.jpg" class="img-responsive ..." alt="...">
+
p
| Add the #[code img-fit-contain] or #[code img-fit-cover] class to #{'<img>'} or #{'<video>'} elements. The media will crop itself to fit inside the element (and you don't need another container).
| This feature can replace the classic background image trick. Microsoft Edge support
@@ -40,7 +45,6 @@ block docs-content
pre.code(data-lang='HTML')
code
:highlight(lang="html")
- <img src="img/osx-el-capitan.jpg" class="img-responsive ..." alt="...">
<img src="img/osx-el-capitan.jpg" class="img-fit-contain ..." alt="...">
<img src="img/osx-el-capitan.jpg" class="img-fit-cover ..." alt="...">
@@ -59,6 +63,14 @@ block docs-content
img.img-responsive.rounded(src="../img/osx-yosemite-2.jpg" alt="macOS Yosemite Wallpaper")
figcaption.figure-caption.text-center macOS Yosemite wallpaper
+ pre.code(data-lang='HTML')
+ code
+ :highlight(lang="html")
+ <figure class="figure">
+ <img class="img-responsive ..." src="img/osx-yosemite-2.jpg" alt="macOS Yosemite Wallpaper">
+ <figcaption class="figure-caption text-center">macOS Yosemite wallpaper</figcaption>
+ </figure>
+
+docs-subheading('media-video', 'Video')
p