Skip to content

Instantly share code, notes, and snippets.

View nicooprat's full-sized avatar

Nico Prat nicooprat

View GitHub Profile
@nicooprat
nicooprat / responsive-iframes.css
Created February 21, 2013 13:38
Automatic responsive iframes with JS + CSS.
/* CSS code */
.responsive-iframe {
position: relative;
padding-bottom: 0; // Will be overriden by Javascript
height: 0;
overflow: hidden;
margin-bottom: 20px;
}
.responsive-iframe iframe {
@nicooprat
nicooprat / gist:4072992
Created November 14, 2012 16:06
My LESS mixins.
.transition( @trans: @transition ) {
transition: @trans;
-ms-transition: @trans;
-moz-transition: @trans;
-webkit-transition: @trans;
-o-transition: @trans;
}
.transitionDelay( @delay ) {
transition-delay: @delay;