daneden / Baseline.js

A simple jQuery plugin for restoring vertical baselines thrown off by odd image sizes
http://daneden.me/baseline
699 stars 55 forks source link

Allow different baselines for different breakpoints (min-width) while keeping single-value function calls #4

Closed RadLikeWhoa closed 12 years ago

RadLikeWhoa commented 12 years ago

Function calls can now include different baselines for different breakpoint (e.g. {'0px': 21, '480px': 24, '960px': 30}) as well as single values just like before.

jeremyworboys commented 12 years ago

What would be the expected outcome if {'0px': 21, '960px': 30, '480px': 24} was used.

Currently a baseline of 24 would be applied as it is the last matching pair. Would it make more sense to apply a baseline of 30 as it is the widest match pair?

daneden commented 12 years ago

Instamerge. Nice work @RadLikeWhoa.