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
$.fn.setAllToMaxHeight = function(){ | |
return this.height( Math.max.apply(this, $.map( this , function(e){ | |
if($(e).height()){ | |
return $(e).height(); | |
} | |
}) ) ); | |
} | |
$('.equaliser').setAllToMaxHeight(); |
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 dataset = []; | |
for (var i = 0; i < 25; i++) { //Loop 25 times | |
var newNumber = Math.round(Math.random() * 30); //New random number (0-30) | |
dataset = dataset.concat(newNumber); //Add new number to array | |
} | |
d3.select("body").selectAll("div") | |
.data(dataset) | |
.enter() | |
.append("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
@mixin box-shadow($top, $left, $blur, $color, $inset:"") { | |
-webkit-box-shadow:$top $left $blur $color #{$inset}; | |
-moz-box-shadow:$top $left $blur $color #{$inset}; | |
box-shadow:$top $left $blur $color #{$inset}; | |
} | |
@include box-shadow(inset 0, -12px, 0, rgba(0, 0, 0, 0.06)); |
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 border-radius($radius) { | |
-webkit-border-radius: $radius; | |
-moz-border-radius: $radius; | |
-ms-border-radius: $radius; | |
border-radius: $radius; | |
} | |
@include border-radius(3px 0 0 3px); |
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 transition($args...) { | |
-webkit-transition: $args; | |
-moz-transition: $args; | |
-ms-transition: $args; | |
transition: $args; | |
} | |
a { | |
color:$color; | |
@include transition(color .3s ease); |
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 opacity($opacity) { | |
opacity: $opacity; | |
$opacity-ie: $opacity * 100; | |
filter: alpha(opacity=$opacity-ie); //IE8 | |
} | |
.class { | |
@include opacity(0.6); | |
} |
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
HEX | |
$color: #3399cc | |
$color-alt: #99cc33 | |
RGB | |
$color: rgb(51, 153, 204) | |
RGBA | |
$color: rgba(51,1 53, 204,.5) |
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 box-sizing($box-model) { | |
-webkit-box-sizing: $box-model; | |
-moz-box-sizing: $box-model; | |
box-sizing: $box-model; | |
} | |
*, | |
*:after, | |
*:before { | |
@include box-sizing(border-box); |
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 clearfix() { | |
&:before, | |
&:after { | |
content: ""; | |
display: table; | |
} | |
&:after { | |
clear: both; | |
} | |
} |
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 displaydate(){ | |
return date('jS F Y'); | |
} | |
add_shortcode('date', 'displaydate'); |