<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[22201] trunk/wp-content/themes/twentytwelve: Twenty Twelve: implement better support for IE7 and IE8 (don't use mobile menu).</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/22201">22201</a></dd>
<dt>Author</dt> <dd>lancewillett</dd>
<dt>Date</dt> <dd>2012-10-11 22:07:06 +0000 (Thu, 11 Oct 2012)</dd>
</dl>

<h3>Log Message</h3>
<pre>Twenty Twelve: implement better support for IE7 and IE8 (don't use mobile menu). See <a href="http://core.trac.wordpress.org/ticket/22044">#22044</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpcontentthemestwentytwelvefunctionsphp">trunk/wp-content/themes/twentytwelve/functions.php</a></li>
<li><a href="#trunkwpcontentthemestwentytwelveheaderphp">trunk/wp-content/themes/twentytwelve/header.php</a></li>
<li><a href="#trunkwpcontentthemestwentytwelvestylecss">trunk/wp-content/themes/twentytwelve/style.css</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/wp-content/themes/twentytwelve/css/</li>
<li><a href="#trunkwpcontentthemestwentytwelvecssiecss">trunk/wp-content/themes/twentytwelve/css/ie.css</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpcontentthemestwentytwelvecssiecss"></a>
<div class="addfile"><h4>Added: trunk/wp-content/themes/twentytwelve/css/ie.css (0 => 22201)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentytwelve/css/ie.css                                (rev 0)
+++ trunk/wp-content/themes/twentytwelve/css/ie.css        2012-10-11 22:07:06 UTC (rev 22201)
</span><span class="lines">@@ -0,0 +1,187 @@
</span><ins>+/*
+Styles for older IE versions (previous to IE9).
+*/
+
+body {
+        background-color: #e6e6e6;
+}
+body.custom-background-empty {
+        background-color: #fff;
+}
+body.custom-background-empty .site,
+body.custom-background-white .site {
+        box-shadow: none;
+        margin-bottom: 0;
+        margin-top: 0;
+        padding: 0;
+}
+.assistive-text,
+.site .screen-reader-text {
+        clip: rect(1px 1px 1px 1px); /* IE7 */
+}
+.full-width .site-content {
+        float: none;
+        width: 100%;
+}
+img.size-full,
+img.size-large,
+img.header-image,
+img.wp-post-image {
+        width: auto; /* Prevent stretching of full-size and large-size images with height and width attributes in IE8 */
+}
+.author-avatar {
+        float: left;
+        margin-top: 8px;
+        margin-top: 0.571428571rem;
+}
+.author-description {
+        float: right;
+        width: 80%;
+}
+.site {
+        box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
+        margin: 48px auto;
+        max-width: 960px;
+        overflow: hidden;
+        padding: 0 40px;
+}
+.site-content {
+        float: left;
+        width: 65.104166667%;
+}
+body.template-front-page .site-content,
+body.single-attachment .site-content,
+body.full-width .site-content {
+        width: 100%;
+}
+.widget-area {
+        float: right;
+        width: 26.041666667%;
+}
+.site-header h1,
+.site-header h2 {
+        text-align: left;
+}
+.site-header h1 {
+        font-size: 26px;
+        line-height: 1.846153846;
+}
+.main-navigation ul.nav-menu,
+.main-navigation div.nav-menu &gt; ul {
+        border-bottom: 1px solid #ededed;
+        border-top: 1px solid #ededed;
+        display: inline-block !important;
+        text-align: left;
+        width: 100%;
+}
+.main-navigation ul {
+        margin: 0;
+        text-indent: 0;
+}
+.main-navigation li a,
+.main-navigation li {
+        display: inline-block;
+        text-decoration: none;
+}
+.ie7 .main-navigation li a,
+.ie7 .main-navigation li {
+        display: inline;
+}
+.main-navigation li a {
+        border-bottom: 0;
+        color: #6a6a6a;
+        line-height: 3.692307692;
+        text-transform: uppercase;
+}
+.main-navigation li a:hover {
+        color: #000;
+}
+.main-navigation li {
+        margin: 0 40px 0 0;
+        position: relative;
+}
+.main-navigation li ul {
+        display: none;
+        margin: 0;
+        padding: 0;
+        position: absolute;
+        top: 100%;
+        z-index: 1;
+}
+.ie7 .main-navigation li ul {
+        left: 0;
+}
+.main-navigation li ul ul,
+.ie7 .main-navigation li ul ul {
+        top: 0;
+        left: 100%;
+}
+.main-navigation ul li:hover &gt; ul {
+        border-left: 0;
+        display: block;
+}
+.main-navigation li ul li a {
+        background: #efefef;
+        border-bottom: 1px solid #ededed;
+        display: block;
+        font-size: 11px;
+        line-height: 2.181818182;
+        padding: 8px 10px;
+        width: 180px;
+}
+.main-navigation li ul li a:hover {
+        background: #e3e3e3;
+        color: #444;
+}
+.main-navigation .current-menu-item &gt; a,
+.main-navigation .current-menu-ancestor &gt; a,
+.main-navigation .current_page_item &gt; a,
+.main-navigation .current_page_ancestor &gt; a {
+        color: #636363;
+        font-weight: bold;
+}
+.menu-toggle {
+        display: none;
+}
+.entry-header .entry-title {
+        font-size: 22px;
+}
+#respond form input[type=&quot;text&quot;] {
+        width: 46.333333333%;
+}
+#respond form textarea.blog-textarea {
+        width: 79.666666667%;
+}
+.template-front-page .site-content,
+.template-front-page article {
+        overflow: hidden;
+}
+.template-front-page.has-post-thumbnail article {
+        float: left;
+        width: 47.916666667%;
+}
+.entry-page-image {
+        float: right;
+        margin-bottom: 0;
+        width: 47.916666667%;
+}
+.template-front-page .widget-area .widget,
+.template-front-page.two-sidebars .widget-area .front-widgets {
+        float: left;
+        margin-bottom: 24px;
+        width: 51.875%;
+}
+.template-front-page .widget-area .widget:nth-child(odd) {
+        clear: right;
+}
+.template-front-page .widget-area .widget:nth-child(even),
+.template-front-page.two-sidebars .widget-area .front-widgets + .front-widgets {
+        float: right;
+        margin: 0 0 24px;
+        width: 39.0625%;
+}
+.template-front-page.two-sidebars .widget,
+.template-front-page.two-sidebars .widget:nth-child(even) {
+        float: none;
+        width: auto;
+}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytwelvefunctionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentytwelve/functions.php (22200 => 22201)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentytwelve/functions.php        2012-10-11 21:37:44 UTC (rev 22200)
+++ trunk/wp-content/themes/twentytwelve/functions.php        2012-10-11 22:07:06 UTC (rev 22201)
</span><span class="lines">@@ -88,6 +88,8 @@
</span><span class="cx">  * @since Twenty Twelve 1.0
</span><span class="cx">  */
</span><span class="cx"> function twentytwelve_scripts_styles() {
</span><ins>+        global $wp_styles;
+
</ins><span class="cx">         /*
</span><span class="cx">          * Adds JavaScript to pages with the comment form to support
</span><span class="cx">          * sites with threaded comments (when in use).
</span><span class="lines">@@ -141,6 +143,12 @@
</span><span class="cx">          * Loads our main stylesheet.
</span><span class="cx">          */
</span><span class="cx">         wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() );
</span><ins>+
+        /*
+         * Loads the Internet Explorer specific stylesheet.
+         */
+        wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20121010' );
+        $wp_styles-&gt;add_data( 'twentytwelve-ie', 'conditional', 'lt IE 9' );
</ins><span class="cx"> }
</span><span class="cx"> add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' );
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytwelveheaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentytwelve/header.php (22200 => 22201)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentytwelve/header.php        2012-10-11 21:37:44 UTC (rev 22200)
+++ trunk/wp-content/themes/twentytwelve/header.php        2012-10-11 22:07:06 UTC (rev 22201)
</span><span class="lines">@@ -9,9 +9,12 @@
</span><span class="cx">  * @since Twenty Twelve 1.0
</span><span class="cx">  */
</span><span class="cx"> ?&gt;&lt;!DOCTYPE html&gt;
</span><del>-&lt;!--[if IE 7 | IE 8]&gt;
-&lt;html class=&quot;ie&quot; &lt;?php language_attributes(); ?&gt;&gt;
</del><ins>+&lt;!--[if IE 7]&gt;
+&lt;html class=&quot;ie ie7&quot; &lt;?php language_attributes(); ?&gt;&gt;
</ins><span class="cx"> &lt;![endif]--&gt;
</span><ins>+&lt;!--[if IE 8]&gt;
+&lt;html class=&quot;ie ie8&quot; &lt;?php language_attributes(); ?&gt;&gt;
+&lt;![endif]--&gt;
</ins><span class="cx"> &lt;!--[if !(IE 7) | !(IE 8)  ]&gt;&lt;!--&gt;
</span><span class="cx"> &lt;html &lt;?php language_attributes(); ?&gt;&gt;
</span><span class="cx"> &lt;!--&lt;![endif]--&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemestwentytwelvestylecss"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/twentytwelve/style.css (22200 => 22201)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/twentytwelve/style.css        2012-10-11 21:37:44 UTC (rev 22200)
+++ trunk/wp-content/themes/twentytwelve/style.css        2012-10-11 22:07:06 UTC (rev 22201)
</span><span class="lines">@@ -482,7 +482,6 @@
</span><span class="cx">         z-index: 100000; /* Above WP toolbar */
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-
</del><span class="cx"> /* Page structure */
</span><span class="cx"> .site {
</span><span class="cx">         padding: 0 24px;
</span><span class="lines">@@ -1658,34 +1657,4 @@
</span><span class="cx">                 margin-left: 50px;
</span><span class="cx">                 margin-left: 3.57142857rem;
</span><span class="cx">         }
</span><del>-}
-
-
-/* =IE 7 and 8
------------------------------------------------ */
-
-.ie .assistive-text {
-        clip: rect(1px 1px 1px 1px); /* IE7 */
-}
-.ie .site {
-        margin: 48px auto;
-        max-width: 960px;
-}
-.ie .site-content {
-        float: left;
-        width: 65.104166667%;
-}
-.ie .full-width .site-content {
-        float: none;
-        width: 100%;
-}
-.ie .widget-area {
-        float: right;
-        width: 26.041666667%;
-}
-.ie img.size-full,
-.ie img.size-large,
-.ie img.header-image,
-.ie img.wp-post-image {
-        width: auto; /* Prevent stretching of full-size and large-size images with height and width attributes in IE8 */
</del><span class="cx"> }
</span><span class="cx">\ No newline at end of file
</span></span></pre>
</div>
</div>

</body>
</html>