Closed (fixed)
Project:
Fusion
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Jun 2010 at 20:10 UTC
Updated:
19 Jan 2012 at 10:36 UTC
i've enabled GRID overlay in my fusion subtheme.
i'd like to change the inter-grid spacing used/displayed.
iiuc, that's spec'd in "./sites/all/themes/fusion/fusion_core/css/grid16-960.css":
...
/* gutters (2 x margin) */
.block .inner {
margin-left: 10px;
margin-right: 10px;
}
...
to override, i added to my subteheme's "local.css":
...
.block .inner {
margin-left: 1px;
margin-right: 1px;
}
...
then cleared cache, reloaded the page, and re-enabled GRID overlay.
unfortunately, there's NO change in apparent spacing ... it's still @ 10px.
what's the right way to override these spacings?
BenDJ
Comments
Comment #1
stephthegeek commentedThey need to have a higher specificity in order to override the ones from Fusion Core -- body .block .inner {} should work
Comment #2
a5342346 commentedComment #3
dsoundmn commentedjust wanted to add another note
if you don't want to override all of the blocks (i still want to figure out how to add a tag in skinr that does this w/o knowing the block ID) get the block id block-block-## and override it there
for mine
body .block#block-block-4 .inner,
body .block#block-block-6 .inner,
body .block#block-block-7 .inner {
margin: 0px;
}
hope this helps!
Comment #4
jeremycaldwell commented@dsoundmn, you can see a class to added to your block manually rather than or in addition to a pre-defined Skinr style. When you configure your block click on "Advanced Settings" and then enter a class in the field and you should be set.
http://dl.dropbox.com/u/15590475/Screenshots/2011-01-22_192.png
Comment #5
Clint Eagar commented#3 works great, much thanks @dsoundmn!
Comment #6
pedrospI was going nuts too with this topic, the answer here:
http://fusiondrupalthemes.com/forum/using-fusion/overiding-block-inner
Note that there is no space before .block
.primary-menu.block .inner {
margin-left: 0;
margin-right: 0;
}