This file contains hidden or 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 set-states($states) { | |
$selector: (); | |
@for $i from 1 through length($states) { | |
$selector: append($selector, unquote("&:#{nth($states, $i)}"), comma); | |
} | |
#{$selector} { | |
@content; | |
} | |
} |
This file contains hidden or 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 | |
// select php variable (more or less) | |
$sel_php_var = '\$([^\s,.;=*+\-&~%-+|)]*)'; |
This file contains hidden or 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
light blue green #DEF9F2 | |
light blue 2 #E0ECFF | |
light blue 3 #DFE2FF | |
lavender #E0D5F9 | |
light pink #FDE9F4 | |
light pink 2 #FFE3E3 | |
gray blue #5A6986 | |
bright blue #206CFF | |
blue #0000CC | |
purple #5229A3 |
This file contains hidden or 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
// requires jQuery 1.x | |
// image load callback that is compatible with IE6 | |
var $img = $('.some-selector img'); | |
var isIE6 = jQuery.browser.msie && parseInt(jQuery.browser.version) == 6; | |
$img.one("load", function() | |
{ | |
/* | |
image load event code goes here |
This file contains hidden or 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
/** | |
* List of countries, with country code (ISO 3166-1), separated by whether | |
* they're inside or outside the EU. This list has been updated as of | |
* 2014-12-04, per the list of deleted countries | |
* at <http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2>. | |
*/ | |
var listAllCountries = { | |
'insideEU': { | |
'AT': 'Austria', |
This file contains hidden or 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
// Class to hide something except on aural browsers/screen readers. | |
// Just setting display: none does not work, since then it hides the item | |
// on aural browsers too. | |
// This set of attributes appear to have good results, but feedback | |
// from users of screen readers is always appreciated. | |
.aural-only { | |
height: 1px; | |
margin: -1px; | |
clip: rect(0px, 0px, 0px, 0px); | |
border: none; |
This file contains hidden or 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
{ | |
"AT": "Austria", | |
"BE": "Belgium", | |
"BG": "Bulgaria", | |
"HR": "Croatia", | |
"CY": "Cyprus", | |
"CZ": "Czech Republic", | |
"DK": "Denmark", | |
"EE": "Estonia", | |
"FI": "Finland", |
This file contains hidden or 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
// JSCS - for testing code style. | |
jscs: { | |
options: { | |
config: 'jscs.json', | |
}, | |
gruntfile: { | |
src: ['gruntfile.js'] | |
}, | |
// es6 and jsx are not testable yet. | |
src: { |
This file contains hidden or 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.1.0-beta) | |
// ---- | |
@mixin pulsate($animation-name, $start-size: 0.75, $end-size: 1, $duration: 1.5s) { | |
@keyframes #{$animation-name} { | |
0% { transform: scale($start-size); } | |
50% { transform: scale($end-size); } | |
100% { transform: scale($start-size); } | |
} |
OlderNewer