### Eclipse Workspace Patch 1.0
#P drupal 7
Index: modules/overlay/overlay.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/overlay/overlay.module,v
retrieving revision 1.28
diff -u -r1.28 overlay.module
--- modules/overlay/overlay.module	31 Jul 2010 12:54:59 -0000	1.28
+++ modules/overlay/overlay.module	6 Aug 2010 21:24:29 -0000
@@ -335,8 +335,6 @@
 function template_preprocess_overlay(&$variables) {
   $variables['tabs']              = menu_primary_local_tasks();
   $variables['title']             = drupal_get_title();
-
-  $variables['content_attributes_array']['class'][] = 'clearfix';
 }
 
 /**
Index: modules/overlay/overlay-child.css
===================================================================
RCS file: /cvs/drupal/drupal/modules/overlay/overlay-child.css,v
retrieving revision 1.6
diff -u -r1.6 overlay-child.css
--- modules/overlay/overlay-child.css	28 Jul 2010 01:26:00 -0000	1.6
+++ modules/overlay/overlay-child.css	6 Aug 2010 21:24:29 -0000
@@ -9,6 +9,10 @@
   padding: 20px 0;
 }
 
+.overlay #skip-link {
+  margin-top: -20px;
+}
+
 #overlay {
   display: table;
   margin: 0 auto;
@@ -20,11 +24,16 @@
   width: 88%;
 }
 #overlay-titlebar {
-  padding: 0 20px;
+  display: table;
   position: relative;
-  white-space: nowrap;
+  table-layout: auto;
+  width: 100%;
   z-index: 100;
 }
+#overlay-titlebar > * {
+  display: table-cell;
+  vertical-align: bottom;
+}
 #overlay-content {
   background: #fff;
   clear: both;
@@ -34,59 +43,36 @@
 }
 
 #overlay-title-wrapper {
-  overflow: hidden;
+  padding: 5px 20px;
+  max-width: 700px;
 }
 #overlay-title {
   color: #fff;
-  float: left;
+  display: inline;
   font-size: 20px;
-  margin: 0;
-  padding: 0.3em 0;
-}
-#overlay-title:active,
-#overlay-title:focus {
-  outline: 0;
-}
-
-#overlay-close-wrapper {
-  position: absolute;
-  right: 0;
-}
-#overlay-close,
-#overlay-close:hover {
-  background: transparent url(images/close.png) no-repeat;
-  -moz-border-radius-topleft: 0;
-  -webkit-border-top-left-radius: 0;
-  border-top-left-radius: 0;
-  display: block;
-  height: 26px;
-  margin: 0;
-  padding: 0;
-  /* Replace with position:fixed to get a scrolling close button. */
-  position: absolute;
-  width: 26px;
-}
-#overlay-title:active,
-#overlay-close:hover,
-#overlay-close:focus {
-  padding: 0;
+  word-wrap: break-word;
 }
 
 /**
  * Tabs on the overlay.
  */
+#overlay-tabs-wrapper {
+  width: 0;
+  padding-right: 20px;
+  text-align: right;
+}
 #overlay-tabs {
+  display: table;
   line-height: 27px;
   margin: -28px 0 0 0;
-  position: absolute;
-  right: 20px;
   text-transform: uppercase;
 }
 #overlay-tabs li {
-  display: inline;
+  display: table-cell;
   list-style: none;
-  margin: 0 0 0 -3px;
-  padding: 0;
+  margin: 0;
+  padding: 0 0 0 1px;
+  white-space: nowrap;
 }
 #overlay-tabs li a,
 #overlay-tabs li a:active,
@@ -101,7 +87,7 @@
   display: inline-block;
   font-size: 11px;
   font-weight: bold;
-  margin: 0 0 2px 0;
+  margin: 0;
   outline: 0;
   padding: 0 14px;
   text-decoration: none;
@@ -111,8 +97,7 @@
 #overlay-tabs li.active a:active,
 #overlay-tabs li.active a:visited {
   background-color: #fff;
-  margin: 0;
-  padding-bottom: 2px;
+  padding-bottom: 1px;
 }
 #overlay-tabs li a:focus,
 #overlay-tabs li a:hover {
@@ -124,15 +109,116 @@
 }
 
 /**
- * Add to shortcuts link
+ * Close button.
+ */
+#overlay-close,
+#overlay-close:hover {
+  background: transparent url(images/close.png) no-repeat;
+  -moz-border-radius-topleft: 0;
+  -webkit-border-top-left-radius: 0;
+  border-top-left-radius: 0;
+  display: block;
+  height: 26px;
+  /* Replace with position:fixed to get a scrolling close button. */
+  position: absolute;
+  width: 26px;
+}
+
+/**
+ * Add to shortcuts link.
  */
 #overlay-titlebar .add-or-remove-shortcuts {
-  padding-top: 0.9em;
+  min-width: 200px;
+  padding: 0;
+  width: 200px;
+}
+#overlay-titlebar .add-or-remove-shortcuts {
+  display: inline-block;
+  float: none;
+}
+
+/*
+ * IE7 does not support display:table.
+ */
+*:first-child + html #overlay-title-wrapper {
+  max-width: 80%;
+}
+*:first-child + html #overlay-title {
+  float: left;
 }
+*:first-child + html #overlay-tabs {
+  position: absolute;
+  right: 20px;
+}
+*:first-child + html #overlay-tabs li {
+  display: inline;
+  margin: 0 0 0 -3px;
+  padding: 0;
+}
+*:first-child + html #overlay-tabs li a,
+*:first-child + html #overlay-tabs li a:active,
+*:first-child + html #overlay-tabs li a:visited,
+*:first-child + html #overlay-tabs li a:hover {
+  margin: 0 0 2px 0;
+}
+*:first-child + html #overlay-tabs li.active a,
+*:first-child + html #overlay-tabs li.active a.active,
+*:first-child + html #overlay-tabs li.active a:active,
+*:first-child + html #overlay-tabs li.active a:visited {
+  margin: 0;
+  padding-bottom: 2px;
+}
+*:first-child + html #overlay-close-wrapper {
+  position: absolute;
+  right: 0;
+}
+*:first-child + html #overlay-titlebar .add-or-remove-shortcuts {
+  padding-top: 15px;
+}
+
+/**
+ * IE6 does not support display:table.
+ */
+* html #overlay-title-wrapper {
+  max-width: 80%;
+}
+* html #overlay-title {
+  float: left;
+}
+* html #overlay-tabs {
+  position: absolute;
+  right: 20px;
+}
+* html #overlay-tabs li {
+  display: inline;
+  margin: 0 0 0 -3px;
+  padding: 0;
+}
+* html #overlay-tabs li a,
+* html #overlay-tabs li a:active,
+* html #overlay-tabs li a:visited,
+* html #overlay-tabs li a:hover {
+  margin: 0 0 2px 0;
+}
+* html #overlay-tabs li.active a,
+* html #overlay-tabs li.active a.active,
+* html #overlay-tabs li.active a:active,
+* html #overlay-tabs li.active a:visited {
+  margin: 0;
+  padding-bottom: 2px;
+}
+* html #overlay-close-wrapper {
+  position: absolute;
+  right: 0;
+}
+* html #overlay-titlebar .add-or-remove-shortcuts {
+  padding-top: 15px;
+}
+
 
 /**
  * IE6 shows elements with position:fixed as position:static so replace
- * it with position:absolute;
+ * it with position:absolute.
  */
 * html #overlay-close,
 * html #overlay-close:hover {
Index: modules/overlay/overlay.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/overlay/overlay.tpl.php,v
retrieving revision 1.3
diff -u -r1.3 overlay.tpl.php
--- modules/overlay/overlay.tpl.php	11 Jul 2010 22:03:45 -0000	1.3
+++ modules/overlay/overlay.tpl.php	6 Aug 2010 21:24:29 -0000
@@ -22,14 +22,14 @@
 ?>
 
 <div id="overlay" <?php print $attributes; ?>>
-  <div id="overlay-titlebar" class="clearfix">
-    <div id="overlay-title-wrapper" class="clearfix">
+  <div id="overlay-titlebar">
+    <div id="overlay-title-wrapper">
       <h1 id="overlay-title"<?php print $title_attributes; ?>><?php print $title; ?></h1>
     </div>
+    <?php if ($tabs): ?><div id="overlay-tabs-wrapper"><ul id="overlay-tabs"><?php print render($tabs); ?></ul></div><?php endif; ?>
     <div id="overlay-close-wrapper">
-      <a id="overlay-close" href="#" class="overlay-close"><span class="element-invisible"><?php print t('Close overlay'); ?></span></a>
+      <a id="overlay-close" href="#" class="overlay-close" tabindex="1"><span class="element-invisible"><?php print t('Close overlay'); ?></span></a>
     </div>
-    <?php if ($tabs): ?><ul id="overlay-tabs"><?php print render($tabs); ?></ul><?php endif; ?>
   </div>
   <div id="overlay-content"<?php print $content_attributes; ?>>
     <?php print $page; ?>
