mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
ensure image doesn't try to be larger than width
This commit is contained in:
parent
c4b67ba30d
commit
d1d53c9537
1 changed files with 11 additions and 17 deletions
|
@ -308,25 +308,19 @@ blockquote blockquote blockquote blockquote blockquote blockquote {
|
|||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
img[alt=tiny] {
|
||||
max-height: $image_tiny_size !important;
|
||||
max-width: $image_tiny_size !important;
|
||||
@mixin image-alt-size($name, $size) {
|
||||
@media (min-width: $size) {
|
||||
img[alt=#{$name}] {
|
||||
max-height: $size !important;
|
||||
max-width: $size !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
img[alt=small] {
|
||||
max-height: $image_small_size !important;
|
||||
max-width: $image_small_size !important;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
@include image-alt-size(tiny, $image_tiny_size);
|
||||
@include image-alt-size(small, $image_small_size);
|
||||
@include image-alt-size(medium, $image_medium_size);
|
||||
@include image-alt-size(large, $image_large_size);
|
||||
|
||||
table {
|
||||
@extend .table;
|
||||
|
|
Loading…
Reference in a new issue