diff --git a/core/modules/block/block.module b/core/modules/block/block.module index 6bc94f2..d869bfc 100644 --- a/core/modules/block/block.module +++ b/core/modules/block/block.module @@ -146,7 +146,7 @@ function block_menu() { 'page arguments' => array('block_admin_block_delete', 4), 'access arguments' => array('administer blocks'), 'type' => MENU_LOCAL_TASK, - 'context' => MENU_CONTEXT_NONE, + 'context' => MENU_CONTEXT_INLINE, 'file' => 'block.admin.inc', ); // Block administration is actually tied to theme and plugin definition so diff --git a/core/modules/overlay/overlay-child-rtl.css b/core/modules/overlay/overlay-child-rtl.css index eeff66c..061d8a9 100644 --- a/core/modules/overlay/overlay-child-rtl.css +++ b/core/modules/overlay/overlay-child-rtl.css @@ -12,10 +12,6 @@ html { float: right; left: auto; } -#overlay { - padding: 0.2em; - padding-left: 26px; -} #overlay-close-wrapper { left: 0; right: auto; diff --git a/core/modules/overlay/overlay-child.css b/core/modules/overlay/overlay-child.css index 48f217d..5bb68b8 100644 --- a/core/modules/overlay/overlay-child.css +++ b/core/modules/overlay/overlay-child.css @@ -21,38 +21,26 @@ min-height: 100px; min-width: 700px; position: relative; - padding: .2em; padding-bottom: 2em; - padding-right: 26px; /* LTR */ - width: 88%; -} -#overlay-titlebar { - padding: 0 20px; - position: relative; - white-space: nowrap; - z-index: 100; + width: 50%; } #overlay-content { - background: #fff; clear: both; color: #000; - padding: .5em 1em; position: relative; } -#overlay-title-wrapper { - overflow: hidden; +#branding .breadcrumb, #branding .add-or-remove-shortcuts { + display: none; } -#overlay-title { - color: #fff; - float: left; /* LTR */ - font-size: 20px; - margin: 0; - padding: 0.3em 0; + +body.overlay #branding h1.page-title { + display: block; + float: none; } -#overlay-title:active, -#overlay-title:focus { - outline: 0; + +.form-actions input.button-danger, .form-actions #edit-cancel { + display: none; } .overlay #skip-link { @@ -80,61 +68,6 @@ } /** - * Tabs on the overlay. - */ -#overlay-tabs { - line-height: 26px; - margin: -28px 0 0 0; - position: absolute; - right: 20px; /* LTR */ - text-transform: uppercase; -} -#overlay-tabs li { - display: inline-block; - list-style: none; - margin: 0; - padding: 0; -} -#overlay-tabs li a, -#overlay-tabs li a:active, -#overlay-tabs li a:visited, -#overlay-tabs li a:hover { - background-color: #a6a7a2; - border-radius: 8px 8px 0 0; - color: #000; - display: inline-block; - font-size: 11px; - font-weight: bold; - margin: 0 1px; - outline: 0; - padding: 0 14px; - text-decoration: none; -} -#overlay-tabs li.active a, -#overlay-tabs li.active a.active, -#overlay-tabs li.active a:active, -#overlay-tabs li.active a:visited { - background-color: #fff; - margin-bottom: 0; - padding-bottom: 2px; -} -#overlay-tabs li a:focus, -#overlay-tabs li a:hover { - color: #fff; -} -#overlay-tabs li.active a:focus, -#overlay-tabs li.active a:hover { - color: #000; -} - -/** - * Add to shortcuts link - */ -#overlay-titlebar .add-or-remove-shortcuts { - padding-top: 0.9em; -} - -/** * Disable message. */ #overlay-disable-message { diff --git a/core/modules/overlay/overlay-child.js b/core/modules/overlay/overlay-child.js index 80a8a2f..8675a3d 100644 --- a/core/modules/overlay/overlay-child.js +++ b/core/modules/overlay/overlay-child.js @@ -162,23 +162,6 @@ Drupal.overlayChild.behaviors.tabs = function (context, settings) { }); }; -/** - * If the shortcut add/delete button exists, move it to the overlay titlebar. - */ -Drupal.overlayChild.behaviors.shortcutAddLink = function (context, settings) { - // Remove any existing shortcut button markup from the titlebar. - $('#overlay-titlebar').find('.add-or-remove-shortcuts').remove(); - // If the shortcut add/delete button exists, move it to the titlebar. - var $addToShortcuts = $('.add-or-remove-shortcuts'); - if ($addToShortcuts.length) { - $addToShortcuts.insertAfter('#overlay-title'); - } - - $(document).bind('drupalOverlayBeforeLoad.drupal-overlay.drupal-overlay-child-loading', function () { - $('#overlay-titlebar').find('.add-or-remove-shortcuts').remove(); - }); -}; - // Workaround because of the way jQuery events works. // jQuery from the parent frame needs to be used to catch this event. parent.jQuery(document).bind('offsettopchange', function () { diff --git a/core/modules/overlay/overlay-parent.js b/core/modules/overlay/overlay-parent.js index caf9336..9965298 100644 --- a/core/modules/overlay/overlay-parent.js +++ b/core/modules/overlay/overlay-parent.js @@ -574,6 +574,15 @@ Drupal.overlay.eventhandlerOverrideLink = function (event) { return; } + // Only open links in the overlay if they are contextual links (but not the + // node edit link), or if the link is an action link or dropbutton link + // that is already in the overlay. + if (!($target.parent().parent().hasClass('contextual-links') && !$target.parent().hasClass('node-edit')) &&  + !$target.hasClass('button-action') &&  + !$target.parent().hasClass('dropbutton-action')) { + return; + } + var target = $target[0]; var href = target.href; // Only handle links that have an href attribute and use the HTTP(S) protocol. diff --git a/core/modules/overlay/templates/overlay.tpl.php b/core/modules/overlay/templates/overlay.tpl.php index 38e6664..8baf621 100644 --- a/core/modules/overlay/templates/overlay.tpl.php +++ b/core/modules/overlay/templates/overlay.tpl.php @@ -23,14 +23,8 @@
> -
-
-

>

-
-
- -
-

+
+
>