Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Mazovetskiy <glex.spb@gmail.com>2016-10-22 09:20:53 +0300
committerGleb Mazovetskiy <glex.spb@gmail.com>2016-10-22 09:20:53 +0300
commitafd171105704c314bf699810875c72a612988a72 (patch)
treec6045a971c84ef6eadfe7d5b90044bd33f2b7cbe /assets/stylesheets/bootstrap/mixins/_image.scss
parentd527714693edb72688eb8c239228b2db66e56ded (diff)
rake update[v4.0.0-alpha.5]
Diffstat (limited to 'assets/stylesheets/bootstrap/mixins/_image.scss')
-rw-r--r--assets/stylesheets/bootstrap/mixins/_image.scss10
1 files changed, 6 insertions, 4 deletions
diff --git a/assets/stylesheets/bootstrap/mixins/_image.scss b/assets/stylesheets/bootstrap/mixins/_image.scss
index 91d2f59..c2b45f2 100644
--- a/assets/stylesheets/bootstrap/mixins/_image.scss
+++ b/assets/stylesheets/bootstrap/mixins/_image.scss
@@ -7,10 +7,12 @@
//
// Keep images from scaling beyond the width of their parents.
-@mixin img-fluid($display: block) {
- display: $display;
- max-width: 100%; // Part 1: Set a maximum relative to the parent
- height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
+@mixin img-fluid {
+ // Part 1: Set a maximum relative to the parent
+ max-width: 100%;
+ // Part 2: Override the height to auto, otherwise images will be stretched
+ // when setting a width and height attribute on the img element.
+ height: auto;
}