Closed (fixed)
Project:
Square Grid theme
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2012 at 18:54 UTC
Updated:
27 Sep 2012 at 19:01 UTC
Hi. I've managed to assign grid classes to everything besides my main menu items. I don't seem to be able to do this in template.php.
Comments
Comment #1
laura s commentedIf you want to assign classes to each menu item, you might look at http://drupal.org/project/menu_attributes. Simply by assigning the class you want, the sqauregrid css will do its thing.
Comment #2
drushinka commentedThanks! I got my classes assigned to the menus, but they're still not doing what I want, which is to expand to 100% width in mobile view. What's the best way to do that in the theme?
Comment #3
laura s commentedI'm assuming you're working with the 2.x branch. This is getting much more simplified in the 3.x branch (which, as I write this, is working but subject to revision and therefore is not ready for production).
To focus on mobile, you can (a) set your styles globally and then override it in the responsive css for larger @media-targeted styles, or (b) you can add the style in mobile-only @media styles. Something like:
Is this what you're after?
Comment #4
drushinka commentedYes, thank you. And great theme!
Comment #5
laura s commentedThanks! I welcome your feedback.