-
Add [grunt-svgstore] to your build tool:
npm install grunt-svgstore --save-dev
-
Create an
svgstore
task in Grunt (liketasks/options/svgstore.js
):
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Background mixin | |
@mixin strips($color, $angle){ | |
$color: saturate(lighten($color, 2%), 10%); | |
background: $color | |
linear-gradient($angle, $color 0%, $color 10%, | |
mix(black, $color, 5%) 10%, mix(black, $color, 5%) 20%, | |
mix(black, $color, 12%) 19%, mix(black, $color, 10%) 21%, // Thin line between gradient | |
mix(black, $color, 10%) 20%, mix(black, $color, 10%) 30%, | |
mix(black, $color, 17%) 29%, mix(black, $color, 15%) 31%, // Thin line between gradient | |
mix(black, $color, 15%) 30%, mix(black, $color, 15%) 40%, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
// SASSVG | |
// | |
// API : | |
// svg(<shape>, <size>, <color>, <unit>, <repeat>, <path:false>); | |
@mixin svg($shape, $size, $color, $unit, $repeat, $path: false) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p><a href="//facebook.com/119703784116" data-external="fb://profile/119703784116">Facebook</a> | |
<p><a href="//foursquare.com/v/4e4b3090fa7671a85ce77d0e" data-external="foursquare://venues/4e4b3090fa7671a85ce77d0e">Foursquare</a> | |
<p><a href="//twitter.com/oisfinc" data-external="twitter:/user?screen_name=oisfinc">Twitter</a> | |
<p><a href="//yelp.com/biz/orange-international-street-fair-orange" data-external="yelp:/biz/orange-international-street-fair-orange">Yelp</a> | |
<p><a href="//example.com/foo" data-external="example:/foo">Example</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Render_Menu | |
* ----------------- | |
* Render a menu using simple, semantic HTML | |
* | |
* Usage: new Render_Menu(@name) | |
* | |
* @name (string) name of the menu ("main-navigation") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin diagonal($rotation, $background, $height, $pos: after) | |
&:#{$pos} | |
content: '' | |
display: block | |
position: absolute | |
width: 100% | |
height: $height | |
background: #{$background} | |
transform: skewY($rotation) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add the snippet below in the file wp-config.php right above: /* That's all, stop editing! Happy blogging. */ | |
define('WP_DEBUG', true ); | |
if ( WP_DEBUG ) | |
{ | |
define('SAVEQUERIES', true ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function outOfViewport(colorWrapper, colorTag, colorClass) { | |
var w = document.body.offsetWidth, | |
it = document.querySelectorAll('*'); | |
for ( i in it) { | |
if( it[i].offsetWidth > w ) { | |
console.log( | |
`%c [` + | |
`%c` + it[i].tagName + | |
`%c.`+ it[i].classList + | |
`%c]`+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prod: | |
# ssh authentication details | |
ssh: user@example.com | |
# path to wordpress on the server | |
wordpress: path/to/wordpress | |
# path to backups folder on the server (must exist) | |
backups: backups | |
# production url | |
url: www.example.com | |
OlderNewer