diff --git a/core/modules/block/block.module b/core/modules/block/block.module index 8bf4aae..d7a9c7c 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/images/background.png b/core/modules/overlay/images/background.png index 9be2193..5b1a8f4 100644 --- a/core/modules/overlay/images/background.png +++ b/core/modules/overlay/images/background.png @@ -2,4 +2,4 @@  IHDR -2ϽIDATc```O$UHOTJ~\IENDB` \ No newline at end of file +2ϽsBIT|d pHYs  ~tEXtSoftwareAdobe Fireworks CS6輲tEXtCreation Time1/25/13rWIDATcd``e 0hT!a.IENDB` \ No newline at end of file diff --git a/core/modules/overlay/images/close-rtl.png b/core/modules/overlay/images/close-rtl.png deleted file mode 100644 index ae05d11..0000000 --- a/core/modules/overlay/images/close-rtl.png +++ /dev/null @@ -1,5 +0,0 @@ -PNG - - IHDRgAMA|QQPLTEooo```ppp000"tRNS0/@?IDAT(υ DIAЂMVS܁Q*{>J<)/ߨQųI;x!I9V` `j',>?~|ѧFGg'/A9aW<㺏eE16ŚcoT" -Y -)շ :59]IENDB` \ No newline at end of file diff --git a/core/modules/overlay/images/close.png b/core/modules/overlay/images/close.png index 436985e..97bf4ee 100644 --- a/core/modules/overlay/images/close.png +++ b/core/modules/overlay/images/close.png @@ -1,4 +1,5 @@ PNG  - IHDRQPLTE000oooppp```:qtRNS0/@?IDATx^}҉ aynkˡnV ?F(Vt}ꌒY)5l7V9Yɀf<'_<(0 -nxAh7 25~1:[+!p+Py2}6Ґ9\DM)iMJ>-Rja~[N'epv.IENDB` \ No newline at end of file + IHDR&u2 pHYs  IDAT8MN"Qa74FD=1P@:8'N:/U;gߙLmĩT*NGf@:F` V>#KhV///vd/J\n%D,,Aeggh?чxx,0j٬kg2H&St:APj)uvss`;FIRxl$ud$xnɵt:]JrrrBY#ʆϘ0=n-TU}j5.5H&,d9jN!===3 h H^Q2mIzg+? (Ӭ (Ń`yFQ(caPYl`z& f`2L17`E9fs3Rmrq Ǐa1[nZ:26č.X.'FsRJא8VA2j԰L@jt}˺|~^\0 +YK_sK*exԌ-(rK2}Qo~@ +8$}xfT8D܋V Li;I_IENDB` \ No newline at end of file diff --git a/core/modules/overlay/overlay-child-rtl.css b/core/modules/overlay/overlay-child-rtl.css index eeff66c..4ff6a58 100644 --- a/core/modules/overlay/overlay-child-rtl.css +++ b/core/modules/overlay/overlay-child-rtl.css @@ -12,24 +12,7 @@ html { float: right; left: auto; } -#overlay { - padding: 0.2em; - padding-left: 26px; -} #overlay-close-wrapper { - left: 0; - right: auto; -} -#overlay-close, -#overlay-close:hover { - background: transparent url(images/close-rtl.png) no-repeat; - border-top-right-radius: 0; -} - -/** - * Tabs on the overlay. - */ -#overlay-tabs { - left: 20px; + left: 25px; right: auto; } diff --git a/core/modules/overlay/overlay-child.css b/core/modules/overlay/overlay-child.css index 48f217d..aa23d37 100644 --- a/core/modules/overlay/overlay-child.css +++ b/core/modules/overlay/overlay-child.css @@ -21,38 +21,31 @@ 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%; + box-shadow: 0 0 2em 0 rgba(0,0,0,0.5); } #overlay-content { - background: #fff; clear: both; color: #000; - padding: .5em 1em; position: relative; } -#overlay-title-wrapper { - overflow: hidden; +#branding { + border-bottom: 1px solid #cdcdcd; } -#overlay-title { - color: #fff; - float: left; /* LTR */ - font-size: 20px; - margin: 0; - padding: 0.3em 0; + +#branding .breadcrumb, #branding .add-or-remove-shortcuts { + display: none; } -#overlay-title:active, -#overlay-title:focus { - outline: 0; + +body.overlay #branding h1.page-title { + display: block; + float: none; + line-height: 2em; +} + +.form-actions input.button-danger, .form-actions #edit-cancel { + display: none; } .overlay #skip-link { @@ -64,12 +57,13 @@ #overlay-close-wrapper { position: absolute; - right: 0; /* LTR */ + right: 25px; /* LTR */ + top: 5px; + z-index: 40; } #overlay-close, #overlay-close:hover { - background: transparent url(images/close.png) no-repeat; /* LTR */ - border-top-left-radius: 0; /* LTR */ + background: transparent url(images/close.png) no-repeat; display: block; height: 26px; margin: 0; @@ -80,61 +74,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 @@
> -
-
-

>

-
-
- -
-

+
+
>