Following the tip grimmus posted as a comment, I managed to solve this by creating a LESS variable and then using that variable in the @media
query.
I put this in my variables:
@ie8: \0screen;
And then in the query:
@media @ie8 {
.thumbnail div img {
width: 58px;
}
}
Works like a charm! Props to grimmus for the suggestion.