Skip to content

Instantly share code, notes, and snippets.

View sajhd's full-sized avatar

Saj Hussain sajhd

  • Nottingham
View GitHub Profile
@sajhd
sajhd / colour-darken.scss
Last active August 29, 2015 14:27
Colour Darken Mixin
$orange: #e8b000;
$noir: #000;
a {
background: $orange;
&:hover {
//Lighten colour by 20%
background: lighten($orange, 20%);
//Darken colour by 20%
background: darken($orange, 20%);
@sajhd
sajhd / subnav-dropdown.js
Created August 14, 2015 10:45
Subnav / Dropdown script
// Dropdowns
var $runSubnavs = function($subnavName, $linkName){
$($subnavName).hover(function() {
$($linkName).toggleClass("hoverstate");
});
$($linkName).hover(function() {
$($subnavName).stop(true, true).slideToggle('medium');
});
$($subnavName).hover(function() {
@sajhd
sajhd / auto-gallery.php
Last active August 29, 2015 14:27
auto-gallery.php
@sajhd
sajhd / button.scss
Last active August 29, 2015 14:18
Button Mixin
/* set colour(s) */
$primary : red;
/* button */
@mixin button($color: $primary, $text-color: #fff, $radius: 3px) {
font-size: 1.6em;
font-weight: 700;
line-height: 50px;
position: relative;
display: block;