From d62220673de23659af9e329987457094eb150dfc Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Mon, 19 Nov 2012 21:41:04 +0000 Subject: [PATCH] Twenty Twelve: add RTL overrides for IE7 and IE8, props DrewAPicture. Closes #22044. git-svn-id: http://core.svn.wordpress.org/trunk@22688 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwelve/css/ie.css | 53 +++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/wp-content/themes/twentytwelve/css/ie.css b/wp-content/themes/twentytwelve/css/ie.css index facd06923a..02ab3713e1 100644 --- a/wp-content/themes/twentytwelve/css/ie.css +++ b/wp-content/themes/twentytwelve/css/ie.css @@ -184,4 +184,57 @@ body.full-width .site-content { .template-front-page.two-sidebars .widget:nth-child(even) { float: none; width: auto; +} + +/* =RTL overrides for IE7 and IE8 +-------------------------------------------------------------- */ +.rtl .site-header h1, +.rtl .site-header h2 { + text-align: right; +} +.rtl .widget-area, +.rtl .author-description { + float: left; +} +.rtl .author-avatar, +.rtl .site-content { + float: right; +} +.rtl .main-navigation ul.nav-menu, +.rtl .main-navigation div.nav-menu > ul { + text-align: right; +} +.rtl .main-navigation ul li ul li, +.rtl .main-navigation ul li ul li ul li { + margin-left: 40px; + margin-right: auto; +} +.rtl .main-navigation li ul ul { + position: absolute; + bottom: 0; + right: 100%; + z-index: 1; +} +.ie7 .rtl .main-navigation li ul ul { + position: absolute; + bottom: 0; + right: 100%; + z-index: 1; +} +.ie7 .rtl .main-navigation ul li { + z-index: 99; +} +.ie7 .rtl .main-navigation li ul { + position: absolute; + bottom: 100%; + right: 0; + z-index: 1; +} +.ie7 .rtl .main-navigation li { + margin-right: auto; + margin-left: 40px; +} +.ie7 .rtl .main-navigation li ul ul ul { + position: relative; + z-index: 1; } \ No newline at end of file