|
|
@ -213,15 +213,17 @@ var $renderKey = (typeof(exports) !== 'undefined') ? exports : {};
|
|
|
|
// Find rules that look like glyphs
|
|
|
|
// Find rules that look like glyphs
|
|
|
|
var glyphs = [];
|
|
|
|
var glyphs = [];
|
|
|
|
rules.forEach(function(rule) {
|
|
|
|
rules.forEach(function(rule) {
|
|
|
|
if(!rule.name && rule.selector.length === 1) {
|
|
|
|
if(!rule.name && rule.selector.length > 0) {
|
|
|
|
var matches = rule.selector[0].match(/^\.([a-zA-Z0-9]+)-([-a-zA-Z0-9]+)\:(before|after)$/);
|
|
|
|
rule.selector.forEach(function(selector) {
|
|
|
|
if(matches) {
|
|
|
|
var matches = selector.match(/^\.([a-zA-Z0-9]+)-([-a-zA-Z0-9]+)\:(before|after)$/);
|
|
|
|
var theClass = classes.indexOf(matches[1]);
|
|
|
|
if(matches) {
|
|
|
|
if(theClass != -1) {
|
|
|
|
var theClass = classes.indexOf(matches[1]);
|
|
|
|
var glyph = { name: matches[2], html: "<i class='" + classes[theClass] + " " + matches[1]+"-"+matches[2] +"'></i>" };
|
|
|
|
if(theClass != -1) {
|
|
|
|
glyphs.push(glyph);
|
|
|
|
var glyph = { name: matches[2], html: "<i class='" + classes[theClass] + " " + matches[1]+"-"+matches[2] +"'></i>" };
|
|
|
|
|
|
|
|
glyphs.push(glyph);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
glyphs.sort(function(a,b) { return a.name.localeCompare(b.name); });
|
|
|
|
glyphs.sort(function(a,b) { return a.name.localeCompare(b.name); });
|
|
|
|