ensure image doesn't try to be larger than width

This commit is contained in:
Luna D 2021-10-04 21:43:06 +02:00
parent c4b67ba30d
commit d1d53c9537
No known key found for this signature in database
GPG key ID: 81AF416F2CC36FC8

View file

@ -308,25 +308,19 @@ blockquote blockquote blockquote blockquote blockquote blockquote {
margin-bottom: 6px; margin-bottom: 6px;
} }
img[alt=tiny] { @mixin image-alt-size($name, $size) {
max-height: $image_tiny_size !important; @media (min-width: $size) {
max-width: $image_tiny_size !important; img[alt=#{$name}] {
max-height: $size !important;
max-width: $size !important;
}
}
} }
img[alt=small] { @include image-alt-size(tiny, $image_tiny_size);
max-height: $image_small_size !important; @include image-alt-size(small, $image_small_size);
max-width: $image_small_size !important; @include image-alt-size(medium, $image_medium_size);
} @include image-alt-size(large, $image_large_size);
img[alt=medium] {
max-height: $image_medium_size !important;
max-width: $image_medium_size !important;
}
img[alt=large] {
max-height: $image_large_size !important;
max-width: $image_large_size !important;
}
table { table {
@extend .table; @extend .table;