kadirahq / meteor-dochead

Isomorphic way to manipulate document.head for Meteor apps
MIT License
131 stars 17 forks source link

Body.addClass and Body.replaceClasses #5

Open timbrandin opened 9 years ago

timbrandin commented 9 years ago

Would be nice to be able to set Body classes with this package or another package.

Body.addClass("mobile") // Add a new class to the body tag. Body.removeClass("mobile") // Remove class(es) from the body tag. Body.replaceClasses("desktop") // Replace all classes with "desktop" only. Body.replaceClasses("") // Remove all classes.

How about it?

arunoda commented 9 years ago

This package is meant to manipulate the head. I don't think this request suits here. On 2015 සැප් 7, සඳුදා at පෙ.ව. 1.54 Tim Brandin notifications@github.com wrote:

Would be nice to be able to set Body classes with this package or another package.

Body.addClass("mobile") // Add a new class to the body tag. Body.removeClass("mobile") // Remove class(es) from the body tag. Body.replaceClasses("desktop") // Replace all classes with "desktop" only. Body.replaceClasses("") // Remove all classes.

How about it?

— Reply to this email directly or view it on GitHub https://github.com/kadirahq/meteor-dochead/issues/5.

timbrandin commented 9 years ago

You're right, maybe better suited in it's own package. :)

2015-09-07 2:52 GMT+02:00 Arunoda Susiripala notifications@github.com:

This package is meant to manipulate the head. I don't think this request suits here. On 2015 සැප් 7, සඳුදා at පෙ.ව. 1.54 Tim Brandin notifications@github.com wrote:

Would be nice to be able to set Body classes with this package or another package.

Body.addClass("mobile") // Add a new class to the body tag. Body.removeClass("mobile") // Remove class(es) from the body tag. Body.replaceClasses("desktop") // Replace all classes with "desktop" only. Body.replaceClasses("") // Remove all classes.

How about it?

— Reply to this email directly or view it on GitHub https://github.com/kadirahq/meteor-dochead/issues/5.

— Reply to this email directly or view it on GitHub https://github.com/kadirahq/meteor-dochead/issues/5#issuecomment-138145731 .

Cheers, // Tim Brandin @timbrandin https://twitter.com/#!/timbrandin http://timbrandin.com http://studiointeract.com