Created
March 29, 2018 17:19
-
-
Save chrisfromredfin/b3c692b054ca6de0d6fd1f7186a1f0ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Mixins: custom re-useable but configurable tools we use. | |
/// @group Mixins | |
/// Helper mixin to drop on the wrapper for an iframe | |
/// that you would like to be responsive. | |
/// | |
/// @group Mixins | |
/// @author Smashing Magazine | |
/// | |
/// @param {Length} $width - Element's width | |
/// @param {Length} $height - Element's height | |
/// @output CSS for the wrapper and the inner iframe that maintains the aspect | |
/// ratio as it is resized. | |
/// | |
/// @example scss - | |
/// .embed-container { | |
/// @include embed-container(400px, 300px); | |
/// } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment