compass/doc-src/content/reference/blueprint/ie.haml

38 lines
1.0 KiB
Plaintext
Raw Normal View History

2010-01-28 08:07:44 +00:00
---
2010-03-16 23:43:36 +00:00
title: Blueprint IE Compatibility
crumb: Internet Explorer
2010-01-28 08:07:44 +00:00
framework: blueprint
2010-04-12 09:46:33 +00:00
stylesheet: blueprint/_ie.scss
2010-04-21 06:33:48 +00:00
layout: blueprint
2010-01-28 08:07:44 +00:00
classnames:
- reference
2010-04-21 16:03:13 +00:00
- blueprint
2010-01-28 08:07:44 +00:00
---
- render 'reference' do
2010-03-16 23:43:36 +00:00
:markdown
This module should be imported into a stylesheet that will
only be served to legacy versions of Internet Explorer. If
you've used the blueprint project generator, this will be
done for you. In a standard blueprint project you'll need
the following:
<pre class="source-code sass">
@import blueprint/ie
+blueprint-ie
</pre>
Or if you prefer to use blueprint on only some pages you can
nest these styles. E.g.
<pre class="source-code sass">
@import blueprint/ie
body.blueprint
+blueprint-ie(true)
</pre>
The stylesheet should then be linked like so:
<pre class="source-code html">&lt;!--[if lt IE 8]&gt;&lt;link rel="stylesheet" href="/stylesheets/ie.css"
type="text/css" media="screen, projection"&gt;&lt;![endif]--&gt;
2010-03-16 23:43:36 +00:00
</pre>