Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: Sverre on June 04, 2010, 02:15:58 AM

Title: [2.0 RC3] margin and padding shorthand notation
Post by: Sverre on June 04, 2010, 02:15:58 AM
I haven't followed development/the Bugtracker lately, but in case this hasn't been mentioned yet (a quick search didn't pull up any results), there is a large number of instances (in index.css) where the shorthand notation for these properties could be simplified. For example:

#smileyBox_message
{
   margin: 0.75em 0 0.5em 0;
}


could be simplified to:

#smileyBox_message
{
   margin: 0.75em 0 0.5em;
}


Also, a decision should probably be made regarding the notation of decimal length values between zero and one, so you avoid mixing the notations with the zero included and omitted.

Here's an example where the leading (superfluous) zero has been omitted:

.post_verification
{
   margin-top: .5em;
}
Title: Re: [2.0 RC3] margin and padding shorthand notation
Post by: MultiformeIngegno on June 06, 2010, 07:55:16 AM
Interesting!
Title: Re: [2.0 RC3] margin and padding shorthand notation
Post by: Norv on July 18, 2010, 04:48:26 AM
Thank you for the ideas. I think they may be worth looking into, time permitting. We are a bit constrained on that one. :)
Title: Re: [2.0 RC3] margin and padding shorthand notation
Post by: Joshua Dickerson on July 26, 2012, 12:40:44 PM
Sorry for necro-posting but I am moving this as I know Antechinus and others are keeping this in mind when they make CSS changes.

Thanks, Sverre