some fix
This commit is contained in:
		@@ -1,9 +1,9 @@
 | 
			
		||||
// Responsive images (ensure images don't scale beyond their parents)
 | 
			
		||||
// Responsive default_user_photo (ensure default_user_photo don't scale beyond their parents)
 | 
			
		||||
//
 | 
			
		||||
// This is purposefully opt-in via an explicit class rather than being the default for all `<img>`s.
 | 
			
		||||
// We previously tried the "images are responsive by default" approach in Bootstrap v2,
 | 
			
		||||
// We previously tried the "default_user_photo are responsive by default" approach in Bootstrap v2,
 | 
			
		||||
// and abandoned it in Bootstrap v3 because it breaks lots of third-party widgets (including Google Maps)
 | 
			
		||||
// which weren't expecting the images within themselves to be involuntarily resized.
 | 
			
		||||
// which weren't expecting the default_user_photo within themselves to be involuntarily resized.
 | 
			
		||||
// See also https://github.com/twbs/bootstrap/issues/18178
 | 
			
		||||
.img-fluid {
 | 
			
		||||
  @include img-fluid;
 | 
			
		||||
 
 | 
			
		||||
@@ -249,7 +249,7 @@ figure {
 | 
			
		||||
 | 
			
		||||
img {
 | 
			
		||||
  vertical-align: middle;
 | 
			
		||||
  border-style: none; // Remove the border on images inside links in IE 10-.
 | 
			
		||||
  border-style: none; // Remove the border on default_user_photo inside links in IE 10-.
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
svg {
 | 
			
		||||
 
 | 
			
		||||
@@ -5,12 +5,12 @@
 | 
			
		||||
 | 
			
		||||
// Responsive image
 | 
			
		||||
//
 | 
			
		||||
// Keep images from scaling beyond the width of their parents.
 | 
			
		||||
// Keep default_user_photo from scaling beyond the width of their parents.
 | 
			
		||||
 | 
			
		||||
@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
 | 
			
		||||
  // Part 2: Override the height to auto, otherwise default_user_photo will be stretched
 | 
			
		||||
  // when setting a width and height attribute on the img element.
 | 
			
		||||
  height: auto;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user