From: Andy Cochran Date: Tue, 10 May 2016 20:59:34 +0000 (-0400) Subject: change flex-video to responsive-embed X-Git-Tag: v6.3-rc1~61^2~1^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ff94922d70f6bae4a95e8d9ef689a45dedf92ee;p=thirdparty%2Ffoundation%2Ffoundation-sites.git change flex-video to responsive-embed --- diff --git a/customizer/complete.json b/customizer/complete.json index 9244c5619..b5976414f 100644 --- a/customizer/complete.json +++ b/customizer/complete.json @@ -18,7 +18,7 @@ "dropdown", "dropdown_menu", "equalizer", - "flex_video", + "responsive_embed", "interchange", "label", "magellan", diff --git a/customizer/config.yml b/customizer/config.yml index 9f4bd899d..380db5666 100644 --- a/customizer/config.yml +++ b/customizer/config.yml @@ -86,9 +86,6 @@ dropdown_menu: equalizer: js: equalizer -flex_video: - sass: flex-video - interchange: js: interchange js_utils: @@ -134,6 +131,9 @@ progress_bar: progress_element: sass: progress-element +responsive_embed: + sass: responsive-embed + responsive_menu: js: responsiveMenu js_utils: diff --git a/docs/assets/scss/docs.scss b/docs/assets/scss/docs.scss index 228a3c975..a02740d7b 100644 --- a/docs/assets/scss/docs.scss +++ b/docs/assets/scss/docs.scss @@ -23,5 +23,6 @@ @import 'examples/motion-ui'; @import 'examples/off-canvas'; @import 'examples/orbit'; +@import 'examples/responsive-embed'; @import 'examples/reveal'; @import 'examples/top-bar'; diff --git a/docs/assets/scss/examples/_responsive-embed.scss b/docs/assets/scss/examples/_responsive-embed.scss new file mode 100644 index 000000000..60df6cd2b --- /dev/null +++ b/docs/assets/scss/examples/_responsive-embed.scss @@ -0,0 +1,5 @@ +// Responsive Embed + +.panorama { + @include responsive-embed(256 by 81); +} diff --git a/docs/pages/flex-video.md b/docs/pages/flex-video.md deleted file mode 100644 index 68fd1fb7a..000000000 --- a/docs/pages/flex-video.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -title: Flex Video -description: Wrap embedded videos from YouTube, Vimeo, and others in a flex video container to ensure they maintain the correct aspect ratio regardless of screen size. -sass: scss/components/_flex-video.scss ---- - -Embedded videos won't maintain their aspect ratio as the width of the screen changes. To avoid squished videos, wrap them in a container with the class `.flex-video`. - -```html_example -
- -
-``` - ---- - -The default ratio is 4:3. Add the `.widescreen` class to change it to 16:9. - -```html_example -
- -
-``` - ---- - -Embedded Vimeo videos are special snowflakes of their own. Add the `.vimeo` class to a flex video container that wraps a Vimeo embed. - -```html_example -
- -
-``` diff --git a/docs/pages/index.md b/docs/pages/index.md index a0d6a8a5b..21d0c5dfa 100644 --- a/docs/pages/index.md +++ b/docs/pages/index.md @@ -149,7 +149,7 @@ Get to know the pieces of Foundation.

Media