1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-29 08:10:47 +02:00

Images are responsive by default

This commit is contained in:
Mark Otto
2015-03-11 19:19:03 +00:00
parent 928cfb0697
commit d29f851e82
3 changed files with 6 additions and 23 deletions

View File

@@ -1,19 +1,3 @@
// Image Mixins
// - Responsive image
// - Retina image
// Responsive image
//
// Keep images from scaling beyond the width of their parents.
@mixin img-responsive($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
}
// Retina image
//
// Short retina mixin for setting background-image and -size.