I just found ubiquity and love its look. I've only been working with it for a couple of days and I have a few tweaks that you may be interested in. When working with paged data like acidfree albums, there is not enough room to display prev, next, 9 items links, etc and have it fit within the alloted space in the template.
I modified template.php to override theme_page_list() so that we display 5 item links and not 9. 5 is the most that will fit when all the links are double digit (i.e. 10, 11, 12,13,14)
This is accomplished by adding the following function to template.php
/* kjh: ubquity can't display all 9 pager items plus first, previous, next,
* & last in a single line. So we'll limit to 5 items
*/
function ubiquity_pager_list($limit, $element = 0, $quantity = 5, $text = '', $parameters = array()) {
$quantity = min($quantity, 5);
return theme_pager_list($limit, $element, $quantity, $text, $parameters);
}
Some other tweaks I've done:
All my tables in the content space were sized at 100%, I added the following:
/* kjh: don't make tables in content 100% */
.content table {
width: auto;
}
I didn't like the extra space in inline links like
Posted by kjh in $keyword
/* kjh: remove the padding on the left of the first link in a links inline */
.links li:first-child a {
padding-left: 0;
}
in acidfree inlines, I like the caption under the picture to be centered and italic.
/* kjh: caption under acidfree inlines */
div.filter-thumb-title {
font-style: italic;
text-align: center;
}
/* add a little space to the left of acidfree inlines. Is there a way to only do this if float: right is set for the span?
*/
span.filter-thumb {
margin-left: 5px;
}
There was no vertical space between the pager and the acidfree images in the various modes:
.pager {
margin-bottom: .75em;
}
div.acidfree-list {
margin-top: .75em;
}
div.acidfree-item {
margin-top: .75em;
padding-left: 0;
}
Comments
Comment #1
melon commentedThanks for the submission, I'll go and test it.
Comment #2
bkat commentedSome more tweaks primarily to improve the look of certain modules in ubiquity
Comment #3
bkat commentedThese additions to template.php make some things look better (to me)
Comment #4
melon commentedFirst of all, thanks for the submissions.
I evaluated some of your css codes and committed them.
As for the contributed modules, I am wondering what scheme should we follow.
- Include each and every contributed module overrides to the style.css?
- Add an extra css file which includes all contributed css overrides?
- Add an extra css for each contributed module css override.
To me at the moment, the second option seems best, but for any direct import from css would add one more http request even if css aggregator is on, since it cannot aggregate and compress directly imported files AFAIK.
Any suggestions?
Comment #5
bkat commentedYour second option seems like the best. I've often thought about having a local.css file where we can keep our local overrides. Makes upgrading a theme easier.
Comment #6
goo110np commentedHi
I got a fatal error when I tried to add some code to the template.php file to enable the page_title module. I gather the code to add is either all or just part of:
In fact I tried adding these section:
if (module_exists('page_title')) {
$vars['head_title'] = page_title_page_get_title();
}
}
return $vars;
}
Not being familiar with PHP I've probably got it wrong - may be just left out a space of something. Is there any chance you could post up the whole text for the template.php file including this addition for the page title module for me to copy? - that would be great! As you can see I am rather assuming you are using this module, If you don't and there is an alternative - you could let me know?
Many thanks
Julian
Comment #7
melon commentedYou probably inserted the code to the wrong place. Ubiquity 5.x-0.2 inserts the needed variable correctly for page_title module.
Comment #8
melon commentedCurrently I am rethinking the direct support of contrib modules. Please post new issues after 1.0-beta is released.
Comment #9
melon commentedCleaning up.