getdave / Tanlinell

Boilerplate Wordpress theme for rapid development of new WP themes. Based on the great work of the _s ("Underscore") theme.
GNU General Public License v2.0
6 stars 2 forks source link

Add bump rules #291

Closed getdave closed 10 years ago

getdave commented 10 years ago

In recent projects I've created a module called "bump". The aim of this is to allow the developer to apply padding/margin conditionally based on the active breakpoint.

This is useful because in certain scenarios you need (for example) a bottom margin on smaller viewports which then causes additional spacing to appear on larger viewports. This margin thus needs to be cancelled at this larger viewport.

Currently this requires defining custom styles that are usually tied to the specific HTML markup which is not scalable.

Bump provides classes for

1) all directions of padding/margin (individually) 2) all padding/margin (all directions) 3) cancelling all directions of padding/margin (individually) 4) cancelling all padding/margin (all directions)

It's very similar to how the '_spacing' works but it takes account of breakpoints.

Extend the functionality and apply to the framework.

getdave commented 10 years ago

Moved to new repo https://github.com/getdave/tanlinell-framework/issues/8