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
.list-cd {margin-right: 0,5em;} | |
.list-cd::after {content: ', '; position: absolute;} | |
.list-cd:after {content: '.';} |
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
.no-event { | |
pointer-events: none; // IE9, IE10, webkit, fireFox | |
} |
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
$('.elm').click(function(e) { | |
e.preventDefault(); | |
e.stopPropagation(); // stop other event for this elm | |
}); |
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($){ | |
var hasTouch = /android|iphone|ipad/i.test(navigator.userAgent.toLowerCase()), | |
eventName = hasTouch ? 'touchend' : 'click'; | |
/** | |
* Bind an event handler to the "double tap" JavaScript event. | |
* @param {function} doubleTapHandler | |
* @param {number} [delay=300] | |
*/ |
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 placeholder { | |
&.placeholder { @content; } | |
&:-moz-placeholder { @content; } | |
&::-moz-placeholder { @content; } | |
&::-webkit-input-placeholder { @content; } | |
} |
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 isFileInputSupported = (function () { | |
// Handle devices which falsely report support | |
if (navigator.userAgent.match(/(Android (1.0|1.1|1.5|1.6|2.0|2.1))|(Windows Phone (OS 7|8.0))|(XBLWP)|(ZuneWP)|(w(eb)?OSBrowser)|(webOS)|(Kindle\/(1.0|2.0|2.5|3.0))/)) { | |
return false; | |
} | |
// Create test element | |
var el = document.createElement("input"); | |
el.type = "file"; | |
return !el.disabled; | |
})(); |
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 | |
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale") /* Firefox 10+, Firefox on Android */ | |
filter: gray /* IE6-9 */ | |
-webkit-filter: grayscale(100%) /* Chrome 19+, Safari 6+, Safari 6+ iOS */ | |
&:hover | |
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale") | |
-webkit-filter: grayscale(0%) |
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
// TyneMCE options : | |
// - editor style | |
function add_editor_styles() { | |
add_editor_style( 'css/editor-style.css' ); | |
} | |
add_action( 'init', 'add_editor_styles' ); | |
// - add custom style | |
add_filter( 'mce_buttons_2', 'mce_editor_buttons' ); | |
function mce_editor_buttons( $buttons ) { |
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
.no-select-text { | |
-webkit-touch-callout: none; | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
} |
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
/** | |
* Template.JS v 0.1 | |
* @author Andreev Sergey | |
* @corp USERSTORY | |
*/ | |
(function($) { | |
/** | |
* Template engine class | |
* @param {string} tpl template name | |
* @param {array} o @optional options array |
OlderNewer