Closed (fixed)
Project:
Zen
Version:
7.x-5.x-dev
Component:
CSS/SASS/HTML markup
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2012 at 22:12 UTC
Updated:
17 Sep 2015 at 21:26 UTC
Jump to comment: Most recent
Comments
Comment #1
echoz commentedSee STARTERKIT/sass-extensions/zen-grids/stylesheets/zen/_background-grid.scss
I haven't played with it since the beginning days of zen grids.
Comment #2
mrynearson commented@echoz thanks for the pointer. In that file there appears to be a mixin -experimental-bg-grid that you can't call unless you add it to the zen mixin file _grids.scss but it doesn't appear to work, at least for me. Either way the developer notes in STARTERKIT/sass-extensions/zen-grids clearly say do not modify anyway. Maybe someone else can chime in on how to show the background grids using zen grids.
Comment #3
echoz commentedIn _background-grid.scss it says, "This mixin currently requires the following markup at the top of the responsive container (e.g. body or div#page, etc.)"
Comment #4
mrynearson commentedYea I tried that earlier, it just added the text numbers. Didn't seem to display a grid.
Comment #5
gmclelland commentedI haven't been able to completely get it working(aligned) but here is what I did.
add to your .scss file
@import "zen/background-grid";then add
Then add the html - This mixin currently requires the following markup at the top of the responsive container (e.g. body or div#page, etc.).
Comment #6
gmclelland commentedNote: only use the markup needed for the amount of columns. If your total columns is 7 then the html should look like:
Also for reference there is an issue for backgrounds on grids at https://github.com/JohnAlbin/zen-grids/issues/25
Comment #7
cimo75 commentedI can t get this to work, the columns all span over 100% of the whole page...
Simone
Comment #8
echoz commentedComment #9
thamas"This will be part of Zen Grids 2.0, btw." https://github.com/JohnAlbin/zen-grids/issues/25#issuecomment-13708737
Zen Grids 2.0.0-alpha2 is now out. https://github.com/JohnAlbin/zen-grids/tags
Update: Issues were removed from the repo(?). Update 2: fixed URLs!
Comment #10
cimo75 commenteduh? broken links
Comment #11
thamasIt seems the complete Issues section were removed from the repo(?)
However there are good news too. A new zen-grid-background() mixin is introduced in ZenGrids 1.4 too.
See: https://github.com/JohnAlbin/zen-grids/commit/46bd861da990431825b4cb8c58... and https://github.com/JohnAlbin/zen-grids/commit/a3d2524826ded9ed40729ef4b8... (hope these won't be removed… ;o))
Comment #12
tseven commentedIf you're using the 7.x module, then you can simply drop the _background.scss file into your theme_name/sass-extensions/zen-grids/stylesheets/zen/ folder.
Then in your _base.scss add:
@import "zen/background";Then add:
@include zen-grid-background();to your grid container.
You may read more about the new grid background here.
You will need to be running compass 0.12 or later.
Comment #13
stanb commentedThanks tseven. That worked for me. However, adding
to my grid container gave me a separate grid for each section (header, main, footer) which wasn't exactly what I needed.
Instead, I added:
to responsive-sidebars.scss and it gave me a grid that displayed across the entire page which is more what I was looking for. Thanks again!
Comment #14
kendouglass commentedI couldn't get this to work. Also, the class="bg-grid" messed up all kinds of things in my theme.
Comment #15
johnalbinI moved the repo to remove the "compass-" part of the URL. Sorry about that! I'll edit the comments to fix the links.
Zen Grids 1.4 is now included in 7.x-5.x-dev, so this is fixed!
Comment #17
vagelis-prokopiou commentedOn this url http://next.zengrids.com/reference/background/#mixins is says that you have to @import "zen-grids/background";.
On this url http://zengrids.com/help/#zen-grid-background it says that you have to @import "zen/background";.
The second one seems to work for me. I hope that helps.
Comment #18
MeAndBella commentedFor anyone still trying to get this working, I had to put the
declaration in the top level of each media query in the responsive.scss file,