Skip to content

Instantly share code, notes, and snippets.

View Dattaya's full-sized avatar

Yaroslav Kiliba Dattaya

View GitHub Profile
@Dattaya
Dattaya / _grid.scss
Last active March 18, 2016 08:08 — forked from Jakobud/bootstrap-ms.scss
Adds in the missing 480px-767px breakpoint range to Bootstrap 3 for SASS
// Bootstrap Mid-Small - col-ms-* - the missing grid set for Bootstrap3.
//
// This is a hack to fill the gap between 480 and 767 pixels - a missing range
// in the bootstrap responsive grid structure. Use these classes to style pages
// on cellphones when they transition from portrait to landscape.
//
// Contains:
// Columns, Offsets, Pushes, Pulls for the Mid-Small layout
// Visibility classes for the Mid-Small layout
// Redefined visibility classes for the Extra Small layout
@Dattaya
Dattaya / gist:1689855
Created January 27, 2012 17:14 — forked from padolsey/gist:527683
Using jQuery I should have found out if a browser is IE 6-8. Took a great idea from @padolsey.
var ie678 = !!$("<i><!--[if lte IE 8]><i></i><![endif]--></i>").appendTo("body").children()[0];