Skip to content

Instantly share code, notes, and snippets.

@neodigm
Last active October 7, 2019 20:42
Show Gist options
  • Save neodigm/5fbde7d949bca1d68bea4938d1a36480 to your computer and use it in GitHub Desktop.
Save neodigm/5fbde7d949bca1d68bea4938d1a36480 to your computer and use it in GitHub Desktop.
Microsoft IE11 Flexbox Monkey Patch
@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;
}
}
@neodigm
Copy link
Author

neodigm commented Dec 14, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment