diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..9d5248e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +# editorconfig.org + +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false diff --git a/README.markdown b/README.markdown deleted file mode 100644 index cf6bf3d..0000000 --- a/README.markdown +++ /dev/null @@ -1,29 +0,0 @@ -Selectivizr ------------ - -**CSS3 selectors for IE 6-8** - - -_selectivizr_ is a JavaScript utility that emulates CSS3 pseudo-classes -and attribute selectors in Internet Explorer 6-8. Simply include the -script in your pages and selectivizr will do the rest. - -To use the library, you'll need to include one of the supported libraries: - - * jQuery (1.3+) - * Dojo (1.5.0+) - * Prototype (1.6.1+) - * Yahoo UI Library (2.8.0+) - * DOMAssistant (2.8.0+) - * MooTools (1.3+) - * NWMatcher (1.2.3+) - -Then add the following conditional comment _AFTER_ your stylesheets: - - - -This adds the `selectivizr.js` and an optional fallback CSS file to IE6-8 while -hiding for other browsers. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..c2fcfd7 --- /dev/null +++ b/README.md @@ -0,0 +1,81 @@ +
+ :sparkles: Now with maintenance! :sparkles: +
+ +### What happened to the old project? +[Keith Clark](https://github.com/keithclark) was eaten alive by sabre-tooth rattlesnakes or something. Who knows? + +Good on him for originally inventing this though. :beers: + +### Why support old IE? +Why completely turn your back on it? I'm not saying give it special attention (unless you're making a website for [the most populated country in the world](https://www.techinasia.com/windows-xp-now-dead-but-200-million-machines-in-china-still-using-it)), but why not toss some polyfills in conditional comments and at least give the poor bastards who are stuck on IE6-IE8 *something* to look at. + +It requires almost 0 effort on your part and can make your website viewable to a lot of people. + +### What is Selectivizr? +Selectivizr is a [polyfill](https://en.wikipedia.org/wiki/Polyfill) that makes IE6-8 work with most [CSS3 selectors](https://www.w3.org/TR/selectors/#selectors) (like `:nth-child`). + +### Installation +- `bower install --save selectivizr2` + +### Usage +To use the library, you'll need to include the [latest jQuery 1.x.x](https://jquery.com/download/). + +Then add the following conditional comment **after** your stylesheets and jQuery: + +```html + +``` + +### Example + +```html + + + +@import url("...") | +Testing @import rule with url wrapped in double quotes and prefixed with the url() qualifier + |
@import url('...') | +Testing @import rule with url wrapped in single quotes and prefixed with the url() qualifier + |
@import url(...) | +Testing @import rule with url without quotes and prefixed with the url() qualifier + |
@import "..." | +Testing @import rule with url wrapped in double quotes without the url() qualifier + |
@import '...' | +Testing @import rule with url wrapped in single quotes without the url() qualifier + |
@import url("../file.css") | +Testing @import rule with a relative path + |
@import url("/path/file.css") | +Testing @import rule with a root-relative path (see note in 'master.css') + |
@import url("http://domain/path/file.css") | +Testing @import rule with a fully qualified path (see note in 'master.css') + |
@import url("//domain/path/file.css") | +Testing @import rule with a protocol relative path + |
@import url("...") print | +Testing @import rule with a print media type + |
@import url("...") screen | +Testing @import rule with a screen media type + |