Advertisement:

Author Topic: Minor css stuff in 2.0x  (Read 1039 times)

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 22,056
  • Master of BBC Abuse
Minor css stuff in 2.0x
« on: March 25, 2012, 06:11:04 PM »
Just found some minor cruddery that I missed before we released the thing. You get that.

This stuff:

Code: [Select]
/* the small stats */
#index_common_stats
{
display: block;
margin: 0 0 0.5em 0;
text-align: right;
font-size: 0.9em;
position: relative;
top: -20px;
line-height: 1px;
}

is teh bat poo. Much better like this:

Code: [Select]
#index_common_stats
{
margin: -28px 0 0.5em 0;
float: right;
font-size: 0.9em;
line-height: 1.3em;
}

To keep the newsfader sorted you'll also need to add a clear: both; there:

Code: [Select]
/* the newsfader */
#newsfader
{
margin: 0 2px;
clear: both;
}

I'd also suggest adding a line break to the BoardIndex.template.php markup in #index_common_stats. The reason is that it's much more tolerant when using larger-than-default font sizes on a 1024 screen. You can go up to 300% of default without the stats overlapping the linktree. Without the line break things start getting messy at 175%. Having the text stacked to two lines still looks fine at default font sizes IMO. I'd say it's arguably neater.

Code: [Select]
<div id="index_common_stats">
', $txt['members'], ': ', $context['common_stats']['total_members'], ' &nbsp;&#8226;&nbsp; ', $txt['posts_made'], ': ', $context['common_stats']['total_posts'], ' &nbsp;&#8226;&nbsp; ', $txt['topics'], ': ', $context['common_stats']['total_topics'], '<br />
', ($settings['show_latest_member'] ? ' ' . $txt['welcome_member'] . ' <strong>' . $context['common_stats']['latest_member']['link'] . '</strong>' . $txt['newest_member'] : '') , '
</div>';
"My idea of heaven consists of all the things I would go to Hell for."

I need another coding language like I need tertiary syphilis.

Antechinus modzRantyheinous themez - PSD pack for 2.0.x default theme

Offline Spuds

  • SMF Hero
  • ******
  • Posts: 2,046
  • Gender: Male
Re: Minor css stuff in 2.0x
« Reply #1 on: March 25, 2012, 09:58:33 PM »
Thanks ! .... I'll add that to my local css file, which means in a moment of madness it will get pushed :P
"It is better to have tried and failed than to have failed to try, but the result's the same."
"Give me the liberty to know, to utter, and to argue freely according to conscience, above all liberties."