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
// ================================================================================ | |
// | |
// Clear text on input box on click. Restore if no value entered. | |
// | |
// On focus | |
$('.js-clear').on('focus', function() { | |
if (this.value === this.getAttribute('value')) { | |
this.value = ""; | |
} |
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
$(window).scroll(function() { | |
var window_height = $(window).height(); | |
if ( $(window).scrollTop() > window_height ) { | |
$('.to-top').addClass('show'); | |
} else { | |
$('.to-top').removeClass('show'); | |
} | |
}); |
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
// Adds class 'l-end-col' to matched elements. | |
function nthFallback(ele, nth) { | |
if ($('html').hasClass('lte8')) { | |
$(ele + ':nth-of-type(' + nth + ')').addClass('l-end-col'); | |
} | |
} | |
// To run - e.g. select every 4th <li> | |
nthFallback('ul li','4n+4'); |
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
.dropdown { | |
border: 1px solid black; | |
border-radius: 3px; | |
overflow: hidden; | |
background: white url("img/icon-arrow.png") no-repeat right 50%; | |
} | |
.dropdown select { | |
padding: 6px 12px; | |
border: none; |
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
background-size(arguments) | |
-webkit-background-size arguments | |
-moz-background-size arguments | |
-o-background-size arguments | |
background-size arguments | |
if arguments[0] == cover | |
-ms-behavior url('/assets/polyfill/backgroundsize.min.htc') //- https://github.com/louisremi/background-size-polyfill |
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
div(style="clear:both") | |
h1 Lorem ipsum dolor sit amet [h1] | |
p Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo [p] | |
div(style="clear:both") | |
h2 Lorem ipsum dolor sit amet [h2] | |
p Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo [p] | |
div(style="clear:both") | |
h3 Lorem ipsum dolor sit amet [h3] |
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
span.text Prev | |
span.hidden-xs ious article | |
span.text Next | |
span.hidden-xs article |
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
/* ========================================================================== | |
Mixins | |
========================================================================== */ | |
transition(arguments) | |
-webkit-transition arguments | |
-moz-transition arguments | |
-o-transition arguments | |
transition arguments |
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
li | |
a.js-share(href="http://twitter.com/share?text=" + meta.description, target="_blank", data-window-width="650", data-window-height="360") | |
.icon.icon-twitter | |
li | |
a.js-share(href="http://www.facebook.com/sharer.php", target="_blank", data-window-width="900", data-window-height="500") | |
.icon.icon-facebook |
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
mixin line(opts) | |
- var opts = opts || {}; | |
tr | |
td.gutter(width=gutterWidth) | |
td.grey(height="1", colspan=opts.colspan || "1") | |
td.gutter(width=gutterWidth) |
OlderNewer