1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-01 17:32:41 +02:00

Merge pull request #17168 from kkirsche/patch-19

v4 - Rename .img-responsive class to .img-fluid
This commit is contained in:
Mark Otto
2015-09-02 00:33:26 -07:00
13 changed files with 30 additions and 30 deletions

View File

@@ -7,7 +7,7 @@
//
// Keep images from scaling beyond the width of their parents.
@mixin img-responsive($display: block) {
@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