Getting rid of serendipitySideBarItem padding?

Creating and modifying plugins.
Post Reply
Mekk
Regular
Posts: 54
Joined: Tue Jul 22, 2008 7:53 pm
Contact:

Getting rid of serendipitySideBarItem padding?

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Getting rid of serendipitySideBarItem padding?

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply