Commit dc280e97 authored by matio89's avatar matio89

correction admin_toolbar

parent 5cbc892c
......@@ -31,7 +31,7 @@ class ToolbarController extends ControllerBase {
//Flush all caches.
public function flushAll() {
drupal_flush_all_caches();
drupal_set_message(t('All cache cleared.'));
drupal_set_message($this->t('All cache cleared.'));
return new RedirectResponse($this->reload_page());
}
......@@ -39,7 +39,7 @@ class ToolbarController extends ControllerBase {
public function flush_js_css() {
\Drupal::state()
->set('system.css_js_query_string', base_convert(REQUEST_TIME, 10, 36));
drupal_set_message(t('CSS and JavaScript cache cleared.'));
drupal_set_message($this->t('CSS and JavaScript cache cleared.'));
return new RedirectResponse($this->reload_page());
}
......@@ -47,21 +47,21 @@ class ToolbarController extends ControllerBase {
public function flush_plugins() {
// Clear all plugin caches.
\Drupal::service('plugin.cache_clearer')->clearCachedDefinitions();
drupal_set_message(t('Plugin cache cleared.'));
drupal_set_message($this->t('Plugin cache cleared.'));
return new RedirectResponse($this->reload_page());
}
// Reset all static caches.
public function flush_static() {
drupal_static_reset();
drupal_set_message(t('All static caches cleared.'));
drupal_set_message($this->t('All static caches cleared.'));
return new RedirectResponse($this->reload_page());
}
// Clears all cached menu data.
public function flush_menu() {
menu_cache_clear_all();
drupal_set_message(t('All cached menu data cleared.'));
drupal_set_message($this->t('All cached menu data cleared.'));
return new RedirectResponse($this->reload_page());
}
......
......@@ -21,8 +21,8 @@
.toolbar-tray-horizontal li.menu-item--expanded:hover ul ul ul,
.toolbar-tray-horizontal li.menu-item--expanded:hover ul ul ul ul,
.toolbar-tray-horizontal li.menu-item--expanded:hover ul ul ul ul ul {
display: none;
left: -999em; /* LTR */
display: none;
left: -999em; /* LTR */
}
/* Lists nested under hovered list items */
......@@ -31,8 +31,8 @@
.toolbar-tray-horizontal li li li.menu-item--expanded:hover ul,
.toolbar-tray-horizontal li li li li.menu-item--expanded:hover ul,
.toolbar-tray-horizontal li li li li li.menu-item--expanded:hover ul {
display: block;
left: auto; /* LTR */
display: block;
left: auto; /* LTR */
}
.toolbar-tray-horizontal .menu ul li a,.toolbar-tray-horizontal .menu ul .toolbar-icon{ padding: 12px 15px 12px 12px;}
......@@ -41,13 +41,13 @@
position: absolute;
width: 200px;
}
.toolbar-tray-horizontal ul li.menu-item--expanded .menu-item > ul
{
{
display: none;
}
.toolbar-tray-horizontal ul li.menu-item--expanded ul li.menu-item--expanded {
......@@ -58,7 +58,7 @@
.toolbar-tray-horizontal ul li.menu-item--expanded .menu-item:hover ul {
display: block;
margin: -40px 0 0 197px;
}
.toolbar-tray-horizontal li:hover ul li {
......@@ -71,9 +71,9 @@
left: 200px;
width: 200px;
}
.toolbar .toolbar-tray-vertical li.open > ul.menu {
.toolbar .toolbar-tray-vertical li.open > ul.toolbar-menu {
display: none;
}
.toolbar .toolbar-tray-vertical li.open > ul.menu.clearfix {
.toolbar .toolbar-tray-vertical li.open > ul.toolbar-menu.clearfix {
display: block;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment