Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Body.addClass and Body.replaceClasses #5

Open
timbrandin opened this issue Sep 6, 2015 · 2 comments
Open

Body.addClass and Body.replaceClasses #5

timbrandin opened this issue Sep 6, 2015 · 2 comments

Comments

@timbrandin
Copy link

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
Copy link
Contributor

arunoda commented Sep 7, 2015

This package is meant to manipulate the head. I don't think this request
suits here.
On 2015 සැප් 7, සඳුදා at පෙ.ව. 1.54 Tim Brandin [email protected]
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
#5.

@timbrandin
Copy link
Author

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

2015-09-07 2:52 GMT+02:00 Arunoda Susiripala [email protected]:

This package is meant to manipulate the head. I don't think this request
suits here.
On 2015 සැප් 7, සඳුදා at පෙ.ව. 1.54 Tim Brandin [email protected]
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
#5.


Reply to this email directly or view it on GitHub
#5 (comment)
.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants