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
/** | |
* Define CONST values in ENV file | |
*/ | |
function mailtrap($phpmailer) { | |
$phpmailer->isSMTP(); | |
$phpmailer->Host = 'smtp.mailtrap.io'; | |
$phpmailer->SMTPAuth = true; | |
$phpmailer->Port = 2525; |
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
/* | |
* =========================================================================== | |
* | |
* Polarize | |
* | |
* =========================================================================== | |
* | |
* Calculates the perceived brightness by measuring weighted distance | |
* in 3D RGB space | |
* |
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
/* | |
* =========================================================================== | |
* | |
* Polarize | |
* | |
* =========================================================================== | |
* | |
* Calculates the perceived brightness by measuring weighted distance | |
* in 3D RGB space | |
* |
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
/** | |
* Basil by @fiinixdesign | |
* | |
* Super minimal and hardware accelerated waypoint library | |
* | |
* @waypoints, @jquery, @basil, @plugin | |
* | |
* TODO: Clean up and simplify where possible. Make delay options into | |
* fractions based of duration settings. | |
*/ |
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
/* Column placeholder */ | |
%column { | |
display: inline-block; | |
vertical-align: top; | |
} | |
$column-count: 12; |
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
/* Random colour using the HSLa color model */ | |
@function rColor() { | |
$return: hsla(random(365), 90, 50, 0.2); | |
@return $return; | |
} |
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() { | |
// Traverse DOM and create variables | |
var html = $('html'), | |
viewport = $(window), | |
viewportWidth = viewport.width(), | |
header = $('.js-header'), | |
panelBG = $('.js-panel-bg'), | |
panelBox = $('.js-panel'), |
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
/* | |
* =========================================================================== | |
* | |
* Maps | |
* | |
* =========================================================================== | |
* | |
*/ | |
.map { |
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
// Put in <head> | |
if ( 'querySelector' in document && 'addEventListener' in window ) { | |
document.documentElement.className += 'js'; | |
} | |
// Does it dijon? | |
if ( 'querySelector' in document && 'addEventListener' in window && 'classList' in document.createElement('_') ) { | |
//Map $ to querySelector | |
function $(target){ |
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
// ---- | |
// Sass (v3.3.12) | |
// Compass (v1.0.0.alpha.21) | |
// ---- | |
// Silent placeholder, doesn't behave as expected, or I'm being daft. | |
%animated-shake { | |
@at-root { | |
@keyframes shake { | |
0%, 100% { |
NewerOlder