mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
fix: responsive Figure aspect ratio in Safari
See https://discord.com/channels/722225264733716590/742863504515793149/812308038174244904 See https://stackoverflow.com/a/61196907
This commit is contained in:
parent
eebefd8a59
commit
05c772f389
1 changed files with 3 additions and 0 deletions
|
@ -245,6 +245,9 @@ figure img {
|
||||||
height: auto;
|
height: auto;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
flex-basis: 100%;
|
flex-basis: 100%;
|
||||||
|
// Safari fix for responsive aspect ratio issue when `height: auto` set with flex parent.
|
||||||
|
// See https://stackoverflow.com/a/61196907
|
||||||
|
align-self: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Center all figure captions by default.
|
// Center all figure captions by default.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue