Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
proper use of spacing classes
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Rick Lowes  
View profile  
 More options Jan 11, 11:13 am
From: Rick Lowes <rlo...@gmail.com>
Date: Wed, 11 Jan 2012 08:13:54 -0800 (PST)
Local: Wed, Jan 11 2012 11:13 am
Subject: proper use of spacing classes
Hi again folks,

Just wanted to ask the group for some advise on the use of the spacing
classes - I am very hesitant to use them as I feel they are a very
granular abstraction that not only adds to my markup, but I forsee
potential issues down the road making overall design changes where I
may have inserted these classes.

Mainly I am using them currently to override default styles on
elements, so if for instance if I am using a <ul> that has default
margin on the bottom, but putting it somewhere I don't like the
margin, I am adding the "mbn" class to remove it. That's just one
example.

I'm trying to use these as sparingly as possible and have setup "smart
defaults" as best I can, however, as always, there are lots of
exceptions in your defaults, and a lot of them tend to be the same -
the main one being that I don't want margin or padding on a particular
element, on one or more sides.

Is this the right approach to using these?

@ricklowes


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Murray Nuttall  
View profile   Translate to Translated (View Original)
 More options Jan 11, 1:16 pm
From: Murray Nuttall <murray.nutt...@gmail.com>
Date: Thu, 12 Jan 2012 07:16:34 +1300
Local: Wed, Jan 11 2012 1:16 pm
Subject: Re: proper use of spacing classes
I rarely us the spacing classes.

If I find that I'm having to use them too much, I talk to the designer about the consistency of spacing between elements. I discuss default line-height and margin settings, then most of the time they're happy to go with whatever the stylesheet dictates from that point onwards.

Murray

On 12/01/2012, at 5:13 AM, Rick Lowes <rlo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
aaron cavano  
View profile  
 More options Jan 11, 1:31 pm
From: aaron cavano <aaroncav...@gmail.com>
Date: Wed, 11 Jan 2012 13:31:24 -0500
Local: Wed, Jan 11 2012 1:31 pm
Subject: Re: proper use of spacing classes
Personally I find them extremely helpful in concept, but in practice the recommended use is to customize for sure.

Lately I've been building a ton of responsive web applications and here is my workflow:

        1. Add margins and padding to User Interface classes as needed
        2. Once most of the UI is mapped out do a search or write a Regular expression to analyze every margin, line-height, and padding instance.
        3. Separate these results from the rest of the styles and find repetition and patterns.
        4. a. If there are obvious patterns/repetition then refactor in spacing classes.
            b. If not you are done, congrats and enjoy that cocktail!

Hope this helps,
Aaron Cavano

On Jan 11, 2012, at 1:16 PM, Murray Nuttall wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aeron Glemann  
View profile  
 More options Jan 12, 7:58 am
From: Aeron Glemann <aeron.glem...@gmail.com>
Date: Thu, 12 Jan 2012 06:58:25 -0600
Local: Thurs, Jan 12 2012 7:58 am
Subject: Re: proper use of spacing classes

I think standard spacing makes a lot of sense if you're using SASS or
LESS.. personally I use a SASS mixin for spacing increments based on a
vertical rhythm:

http://compass-style.org/reference/compass/typography/vertical_rhythm/

The mixin is used like (in this case with a 13px baseline, changing the
baseline would affect the generated increments):

@include space(1);

Generates: margin: 0.667em;

@include space(2 1);

Generates: margin: 1.333em 0.667em;

@include space-left(1);

Generates: margin-left: 0.667em;

@include space(1 1 2, padding);

Generates: padding: 0.667em 0.667em 1.333em;

Etc... Using a vertical rhythm makes your text look good. Centralizing all
spacing around that rhythm brings that goodness to the rest of your layout.

If you really need something to be spaced 5px, than just code it to be 5px.
If you find yourself doing "space(10)" than you really want to be using a
grid there.

Anyway, I think standard spacing increments is a really good and valid
approach. Hard coded spacing classes in your HTML is not...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nicole Sullivan  
View profile  
 More options Jan 20, 1:58 pm
From: Nicole Sullivan <nic...@stubbornella.org>
Date: Fri, 20 Jan 2012 10:58:42 -0800
Local: Fri, Jan 20 2012 1:58 pm
Subject: Re: proper use of spacing classes

The spacing classes are only meant to override sensible default values in
case of exceptions. That said, sensible default values are very hard to
achieve. I think we need a good test page so that we can try different
solutions and evaluate them for browser support, ease of use, reduction in
dependence on spacing classes.

Would someone be willing to create a margin test page? This page should
contain all the different objects, combined in creative ways.

It should also include edge cases, like two-unit grid with several
paragraphs & headings on one side and a rounded corner box on the other
that also contains paragraphs and headings.

Any other suggestions about weird margin edge cases that should be included?

   - lists
   - figures
   - callouts/pullquotes
   - tables
   - tabs
   - etc

Nicole

On Thu, Jan 12, 2012 at 4:58 AM, Aeron Glemann <aeron.glem...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »