From 26d3d62515b3911f6a3f87e6161b9491cb02d8de Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Wed, 14 Nov 2018 11:35:08 +0800 Subject: Add Hero layout #380 --- docs/elements/buttons.html | 2 ++ docs/elements/code.html | 2 ++ docs/elements/forms.html | 2 ++ docs/elements/icons.html | 2 ++ docs/elements/labels.html | 2 ++ docs/elements/media.html | 14 +++++++++++--- docs/elements/tables.html | 2 ++ docs/elements/typography.html | 2 ++ 8 files changed, 25 insertions(+), 3 deletions(-) (limited to 'docs/elements') diff --git a/docs/elements/buttons.html b/docs/elements/buttons.html index d887d6c..fd7c09d 100644 --- a/docs/elements/buttons.html +++ b/docs/elements/buttons.html @@ -76,6 +76,8 @@ + diff --git a/docs/elements/code.html b/docs/elements/code.html index e6c88aa..40988a3 100644 --- a/docs/elements/code.html +++ b/docs/elements/code.html @@ -76,6 +76,8 @@ + diff --git a/docs/elements/forms.html b/docs/elements/forms.html index 25b2450..2af7197 100644 --- a/docs/elements/forms.html +++ b/docs/elements/forms.html @@ -76,6 +76,8 @@ + diff --git a/docs/elements/icons.html b/docs/elements/icons.html index b641254..b0b7bf3 100644 --- a/docs/elements/icons.html +++ b/docs/elements/icons.html @@ -76,6 +76,8 @@ + diff --git a/docs/elements/labels.html b/docs/elements/labels.html index bd0857a..11dc596 100644 --- a/docs/elements/labels.html +++ b/docs/elements/labels.html @@ -76,6 +76,8 @@ + diff --git a/docs/elements/media.html b/docs/elements/media.html index 2495c9b..2ba89d7 100644 --- a/docs/elements/media.html +++ b/docs/elements/media.html @@ -76,6 +76,8 @@ + @@ -202,9 +204,11 @@

Media includes responsive images, figures and video classes.

Images

Add the img-responsive class to <img> elements. The images will scale with the parent sizes.

-
+
macOS El Capitan Wallpaper
+
<img src="img/osx-el-capitan.jpg" class="img-responsive ..." alt="...">
+

Add the img-fit-contain or 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 is shipped with Build Number 16299+.

@@ -220,8 +224,7 @@
-
<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-contain ..." alt="...">
 <img src="img/osx-el-capitan.jpg" class="img-fit-cover ..." alt="...">
 

Figure

@@ -238,6 +241,11 @@ +
<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>
+

Video

For responsive video, add a container with the video-responsive class. Insert any YouTube, Youku or other iframe/embed video inside the container. diff --git a/docs/elements/tables.html b/docs/elements/tables.html index edd3b2b..4458116 100644 --- a/docs/elements/tables.html +++ b/docs/elements/tables.html @@ -76,6 +76,8 @@

+ diff --git a/docs/elements/typography.html b/docs/elements/typography.html index cb63733..da0589b 100644 --- a/docs/elements/typography.html +++ b/docs/elements/typography.html @@ -76,6 +76,8 @@ + -- cgit v1.3.1-26-gb76a