I would like to use em's for the window width 'breakpoints' instead of pixels.

While a majority of responsive breakpoints use pixels, there are some who are moving to use em's instead (and even rem once it is better support in media queries). For example, the new Omega 4 theme uses em's as the default breakpoints now.

Comments

mehrpadin’s picture

Hey there,

Added to my to-do list :) thanks!

mehrpadin’s picture

Issue summary: View changes
Status: Active » Fixed

Hey again,

Just added :) please try the development release once it's updated (with the newest master branch of the SF library).

kendouglass’s picture

Thanks mehrpadin. I've got today's dev release and your changes to the library. I see that you have put some work into this. I hope this is easy to fix:

If I go to my superfish block configuration page and enter 100 ems for the sf-Smallscreen breakpoint, the menu actually responds at 100 pixels not ems.

kendouglass’s picture

Status: Fixed » Needs work

Changed status to "needs work"

mehrpadin’s picture

Hey Ken,

Did you also change the "Unit" to "em"? (right next to the "Breakpoint")

kendouglass’s picture

Status: Needs work » Closed (fixed)

mehrpadin,
My mistake. I wasn't using the latest SF library.

mengi’s picture

I can confirm dev version works great with ems. Thanks mehrpadin!

mengi’s picture

Figure I'd ask here instead of creating a new issue...How about a new stable release? I've update a couple of sites to the dev version and haven't had any problems and there are a lot of new features since 1.9.