Page 1 of 1

Getting rid of serendipitySideBarItem padding?

Posted: Wed Aug 06, 2008 1:15 pm
by Mekk
For some of my HTML nuggets I'd like to avoid the padding serendipitySideBarItem adds - instead, I want my nugget to fill whole column width.

What is the recommended method?

So far I hacked it using

.container_serendipity_html_nugget_plugin .serendipitySideBarContent {
padding: 0px;
}

but I am not really glad with that as I'd prefer to control it on per-nugget basis.... Maybe sidebar nuggets could be given some id or class?

Re: Getting rid of serendipitySideBarItem padding?

Posted: Wed Aug 06, 2008 1:48 pm
by garvinhicking
Hi!

You can give each plugin it's own ID if you patch your sidebar.tpl template file, so that the code looks like:

Code: Select all

<div class="serendipitySideBarItem container_{$item.class}" id="{$item.id|replace:'@':'_'|replace:':':'_'} }"> 
(this replaces special chars in the ID to "_".

HTH,
Garvin