Skip to content

incoder/shortCSS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShortCSS - jQuery Plugin

shortCSS - jQuery Plugin for shorten/replace css classnames

Getting Started

Include jQuery and the plugin on a page. Then add rules object and call shortCSS(). check the examples

$(document).ready(function(){
	var rules = {
	'hero-unit':'jumbotron',                //change hero-unit to jumbotron
	'span*':'col-md-*',                     // change all span{anything} classes to col-md-{anything}
	'icon-*':'glyphicon glyphicon-*',       // add multiple classes for one
	'bt-lg':'btn btn-primary btn-large',    //shorten the classes group
	//'span4':'col-lg-4',
	};
	$.shortCSS(rules);
});

License

Copyright (c) 2013 Mahesh Tile Licensed under the MIT license.

About

shortCSS - jQuery Plugin for shorten/replace css classnames

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published