Hello world Gist coucou seb
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
# EditorConfig is awesome: http://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
indent_style = space | |
end_of_line = lf | |
charset = utf-8 |
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
# ############################################################################## | |
# # MIME TYPES AND ENCODING # | |
# ############################################################################## | |
# ------------------------------------------------------------------------------ | |
# | Proper MIME types for all files | | |
# ------------------------------------------------------------------------------ | |
<IfModule mod_mime.c> |
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
// This shows how to define a font including variants | |
$futura: | |
light Futura normal 300, | |
book Futura normal 400, | |
medium Futura normal 500, | |
heavy Futura normal 700; | |
// You can pick only a specific variant this way | |
$base-font: get-font-variant($futura, light); |
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(fn) { | |
window.console = window.console || {log: fn, warn: fn, info: fn}; | |
})(function() {}); |
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 ellipsis( | |
$height: 1em, | |
$width: 2.5em, | |
$line-height: 1em, | |
$padding-right: 5px | |
) { | |
&:before { | |
content: ''; | |
float: left; | |
width: 5px; |
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 placeholder { | |
&::-webkit-input-placeholder { @content; } | |
&::-moz-placeholder { @content; } | |
&:-ms-input-placeholder { @content; } | |
&:-moz-placeholder { @content; } | |
} |
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 | |
/** | |
* BEM | |
* experimental function to output BEM style class names from strings and/or arrays | |
* @param string|array $b block | |
* @param string|array $e element | |
* @param string|array $m modifier | |
* @return string class names | |
* | |
* eg: |
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
<a href="#" class="font-minus">minus</a> | |
<a href="#" class="font-reset">reset</a> | |
<a href="#" class="font-plus">plus</a> | |
<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 | |
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | |
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non | |
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> |
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
$('.link-to-tab').on('click', function(e) { | |
e.preventDefault(); | |
var $tab = $('.tabs a[href="' + $(this).attr('href') + '"]'); | |
if($tab.length) { | |
$tab.trigger('tab-click'); | |
$(document.body).scrollTo($tab.closest('.tabs-holder')); | |
} | |
}); |
NewerOlder