broken @media queries in logic blocks. Fixes #1288