resources update

This commit is contained in:
Билай Станислав 2025-01-21 14:59:39 +03:00
parent b733a49738
commit dc84874d16
540 changed files with 22846 additions and 45 deletions

View File

@ -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;

View File

@ -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 {

View File

@ -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;
}

View File

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 120 KiB

View File

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

File diff suppressed because one or more lines are too long

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Some files were not shown because too many files have changed in this diff Show More