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-mix-blend-mode .class { | |
opacity: .75; | |
} |
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
html a[href^="tel"] { | |
text-decoration: none !important; | |
} |
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
.iz_tab { | |
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
input[type="checkbox"] { | |
-webkit-appearance: none; | |
} | |
input[type="checkbox"]:checked { | |
-webkit-appearance: checkbox; | |
} |
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
// Add Shortcode | |
function fn_marker_pink( $atts, $content = null ) { | |
// Attributes | |
extract( shortcode_atts( | |
array( | |
'color' => '#cf599b', | |
'fett' => '400' | |
), $atts ) | |
); |
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
<script> | |
WebFontConfig = { | |
typekit: { id: 'xxxxxx' } | |
}; | |
(function(d) { | |
var wf = d.createElement('script'), s = d.scripts[0]; | |
wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js'; | |
wf.async = true; | |
s.parentNode.insertBefore(wf, s); |
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 $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );?> | |
<div id="post" class"your-class" style="background-image: url('<?php echo $thumb['0'];?>')"> | |
<p>text demo</p> | |
</div> |
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 redirect_non_admin_user(){ | |
if ( !defined( 'DOING_AJAX' ) && !current_user_can('administrator') ){ | |
wp_redirect( site_url() ); exit; | |
} | |
} | |
add_action( 'admin_init', 'redirect_non_admin_user' ); |
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 (!Modernizr.svg) { | |
var imgs = document.getElementsByTagName('img'); | |
var endsWithDotSvg = /.*\.svg$/ | |
var i = 0; | |
var l = imgs.length; | |
for(; i != l; ++i) { | |
if(imgs[i].src.match(endsWithDotSvg)) { | |
imgs[i].src = imgs[i].src.slice(0, -3) + 'png'; | |
} | |
} |
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
.class { | |
-webkit-overflow-scrolling: touch; | |
} |