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
// Breakpoints | |
@mixin bp($point) { | |
@if $point == wide { | |
@media (max-width: $bp-wide) { @content; } | |
} | |
@else if $point == full { | |
@media (max-width: $bp-full) { @content; } | |
} | |
@else if $point == landscape { | |
@media (max-width: $bp-landscape) { @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
// create custom selector for external links | |
$.expr[':'].external = function(obj){ | |
var $this = $(obj); | |
return !$this.is('[href^="mailto:"]') && !$this.is('[href^="javascript:"]') && (obj.hostname != location.hostname) && ($this.data('target') != "top"); | |
}; | |
// DOM is ready | |
$(function(){ | |
// apply target="_blank" to each external link on the page |
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
//Fixing z-index problem for iframes | |
$('iframe').each(function(){ | |
var url = $(this).attr("src"); | |
var char = "?"; | |
if(url.indexOf("?") != -1){ | |
var char = "&"; | |
} | |
$(this).attr("src",url+char+"wmode=transparent"); | |
}); |
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
<ul class="collapse_list"> | |
<li><a href="#" data-toggle="collapse" data-target="#one">One</a></li> | |
<li><a href="#" data-toggle="collapse" data-target="#two">Two</a></li> | |
</ul> | |
<div class="collapse_content"> | |
<div id="one"> | |
<p>Content for div one</p> | |
</div> |
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
function my_custom_login_logo() { | |
echo '<style type="text/css"> | |
h1 a { background-image:url('.get_bloginfo('template_directory').'/images/logo.png) !important; } | |
</style>'; | |
} | |
add_action('login_head', 'my_custom_login_logo'); |
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
var max_height = 0; | |
$("div.col").each(function(){ | |
if ($(this).height() > max_height) { max_height = $(this).height(); } | |
}); | |
$("div.col").height(max_height); |
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-reset { | |
padding: 0; | |
margin: 0; | |
list-style: none; | |
} | |
%list-across { | |
@extend .clearfix; | |
> li { | |
float: left; |
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
// Layout widths | |
$bp-full: 1200px; | |
$bp-landscape: 1024px; | |
$bp-mobile: 767px; | |
$bp-portrait: 768px; | |
$bp-wide: 1400px; | |
$container-width: 1060px; | |
// Breakpoints | |
@mixin bp($point) { |
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
$(".element a").click(function () { | |
$(".elementToggled").toggle(); | |
return false; | |
}).next().hide(); |
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
<div id="branding"> | |
<?php $loop = new WP_Query(array('post_type' => 'brandingArea', 'orderby'=> 'ASC')); while ( $loop->have_posts() ) : $loop->the_post(); ?> | |
<div> | |
<img src="<?php the_field('image'); ?>" alt="" class="slide-background"/> | |
<div class="slide-content"> | |
<h1><?php the_title(); ?>:</h1> | |
<p><?php the_field('text'); ?> <a href="<?php the_field('link'); ?>" class="more" title="<?php the_title(); ?>">Learn More</a></p> | |
</div> | |
</div> | |
<?php endwhile; ?> |