mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-26 16:15:25 +00:00
073b7b6717
* Bootstrap5 migration
16 lines
395 B
SCSS
Executable file
16 lines
395 B
SCSS
Executable file
// Image Mixins
|
|
// - Responsive image
|
|
// - Retina image
|
|
|
|
|
|
// Responsive image
|
|
//
|
|
// Keep images 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
|
|
// when setting a width and height attribute on the img element.
|
|
height: auto;
|
|
}
|