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?
Getting rid of serendipitySideBarItem padding?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Getting rid of serendipitySideBarItem padding?
Hi!
You can give each plugin it's own ID if you patch your sidebar.tpl template file, so that the code looks like:
(this replaces special chars in the ID to "_".
HTH,
Garvin
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:':':'_'} }">
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/
# 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/