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
- base | |
- functions | |
- mixins | |
- variables | |
- fonts | |
- breakpoints | |
- reset | |
- helpers | |
- type |
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
var PrefixedEvent = function(element, type, callback) { | |
var pfx = ["webkit", "moz", "MS", "o", ""]; | |
for (var p = 0; p < pfx.length; p++) { | |
if (!pfx[p]) type = type.toLowerCase(); | |
element.addEventListener(pfx[p]+type, callback, 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
/** | |
* css modal | |
*/ | |
.modal { | |
text-align: center; | |
} | |
.modal__content { | |
padding: 2em; | |
display: inline-block; |
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
/** | |
* Lea Verou's CSS Lightbox, taken on webplatform.org | |
* For redistribution purposes | |
* @author Lea Verou <lea@w3.org> | |
*/ | |
.modal { | |
visibility: hidden; | |
position: fixed; | |
top: 50%; | |
left: 50%; |
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
/* ------------------------------------------ | |
PURE CSS SPEECH BUBBLES | |
by Nicolas Gallagher | |
- http://nicolasgallagher.com/pure-css-speech-bubbles/ | |
http://nicolasgallagher.com | |
http://twitter.com/necolas | |
Created: 02 March 2010 | |
Version: 1.2 (03 March 2011) |
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
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
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
$(document).on('mouseup touchend', function(e) { | |
$('.my-elem').each(function() { | |
if($(this).has(e.target).length === 0) { | |
// hide this element? | |
} | |
}); | |
}); |
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
module.exports = function(grunt) { | |
var pkg = grunt.file.readJSON('package.json'); | |
var config = { | |
options: { | |
includePaths: [ | |
'<%=wpThemeDir%>/<%= wpParentThemeDir %>/sass/partials/' | |
] | |
}, |
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
Authenticate with GitHub to increase your rate limit and allow you to pull from private repositories. To do that, add the following entry to your ~/.netrc file: | |
machine api.github.com | |
login <username> | |
password <token> | |
You can quickly create a new GitHub token here https://github.com/settings/tokens/new. |
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
@-moz-document url-prefix() { | |
select { | |
height: auto; | |
} | |
} | |
http://stackoverflow.com/questions/3123063/what-does-moz-document-url-prefix-do/3123073#3123073 |