Drupal 7
The toolbar is sticky at the top even you scroll down the page.
How can I make it unsticky at the top?
Thanks.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityThe fixed position is hard-coded into the toolbar.css file included with the core module.
To override it add the following to a CSS file that you're including with the admin theme:
#toolbar {
position: static !important;
}
body.toolbar, body.toolbar-drawer {
padding-top: 0 !important;
}
The !important
declarations may or not be necessary depending on the order of inclusion...try without it first, and if it doesn't work, try adding it.
position: fixed
on the #toolbar
element. The body needs padding when this is the case, but doesn't if the element is not fixed, hence the need to remove it when making the toolbar non-fixed