witten
/
luminotes
Archived
1
0
Fork 0

Splitting off IE 6 and 7 CSS into separate, conditionally included files.

This commit is contained in:
Dan Helfman 2007-09-27 06:16:53 +00:00
parent 1ded442791
commit 5cf7dd3b14
3 changed files with 5 additions and 1 deletions

3
static/css/ie7.css Normal file
View File

@ -0,0 +1,3 @@
#toolbar {
margin-left: -6em;
}

View File

@ -28,7 +28,8 @@ class Page( Html ):
Meta( content = u"text/html; charset=UTF-8", http_equiv = u"content-type" ),
[ child for child in children if type( child ) in head_types ],
Title( title and u"%s: %s" % ( app_name, title ) or app_name ),
"""<!--[if IE]><link href="/static/css/ie.css" type="text/css" rel="stylesheet"></link><![endif]-->""",
"""<!--[if IE 6]><link href="/static/css/ie6.css" type="text/css" rel="stylesheet"></link><![endif]-->""",
"""<!--[if IE 7]><link href="/static/css/ie7.css" type="text/css" rel="stylesheet"></link><![endif]-->""",
),
Body(
Div(