#Dynamic Menubar Height with flexbox
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
// User HoverIntent | |
$(".dropdown-menu .menu-item-has-children").hoverIntent( | |
function(){ | |
var isMega = $(this).hasClass("mega-menu"); | |
var sub = $(this).find("> .sub-menu"); | |
if( isMega ){ | |
$(sub).css("display","table"); | |
} else { | |
$(sub).show(); |
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
$browser-context: 16; | |
@function em($pixels, $context: $browser-context) { | |
@if (unitless($pixels)) { | |
$pixels: $pixels * 1px; | |
} | |
@if (unitless($context)) { | |
$context: $context * 1px; | |
} |
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 $el = $("#very-specific-design"); | |
var elHeight = $el.outerHeight(); | |
var elWidth = $el.outerWidth(); | |
var $wrapper = $("#scaleable-wrapper"); | |
$wrapper.resizable({ | |
resize: doResize | |
}); |
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
/* | |
* If you want to style specific Input, prepend the input selector like: | |
* | |
* .control::-webkit-input-placeholder{ ... } | |
* | |
*/ | |
::-webkit-input-placeholder { | |
color: red; | |
} |
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
/* | |
* This method can be applied to video tag and | |
* can be applied to iframe video like youtube, but with some issue to be considered | |
*/ | |
video{ | |
/* Centering the video */ | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translateX(-50%) translateY(-50%); |
##Add Custom Options for WordPress Widgets This snippet will add some option to all registered widget in wordpress.
##Targetting IE10+ Using Media Query Reference: http://philipnewcomer.net/2014/04/target-internet-explorer-10-11-css/
OlderNewer