Skip to content
Snippets Groups Projects
Commit a5dd2701 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #2872284: Added the varbase x-small emblem white logo to the admin...

Issue #2872284: Added the varbase x-small emblem white logo to the admin toolbar with the varbase/toolbar.icon library
parent c353aafa
No related branches found
No related tags found
No related merge requests found
.toolbar-icon-admin-toolbar-tools-help:before,
.toolbar-icon-admin-toolbar-tools-help:active:before,
.toolbar-icon-admin-toolbar-tools-help.active:before,
.adminimal-admin-toolbar .toolbar-icon-admin-toolbar-tools-help:before,
.adminimal-admin-toolbar .toolbar-icon-admin-toolbar-tools-help:active:before,
.adminimal-admin-toolbar .toolbar-icon-admin-toolbar-tools-help.is-active:before,
.adminimal-admin-toolbar .toolbar-tray-horizontal .menu-item--expanded:hover .toolbar-icon-admin-toolbar-tools-help:before,
.adminimal-admin-toolbar .toolbar-icon-admin-toolbar-tools-help:hover:before {
background-image: url(../files/images/varbase-x-small-emblem-white.png);
}
files/images/varbase-x-small-emblem-white.png

896 B

toolbar.icon:
css:
theme:
css/admin-toolbar-tools.css: {}
......@@ -228,3 +228,13 @@ function varbase_hide_warning_and_status_messages($hide) {
unset($_SESSION['messages']);
}
}
/**
* Implements hook_toolbar_alter().
*/
function varbase_toolbar_alter(&$items) {
if (\Drupal::currentUser()->hasPermission('access toolbar')
&& !empty($items['admin_toolbar_tools'])) {
$items['admin_toolbar_tools']['#attached']['library'][] = 'varbase/toolbar.icon';
}
}
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