Skip to content

Commit

Permalink
Merge pull request #46 from WebDevStudios/svg
Browse files Browse the repository at this point in the history
SVG!
  • Loading branch information
gregrickaby committed May 27, 2015
2 parents dcbe017 + 5847393 commit 97338ad
Show file tree
Hide file tree
Showing 42 changed files with 205 additions and 25 deletions.
38 changes: 37 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,32 @@ module.exports = function(grunt) {
}
},

svgmin: {
dist: {
files: [{
expand: true,
cwd: 'images/svg',
src: ['*.svg'],
dest: 'images/svg'
}]
}
},

svgstore: {
options: {
prefix: 'icon-',
cleanup: ['fill', 'style'],
svg: {
style: 'display: none;'
}
},
default: {
files: {
'images/svg-defs.svg': ['images/svg/*.svg'],
}
}
},

sass: {
options: {
sourceMap: true,
Expand Down Expand Up @@ -145,6 +171,15 @@ module.exports = function(grunt) {
},
},

svg: {
files: ['images/svg/*.svg'],
tasks: ['svgstore'],
options: {
spawn: false,
livereload: true,
},
},

},

shell: {
Expand Down Expand Up @@ -248,7 +283,8 @@ module.exports = function(grunt) {
grunt.registerTask('javascript', ['concat', 'uglify']);
grunt.registerTask('imageminnewer', ['newer:imagemin']);
grunt.registerTask('sprites', ['sprite']);
grunt.registerTask('icons', ['svgmin', 'svgstore']);
grunt.registerTask('i18n', ['makepot']);
grunt.registerTask('default', ['styles', 'javascript', 'imageminnewer', 'i18n', 'sassdoc']);
grunt.registerTask('default', ['styles', 'javascript', 'imageminnewer', 'icons', 'i18n', 'sassdoc']);

};
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,18 @@ After you've installed _s, and run `npm install && bower install` from the comma

##### 2) Grunt tasks available:

`grunt watch` - Automatically handle changes to CSS, javascript, and image sprites
`grunt watch` - Automatically handle changes to CSS, javascript, SVG and image sprites.

`grunt javascript` - Concatenate and minify javascript files
`grunt javascript` - Concatenate and minify javascript files.

`grunt styles` - Comb, compile, prefix, combine media queries, and minify CSS files
`grunt styles` - Comb, compile, prefix, combine media queries, and minify CSS files.

`grunt imageminnewer` - Minify images
`grunt imageminnewer` - Minify images.

`grunt sprites` - Generate image sprites and the associated CSS
`grunt sprites` - Generate image sprites and the associated CSS.

`grunt i18n` - Generate a translation file
`grunt icons` - Generate SVG sprites.

`grunt i18n` - Generate a translation file.

`grunt` - Do it all once!
14 changes: 1 addition & 13 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,7 @@
<?php printf( esc_html__( 'Theme: %1$s by %2$s.', '_s' ), '_s', '<a href="http://automattic.com/" rel="designer">Automattic</a>' ); ?>
</div><!-- .site-info -->

<?php
if ( has_nav_menu( 'social' ) ) :
// Social menu
wp_nav_menu( array(
'theme_location' => 'social',
'container' => false,
'menu_class' => 'menu-social menu menu-horizontal',
'link_before' => '<span class="screen-reader-text">',
'link_after' => '</span>'
)
);
endif;
?>
<?php _s_do_social_icons(); ?>

</div><!-- .wrap -->
</footer><!-- #colophon -->
Expand Down
1 change: 1 addition & 0 deletions images/svg-defs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/angle-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/angle-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/arrow-circle-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/arrow-circle-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/bars.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/chevron-circle-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/chevron-circle-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/chevron-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/chevron-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/envelope.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/facebook-square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/facebook.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/github-alt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/github-square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/google-plus-square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/google-plus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/instagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/linkedin-square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/linkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/pinterest-p.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/pinterest-square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/rss-square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/rss.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/svg/times-circle-o.svg
1 change: 1 addition & 0 deletions images/svg/twitter-square.svg
Loading

0 comments on commit 97338ad

Please sign in to comment.