Skip to content

Instantly share code, notes, and snippets.

View TylerK's full-sized avatar
👉
Pushing rectangles around the screen

Tyler Kelley TylerK

👉
Pushing rectangles around the screen
View GitHub Profile
var gulp = require('gulp')
, plumber = require('gulp-plumber')
, notify = require('gulp-notify')
, stylus = require('gulp-stylus')
, sync = require('browser-sync')
gulp.task('stylus', function() {
return gulp.src('build/stylus/site.styl')
.pipe(plumber({
errorHandler: notify.onError({
//
// Mixin for inline responsive design
//
$smallScreen : 768px;
$mediumScreen : 992px;
$largeScreen : 1200px;
@function smallerThan($breakPoint) {
@return "screen and (min-width:" + $breakPoint + ")";
@TylerK
TylerK / for-browser.sass
Created March 27, 2014 18:01
A quick SASS mixin for putting your IE specific hacks in-line with your other styles.
//
// Note: For this to work you will need conditional classes on your html element. For more information:
// http://www.paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
//
//
// Mixin
//
@mixin for-browser($browser) {
.footer-nav {
@include column(24);
@include for-screen($normal-page-width) {
&, .ie8 & {
@include column(20);
}
}
}