• Welcome to Simple Machines Community Forum. Please login or sign up.
December 06, 2021, 12:56:24 PM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


[2.0 RC3] margin and padding shorthand notation

Started by Sverre, June 04, 2010, 02:15:58 AM

Previous topic - Next topic

Sverre

June 04, 2010, 02:15:58 AM Last Edit: July 19, 2010, 05:48:44 AM by α¢αηѕ
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;
}

MultiformeIngegno

RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Norv

Thank you for the ideas. I think they may be worth looking into, time permitting. We are a bit constrained on that one. :)
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Joshua Dickerson

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
Come work with me at Promenade Group



Need help? See the wiki. Want to help SMF? See the wiki!

Did you know you can help develop SMF? See us on Github.

How have you bettered the world today?

Advertisement: