Skip to content

Instantly share code, notes, and snippets.

@baudoin
baudoin / SassMeister-input-HTML.html
Created September 15, 2015 18:56
Generated by SassMeister.com.
<div></div>
@baudoin
baudoin / _ie8alphabg.scss
Created April 9, 2014 16:23
Mixin for alpha background colors for IE8
// ie8 bg alpha color
@mixin ie8alphabg($bgcolor) {
.lt-ie9 & {
background:transparent;
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#{$bgcolor}', endColorstr='#{$bgcolor}',GradientType=0);
}
}
// Example: Using this alpha HEX is equivelant to background: rgba(#000, .5);
// @include ie8alphabg('#80000000');

Keybase proof

I hereby claim:

  • I am baudoin on github.
  • I am baudoin (https://keybase.io/baudoin) on keybase.
  • I have a public key ASAitRlvQUdyLeCDBFxX6rkflZ5JvibfeItBFxTCw8YNOgo

To claim this, I am signing this object:

@baudoin
baudoin / SassMeister-input.scss
Created February 25, 2014 23:07
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.5)
// Compass (v1.0.0.alpha.18)
// Susy (v2.0.0.rc.1)
// ----
@import "susy";
// IE8 won't use the .last declarations because it's included with :last-child which it doesn't support.
.one-column,
@baudoin
baudoin / index.haml
Created June 7, 2013 22:26
A CodePen by Andy Baudoin. Set Event Variable with Modernizr - Use Modernizr.touch to detect touch enabled devices and set a variable as the correct tap/click event for jQuery. This automatically cuts the 300ms delay on touch devices using the "click" event.
%a{:href => "#"}
Selectable Item
%p.helper
@baudoin
baudoin / dabblet.css
Created April 20, 2012 19:04
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body { background: #c2c2c2; }
#pop {
box-shadow: 0px 9px 8px #a1a1a1;
border-radius: 5px;
background: #fff;
font: 300 2em/1 "Helvetica Neue", arial;