Skip to content
Snippets Groups Projects
Commit 0a5c95af authored by Angie Byron's avatar Angie Byron
Browse files

#555712 by TheRec: Moved shortcut bar collapse icon to the left side so it's...

#555712 by TheRec: Moved shortcut bar collapse icon to the left side so it's more easily accessible and 'Log out' is no longer mistakenly clicked.
parent fc755aed
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -76,7 +76,7 @@ div#toolbar div.toolbar-menu { ...@@ -76,7 +76,7 @@ div#toolbar div.toolbar-menu {
div#toolbar div.toolbar-menu #toolbar-user { div#toolbar div.toolbar-menu #toolbar-user {
position: absolute; position: absolute;
right: 35px; right: 10px;
} }
div#toolbar div.toolbar-menu #toolbar-menu { div#toolbar div.toolbar-menu #toolbar-menu {
...@@ -84,9 +84,16 @@ div#toolbar div.toolbar-menu #toolbar-menu { ...@@ -84,9 +84,16 @@ div#toolbar div.toolbar-menu #toolbar-menu {
left: 10px; left: 10px;
} }
/**
* Give space for the shortcuts visibility toggling element when it is added.
*/
div#toolbar.toolbar-processed div.toolbar-menu #toolbar-menu {
left: 45px;
}
div#toolbar div.toolbar-menu span.toggle { div#toolbar div.toolbar-menu span.toggle {
position: absolute; position: absolute;
right: 10px; left: 10px;
cursor: pointer; cursor: pointer;
background: url(toolbar.png) 0 -60px no-repeat; background: url(toolbar.png) 0 -60px no-repeat;
text-indent: -9999px; text-indent: -9999px;
......
...@@ -10,6 +10,9 @@ Drupal.behaviors.admin = { ...@@ -10,6 +10,9 @@ Drupal.behaviors.admin = {
// Set the intial state of the toolbar. // Set the intial state of the toolbar.
$('#toolbar', context).once('toolbar', Drupal.admin.toolbar.init); $('#toolbar', context).once('toolbar', Drupal.admin.toolbar.init);
// Add the toggling element for shortcuts visibility.
$('#toolbar div.toolbar-menu').prepend('<span class="toggle toggle-active"><a href="#">' + Drupal.t('Show shortcuts') + '</a></span>');
// Toggling of admin shortcuts visibility. // Toggling of admin shortcuts visibility.
$('#toolbar span.toggle', context).once('toolbar-toggle').click(function() { $('#toolbar span.toggle', context).once('toolbar-toggle').click(function() {
Drupal.admin.toolbar.toggle(); Drupal.admin.toolbar.toggle();
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
?> ?>
<div id="toolbar" class="clearfix"> <div id="toolbar" class="clearfix">
<div class="toolbar-menu clearfix"> <div class="toolbar-menu clearfix">
<span class="toggle toggle-active"><?php print t('Show shortcuts'); ?></span>
<?php print render($toolbar['toolbar_menu']); ?> <?php print render($toolbar['toolbar_menu']); ?>
<?php print render($toolbar['toolbar_user']); ?> <?php print render($toolbar['toolbar_user']); ?>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment