Explorar o código

fix: responsive Figure aspect ratio in Safari

See https://discord.com/channels/722225264733716590/742863504515793149/812308038174244904
See https://stackoverflow.com/a/61196907
George Cushen %!s(int64=4) %!d(string=hai) anos
pai
achega
05c772f389
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      wowchemy/assets/scss/wowchemy/_base.scss

+ 3 - 0
wowchemy/assets/scss/wowchemy/_base.scss

@@ -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.