Added hash values support in `@media`. Closes #1241