Skip to content

Instantly share code, notes, and snippets.

View MathRivest's full-sized avatar

Mathieu Rivest MathRivest

  • Turo
  • Montreal, QC, Canada
  • 22:11 (UTC -04:00)
View GitHub Profile
@MathRivest
MathRivest / fullscreen-animation.scss
Created September 6, 2013 01:05
Fullscreen background image scale animation
.fullscreenBgContainer{
z-index: 1;
position: absolute;
bottom: 0;
left: 0;
right: 0;
top: 0;
background: {
repeat: no-repeat;
position: center center;
@MathRivest
MathRivest / custom-checkboxes.scss
Last active November 1, 2019 08:25
Custom SCSS radio/checkbox. No javascript. IE9+ TODO: Disabled states, Hover, focus etc, Fallback to real input for <IE9
/*
* Hide only visually, but have it available for screenreaders: h5bp.com/v
*/
.visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
@MathRivest
MathRivest / susy-grid.scss
Last active December 14, 2015 22:49
Susy grid markup
/* =======================================================================
Grid System
========================================================================== */
.grid-container{
@include container;
}
@for $i from 1 through 12 {
.grid-col-#{$i} { @include span-columns($i); }