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 bodytag as in 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 <textarea> or an <input> the script will not toggle (It will think you are typing as usually).
It's tested on my Windows XP machine with
I have no good idea how to integrate this in a smart way if the ninesixty maintainers decide to include this in future releases.
Press shift+g on this page.
| Bilaga | Storlek |
|---|---|
| gridtoggle.js.txt | 635 byte |
Kommentarer
Skriv kommentarawesome idea - I just started working with ninesixty and this was pissing me off.
Nice
Thanks Chris and Bobby.
Skriv ny kommentar