mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 04:14:41 +00: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:
1 parent
eebefd8a59
commit
05c772f389
1 file changed
+3
@@ -245,6 +245,9 @@ figure img {
|
||||
height: auto;
|
||||
max-width: 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.
|
||||
|
||||
Reference in new issue
Block a user