Last active
October 7, 2019 20:42
-
-
Save neodigm/5fbde7d949bca1d68bea4938d1a36480 to your computer and use it in GitHub Desktop.
Microsoft IE11 Flexbox Monkey Patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) { /*ms*/ | |
.flex__item:nth-child(2) { flex-basis: 88% } | |
} | |
@supports (display: grid) { | |
.l-productthumb>section { | |
display: grid; | |
justify-content: center; | |
grid-template-columns: repeat(auto-fill, 242px); | |
} | |
} | |
/* | |
.-"""-. | |
_/-=-. \ | |
(_|a a/ |_ | |
/ " \ ,_) | |
_ \`=' /__/ | |
/ \_ .;--' `-. | |
\___)// , \ | |
\ \/; \ \ | |
\_.| | | | |
.-\ ' _/_/ | |
.' _;. (_ \ | |
/ .' `\ \\_/ | |
|_ / | |\\ | |
/ _) / / || | |
/ / _/ / // | |
\_/ ( `-/ || | |
/ / \\ .-. | |
\_/ \'-'/ | |
`"` | |
*/ | |
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) { /*ms*/ | |
.l-hotel-card { | |
flex-basis: 52%; | |
} | |
.l-hotel-card > SECTION { | |
flex-shrink: 0 !important; | |
flex-grow: 0 !important; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am adding some CSS Grid behind a supports query. This is intended to resolve the "White space on the right" issue on all browsers except IE 11.