Menu icon Foundation

My Posts


My Comments

Jon commented on Jonas Marlo Loerken's post over 4 years

Do you mean that it shouldn't be sticky on mobile?

If thats the case, you can just toggle the .sticky class on/off depending on the device, with some JavaScript.

This script it what I use: https://gist.github.com/jonmunson/51eab4369dcf9b59e399

Or, you could use a media query within CSS/SCSS to apply the properties of the .sticky class based on the viewport width (maybe medium-up).

Jon commented on Jon's post over 5 years

Great use of mixins in that example!

Jon commented on ezekel's post over 5 years

Hi Ezekel. SASS or SCSS extends CSS. It allows you to use variables and mixins to make your styles easier to manage. You can fond out more here:
http://sass-lang.com/

I would recommend starting with Compass though. http://compass-style.org/
There is some command-line work involved, but it is well worth it to develop scaleable and semantic code.

Posts Followed



Following

    No Content

Followers

My Posts

My Comments

You commented on Jonas Marlo Loerken's post over 4 years

Do you mean that it shouldn't be sticky on mobile?

If thats the case, you can just toggle the .sticky class on/off depending on the device, with some JavaScript.

This script it what I use: https://gist.github.com/jonmunson/51eab4369dcf9b59e399

Or, you could use a media query within CSS/SCSS to apply the properties of the .sticky class based on the viewport width (maybe medium-up).

You commented on Jon's post over 5 years

Great use of mixins in that example!

You commented on ezekel's post over 5 years

Hi Ezekel. SASS or SCSS extends CSS. It allows you to use variables and mixins to make your styles easier to manage. You can fond out more here:
http://sass-lang.com/

I would recommend starting with Compass though. http://compass-style.org/
There is some command-line work involved, but it is well worth it to develop scaleable and semantic code.

Posts Followed

Following

  • No Content

Followers

  • No Content