Skip to content

Instantly share code, notes, and snippets.

@Gufran
Gufran / responsive-navigation.sublime-snippet
Created May 19, 2013 13:08
Unlimited level Responsive Navigation menu in LESS
<snippet>
<content><![CDATA[
${1:.main-menu-navigation} ul {
font-family: ${2:@heading-font};
margin-bottom: 0;
font-size: ${3:20px};
a {
&:hover {
color: ${4:@dark-color};
}
@Gufran
Gufran / trace.js
Created April 7, 2013 13:44
[jQuery] Trace path to a node
(function( $ ){
jQuery.fn.trace = function () {
if (this.length != 1)
return '';
var path, node = this;
while (node.length) {
var realNode = node[0], name = realNode.localName;
if (!name) break;
name = name.toLowerCase();