Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
What would be the proper way to add media queries to specific parts of my zen 7.x.6.x subtheme?
Say I have a block that I want to hide completely on small screens.
This works, of course:
@media only screen and (max-width : 330px) {
//some css
}
but seeing $zen-layouts defines some media query variables (m, xl, xxl etc), I'm guessing I have to reference these in sass/css some way?
I have been reading the documentation on both zen theme and zen-grids, but I have not been able to figure this out.
Comments
Comment #2
Noemi CreditAttribution: Noemi commentedSearching for same kind of documentation. I found this comment in subtheme
_variables.scss
file:Hope it helps. :)