Skip to content

Instantly share code, notes, and snippets.

View stephenway's full-sized avatar

Stephen Way stephenway

View GitHub Profile
@stephenway
stephenway / portal.sass
Created April 6, 2012 15:44
Evolution of a portal sass
@import "compass/css3"
html, #Top, #Footer
:background-color #4C5358 !important
ol
:list-style-type decimal !important
#Top
+linear-gradient(color-stops(#79868E, #4C5358))
@stephenway
stephenway / gist:2352117
Created April 10, 2012 15:25
Install Internet Explorer on a Mac
Download & Install VirtualBox
http://www.virtualbox.org/wiki/Downloads
Decide which versions of Internet Explorer you want to download and install from Terminal
Install ALL versions of Internet Explorer: IE7, IE 8, and IE 9
curl -s https://raw.github.com/xdissent/ievms/master/ievms.sh | bash
Install Internet Explorer 7 Only
curl -s https://raw.github.com/xdissent/ievms/master/ievms.sh | IEVMS_VERSIONS="7" bash
@stephenway
stephenway / gist:2363595
Created April 11, 2012 23:59
Default Theme Variables
// Colors
$default-title-color: #a2ce54 !default;
$default-header-color: #444444 !default;
$default-subheader-color: #666666 !default;
$default-text-color: #555555 !default;
$default-alt-text-color: #777777 !default;
$default-subdued-text-color: #999999 !default;
$default-link-color: #318ab9 !default;
$default-link-hover-color: #3c9ccf !default;
@stephenway
stephenway / portal2.scss
Created April 13, 2012 20:00
Foundry Boilerplate
@import "compass",
"blueprint",
"particle",
"particle/layout";
$default-asset-path: "/portals/_assets" !default;
// Colors
$default-primary-color: #860108 !default;
$default-secondary-color: #ECECEC !default;
@stephenway
stephenway / member.html
Created April 18, 2012 20:26
HTML Member Object
<div class="member member-small">
<img class="MPortrait" src="" alt="" />
<span class="MName">
</span>
<span class="MDetails">
<span class="MDEmail">
<a class="btn" href="mailto:">Email</a>
</span>
<span class="MDPhone">
@stephenway
stephenway / height-fix.css
Created April 24, 2012 18:28
Fix Container Height with Collapsing Floats
.container-with-floats-height-fix {
height: 1%;
overflow: hidden;
}
@stephenway
stephenway / labels.scss
Created July 9, 2012 19:01 — forked from orderedlist/labels.scss
Simple Label Colors with SCSS
$start-color:#2B73A2;
$number: 12;
@for $i from 1 through $number {
.label-#{$i} {
color:adjust_hue($start-color, ($i - 1) * (360 / $number));
}
}
@stephenway
stephenway / script.js
Created August 15, 2012 02:45
Javascript IFRAME Block
if (window.top !== window.self) window.top.location = window.self.location.href
@stephenway
stephenway / s.css
Created September 7, 2012 23:01
Progress Bar
/* Credit & Preview: http://playground.deaxon.com/css/progress-bar/ */
@-webkit-keyframes m {
0% {background-position:20px 0} 100% {}
}
@-moz-keyframes m {
0% {background-position:20px 0} 100% {background-position:0 0}
}
body {
background:rgb(235,235,240);
@stephenway
stephenway / README.md
Created October 8, 2012 23:33
SASS Variable Image-Gradient

SASS Variable Image-Gradient

Summary

I try to make my themes as customizable by variables as possible. In this gist we setup default variables, then some helper variables and inject pieces of the background mixin based on what has been set in our default variables.