Skip to content

Instantly share code, notes, and snippets.

@ZeeDev
ZeeDev / Accordion.js
Last active December 15, 2015 20:40
Accordion.js
// Simple accordion implementation
$('.accordion-title').on('click', function(e) {
e.preventDefault();
$(this).closest('.accordion').toggleExpanded();
});
@ZeeDev
ZeeDev / grid-implementation.scss
Created April 11, 2013 10:14
Grid implementation
@include create-grid($columns: 6, $grid-name: layout-3-col);
.layout-container {
@extend %tablet-layout-row;
}
.layout-sidebar {
@extend %tablet-layout-col-2;
}
.layout-content {
@extend %tablet-layout-col-4;
}
@ZeeDev
ZeeDev / link-to-tab.js
Created April 11, 2013 22:13
link-to-tab.js (dirty)
@ZeeDev
ZeeDev / example.html
Last active December 16, 2015 03:49
jquery.zee.fontsize.js
<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>
@ZeeDev
ZeeDev / BEM.php
Last active December 17, 2015 08:59
BEM.php
<?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:
@ZeeDev
ZeeDev / placeholder.scss
Created May 17, 2013 09:59
placeholder.scss
@mixin placeholder {
&::-webkit-input-placeholder { @content; }
&::-moz-placeholder { @content; }
&:-ms-input-placeholder { @content; }
&:-moz-placeholder { @content; }
}
@ZeeDev
ZeeDev / ellipsis.scss
Created May 24, 2013 08:59
ellipsis.scss
@mixin ellipsis(
$height: 1em,
$width: 2.5em,
$line-height: 1em,
$padding-right: 5px
) {
&:before {
content: '';
float: left;
width: 5px;
@ZeeDev
ZeeDev / console.js
Created May 28, 2013 20:11
console.js
(function(fn) {
window.console = window.console || {log: fn, warn: fn, info: fn};
})(function() {});
@ZeeDev
ZeeDev / hello.md
Created July 10, 2013 07:50
Test de seb C.

Hello world Gist coucou seb

@ZeeDev
ZeeDev / fonts.scss
Last active December 19, 2015 19:09
fonts.scss
// 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);