Skip to content

SBRDevelopment/Stylish.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stylish.js

CSS on-page editor. Created for the purpose of allowing live style changes to dynamic CMS stylesheet.

Features

  • DOM element smart selector
  • Bootstrap compatible
  • Small footprint

Screenshot

stylish

Dependencies

  • jQuery 1.9.1 (or higher) Styles are based off of Bootstrap, but it is not required.

Usage

(function($, window) {
  // To enable on an element
  // * The 'post' parameter is required ... will throw an exception
  //   if it is not specified
  $(body).stylish({
    'post': 'scripts/post.php',
  });
  
  // If stylish has aready been initialized on an element simply turn it on ... 
  $(body).stylish('on');
  
  // To turn off and disable stylish editing
  $(body).stylish('off');
  
  // To remove all references
  $(body).stylish('destroy');

})(jQuery, window);

About

CSS on-page editor. Created for the purpose of allowing live style changes to dynamic CMS stylesheet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •