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
/// Animate in a border-bottom on hover or focus. | |
/// | |
/// @author chris barnes <chris@cjbarnes.co.uk> | |
/// @link http://www.cjbarnes.co.uk/blog/animating-link-borders-css-2016-07-10/ | |
/// | |
/// @param {String} $hover-color The color the link should change to on hover. | |
/// @param {Number} $duration How long the animation should take. | |
/// @output Color, border and transition styles. | |
@mixin cj-hover-border($hover-color: #639, $duration: 0.25s) { | |
border-bottom: 1px solid transparent; |
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 | |
/** | |
* Version of strtotime() that doesn't use American dates. | |
* | |
* `strtotime()` interprets a date with slashes as American - i.e. m/d/y. So we | |
* replace all slashes with dashes, to stop it from doing this. | |
* | |
* @author chris barnes <chris@cjbarnes.co.uk> | |
* @link http://www.cjbarnes.co.uk/blog/2016-07-10-using-strtotime-outside-us/ | |
* |