I love the "show-grid" body class, but sometimes you don’t want to see the pretty grids when you developing.
As it is right now, you have to edit your subtheme body tag and remove or rename the "show-grid" class to disable the grids, then add it or rename is to show-grid again.
I was tired of doing that every time I wanted to see how the site really looked without the grids, so I made a little JS-Snippet.
Include the js-file in your subtheme and press "shift + g" to toggle.
To include this, edit your .info theme file and paste this
; The grid toggle javascript
scripts[] = gridtoggle.js
If you are in a or an the script will not toggle (It will think you are typing as usually).
It’s tested on my Windows XP machine with
- IE8
- IE7 (compability mode in IE8)
- FF 3.6
- Safari 4.0.3
vChrome 4.0.249.78
I have no good idea how to integrate this in a smart way if the maintainers decide to include this in future releases.
// Emil
Comments
Comment #1
anonComment #2
anonDemo http://anon-design.se/demo/toggle-ninesixty-theme-960-grids-with-js
Comment #3
PMorris commentedLove using this script! I changed it a bit so it would work in Drupal 7 which won't let you use document.ready. Note: "YOURTHEME" should be changed to your theme name
Comment #4
nickgs commentedThis rocks guys!!
Thanks!!
Nick