Created
May 7, 2014 12:56
-
-
Save patcullen/90ff7dbcf34e2ce7a06a to your computer and use it in GitHub Desktop.
Inject CSS with Javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(['injectCSS'], function(injectCSS) { | |
injectCSS(function(){/* | |
.case1 { | |
border: 3px solid #0f0; | |
} | |
*/}); | |
injectCSS('.case2 { border: 3px solid #00f; } '); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment