Skip to content

Instantly share code, notes, and snippets.

@stealthonion
stealthonion / carousel.js
Created June 23, 2013 07:15
JS: Wheel Carousel
@stealthonion
stealthonion / gist:5794072
Created June 17, 2013 01:02
HTML: Ontario provinces dropdown
<select>
<option value="AB">Alberta</option>
<option value="BC">British Columbia</option>
<option value="MB">Manitoba</option>
<option value="NB">New Brunswick</option>
<option value="NL">Newfoundland and Labrador</option>
<option value="NS">Nova Scotia</option>
<option value="ON">Ontario</option>
<option value="PE">Prince Edward Island</option>
<option value="QC">Quebec</option>
@stealthonion
stealthonion / _button.sass
Created June 17, 2013 00:25
SASS: Dynamic button mixin
@mixin button($padding: 5px 5px 5px 10px, $font-size: 1.1em, $width: auto, $bg-color-start: #479dcf, $bg-color-end: #2f6db7, $text-color: #FFF, $border-radius: 3px)
color: $text-color
background: $bg-color-start
$border-base: adjust-hue(darken($bg-color-start, 15%), 5%)
@include filter-gradient($bg-color-start, $bg-color-end, vertical) // IE6-8
// IE9 SVG, needs conditional override of 'filter' to 'none'
$experimental-support-for-svg: true
@include background-image(linear-gradient(top, $bg-color-start 0%,$bg-color-end 99%))
border-top: 1px solid $border-base
border-right: 1px solid adjust-hue(saturate(darken($border-base, 7%), 12%), 5%)