Skip to content
Permalink
Browse files

Added fontello support in grunt

Update scss file structure
Update Language file
  • Loading branch information...
manishsongirkar committed Dec 26, 2013
1 parent 94b9b04 commit b6341fc38a685bfbe1bdfa97a467c927b2e30c87
@@ -2,34 +2,46 @@
module.exports = function(grunt) {

// load all grunt tasks matching the `grunt-*` pattern
// Ref. https://npmjs.org/package/load-grunt-tasks
require('load-grunt-tasks')(grunt);

grunt.initConfig({

// watch for changes and trigger compass, jshint, uglify and livereload

// Watch for hanges and trigger compass, jshint, uglify and livereload
// Ref. https://npmjs.org/package/grunt-contrib-watch
watch: {
compass: {
files: ['assets/**/*.{scss,sass}'],
files: ['assets/scss/**/*.{scss,sass}'],
tasks: ['compass']
},

livereload: {
options: { livereload: true },
files: ['style.css', '*.html', '*.php']
}
},

// compass and scss

// SCSS and Compass
// Ref. https://npmjs.org/package/grunt-contrib-compass
compass: {
dist: {
options: {
config: 'config.rb',
force: true
}
}
},

// Fontello Icons
// Ref. https://npmjs.org/package/grunt-fontello
fontello: {
dist: {
options: {
config: 'assets/icon-font/config.json',
fonts: 'assets/icon-font/font',
styles: 'assets/icon-font/css',
scss: true,
force: true
}
}
}
});

// register task
grunt.registerTask('default', ['watch']);
// Register Task
grunt.registerTask('default', ['fontello', 'watch']);
};
@@ -0,0 +1,85 @@
/*
Animation example, for spinners
*/
.animate-spin {
-moz-animation: spin 2s infinite linear;
-o-animation: spin 2s infinite linear;
-webkit-animation: spin 2s infinite linear;
animation: spin 2s infinite linear;
display: inline-block;
}
@-moz-keyframes spin {
0% {
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}

100% {
-moz-transform: rotate(359deg);
-o-transform: rotate(359deg);
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@-webkit-keyframes spin {
0% {
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}

100% {
-moz-transform: rotate(359deg);
-o-transform: rotate(359deg);
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@-o-keyframes spin {
0% {
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}

100% {
-moz-transform: rotate(359deg);
-o-transform: rotate(359deg);
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@-ms-keyframes spin {
0% {
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}

100% {
-moz-transform: rotate(359deg);
-o-transform: rotate(359deg);
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@keyframes spin {
0% {
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}

100% {
-moz-transform: rotate(359deg);
-o-transform: rotate(359deg);
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@@ -0,0 +1,26 @@

.rtw-rss:before { content: '\e803'; } /* '' */
.rtw-tumblr:before { content: '\e817'; } /* '' */
.rtw-github-circled:before { content: '\e802'; } /* '' */
.rtw-youtube:before { content: '\e812'; } /* '' */
.rtw-info:before { content: '\e809'; } /* '' */
.rtw-flickr-circled:before { content: '\e804'; } /* '' */
.rtw-vimeo:before { content: '\e80a'; } /* '' */
.rtw-twitter:before { content: '\e801'; } /* '' */
.rtw-gplus:before { content: '\e807'; } /* '' */
.rtw-pinterest:before { content: '\e806'; } /* '' */
.rtw-linkedin:before { content: '\e805'; } /* '' */
.rtw-stumbleupon:before { content: '\e80b'; } /* '' */
.rtw-facebook:before { content: '\e800'; } /* '' */
.rtw-paypal:before { content: '\e80e'; } /* '' */
.rtw-picasa:before { content: '\e80c'; } /* '' */
.rtw-soundcloud:before { content: '\e80f'; } /* '' */
.rtw-delicious:before { content: '\e813'; } /* '' */
.rtw-wordpress:before { content: '\e808'; } /* '' */
.rtw-blogger:before { content: '\e816'; } /* '' */
.rtw-deviantart:before { content: '\e814'; } /* '' */
.rtw-digg:before { content: '\e815'; } /* '' */
.rtw-foursquare:before { content: '\e810'; } /* '' */
.rtw-reddit:before { content: '\e818'; } /* '' */
.rtw-stackoverflow:before { content: '\e811'; } /* '' */
.rtw-instagram:before { content: '\e80d'; } /* '' */

Large diffs are not rendered by default.

@@ -0,0 +1,26 @@

.rtw-rss { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-tumblr { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-github-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-youtube { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-info { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-flickr-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-vimeo { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-twitter { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-gplus { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-pinterest { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-linkedin { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-stumbleupon { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-facebook { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-paypal { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-picasa { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-soundcloud { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-delicious { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-wordpress { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-blogger { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-deviantart { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-digg { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-foursquare { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-reddit { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-stackoverflow { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-instagram { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
@@ -0,0 +1,37 @@
[class^="rtw-"], [class*=" rtw-"] {
font-family: 'rtw-fontello';
font-style: normal;
font-weight: normal;

/* fix buttons height */
line-height: 1em;

/* you can be more comfortable with increased icons size */
/* font-size: 120%; */
}

.rtw-rss { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-tumblr { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-github-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-youtube { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-info { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-flickr-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-vimeo { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-twitter { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-gplus { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-pinterest { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-linkedin { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-stumbleupon { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-facebook { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-paypal { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-picasa { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-soundcloud { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-delicious { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-wordpress { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-blogger { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-deviantart { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-digg { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-foursquare { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-reddit { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-stackoverflow { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
.rtw-instagram { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }

Some generated files are not rendered by default. Learn more.

0 comments on commit b6341fc

Please sign in to comment.
You can’t perform that action at this time.