Fix Gallery "fit height" in Chrom*

This commit is contained in:
Zixaphir 2013-09-03 16:10:46 -07:00
parent ba2ecd8237
commit 6ef4beb3e6
3 changed files with 12 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1192,6 +1192,13 @@ a:only-of-type > .remove {
max-width: 100%; max-width: 100%;
} }
.gal-fit-height .gal-image img { .gal-fit-height .gal-image img {
/*
Chrome doesn't support viewpoint units in calc()
http://bugs.chromium.org/168840
"It looks like the original author of viewport units in WebKit is not coming back to fix this stuff."
Well, fuck.
*/
max-height: 95vh;
max-height: calc(100vh - 25px); max-height: calc(100vh - 25px);
} }
.gal-buttons { .gal-buttons {