0.0
No commit activity in last 3 years
No release in over 3 years
a ruby gem for use in rails 3.2
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

 Project Readme

match_media_js

a ruby gem for use in rails 3.2

It's a hack-gem with css3 polyfills and javascript libraries to get a css3 responsive site behaving with IE8.

Gemfile

gem 'match_media_js'

application.js (this is all the libraries in the right order-- match media needs to be before enquire)

//= require match_media_js

Individual Libaraies

//= require match_media
//= require respond
//= require enquire

Individual Files

//= require match_media/matchMedia
//= require match_media/matchMedia.addListener

Background Size Polyfill (IE8)

Source is available at /assets/background_size/backgroundsize.src.htc and minified prefered as default

.selector {
    background-size: cover;
    /* absolute url */
    -ms-behavior: url(/assets/background_size/backgroundsize.htc);
}

License: MIT (http://www.opensource.org/licenses/mit-license.php)

Original repositories: github.com/paulirish/matchMedia.js github.com/scottjehl/Respond github.com/WickyNilliams/enquire.js/

github.com/louisremi/background-size-polyfill